Crushing player plays custom mugshot

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
VindSole
Posts: 16
Joined: Wed Feb 19, 2020 10:43 pm

Crushing player plays custom mugshot

Post by VindSole »

I'm trying to get the Xdeath mugshot to play when player gets crushed by doors or ceilings, but I can't figure how to do it, I checked some PSX to PC mods which do have this feature, but I can't find where it's defined in decorate nor ACS.

Sorry for my rough English.
User avatar
Dan_The_Noob
Posts: 880
Joined: Tue May 07, 2019 12:24 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Crushing player plays custom mugshot

Post by Dan_The_Noob »

I think you use the "Crush" state.
like Xdeath but just put "Crush:"
VindSole
Posts: 16
Joined: Wed Feb 19, 2020 10:43 pm

Re: Crushing player plays custom mugshot

Post by VindSole »

I've already tried that unfortunately
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: Crushing player plays custom mugshot

Post by Jarewill »

You can define a new face animation in SBARINFO.
For reference, Doom's death and xdeath animations:
Spoiler:
Afterwards, you can call a new animation in the Crush state of the actor with A_SetMugShotState.
VindSole
Posts: 16
Joined: Wed Feb 19, 2020 10:43 pm

Re: Crushing player plays custom mugshot

Post by VindSole »

Jarewill wrote:You can define a new face animation in SBARINFO.
For reference, Doom's death and xdeath animations:
Spoiler:
Afterwards, you can call a new animation in the Crush state of the actor with A_SetMugShotState.
I just tried that, and it worked but for some reason it's using the regular death animation instead of the Xdeath one, strangely enough, if i use just "death" nothing happens.
VindSole
Posts: 16
Joined: Wed Feb 19, 2020 10:43 pm

Re: Crushing player plays custom mugshot

Post by VindSole »

Just figured out the function needs to be defined manually into GZDoom.
Post Reply

Return to “Scripting”