Using Mugshot xdeath and animated god mode

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

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!)
Post Reply
User avatar
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

Using Mugshot xdeath and animated god mode

Post by Xtyfe »

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.
User avatar
camaxide
Posts: 388
Joined: Thu Jun 11, 2015 8:38 am

Re: Using Mugshot xdeath and animated god mode

Post by camaxide »

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
User avatar
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

Post by Xtyfe »

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.
Post Reply

Return to “Scripting”