Way back before zscript, Zdoom supported the use of a custom xdeath and animated god mode states for sbarinfo
Looking at gzdoom.pk3, it seems that the function to draw the mugshot makes use of flags to do what sbarinfo used to. I see there are flags for xdeath and animated god mode but if I'm using a custom zscript based status bar, how do I activate these features? I used to be pretty good with decorate but this new age zscript is pretty foreign to me.
Using Mugshot xdeath and animated god mode
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Re: Using Mugshot xdeath and animated god mode
this is a late reply, but others might also wonder about this. Agent Ash informed me that you could do like this:
DrawTexture(GetMugShot(5,Mugshot.XDEATHFACE|Mugshot.ANIMATEDGODMODE),x,y for instance.
other Mugshot.*** inputs that is available is:
STANDARD
DISABLEGRIN
DISABLEOUCH
DISABLEPAIN
DISABLERAMPAGE
CUSTOM
DrawTexture(GetMugShot(5,Mugshot.XDEATHFACE|Mugshot.ANIMATEDGODMODE),x,y for instance.
other Mugshot.*** inputs that is available is:
STANDARD
DISABLEGRIN
DISABLEOUCH
DISABLEPAIN
DISABLERAMPAGE
CUSTOM
- Xtyfe
- Posts: 1490
- Joined: Fri Dec 14, 2007 6:29 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
Re: Using Mugshot xdeath and animated god mode
I appreciate the reply, even if more than 3 years later. I will say that I have recently figured this out based on example code from other mods and have implemented it in a personal mod. The code you posted looks very much like what I found. I hope that it can help others.