News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

Death Animation Stay

Started by xyzz, March 27, 2019, 08:32:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xyzz

Hi

I'm trying to add custom death animations to some monster. I've looked into Kaiser's Failure monster from his Sigma Quadrant map for reference and it works quite well. But what I'm trying to do is play two animations when dying. Death which is the dying animation and dead which is the dead pose. And it could burn after dead anim.

Can I get some help from you guys?

Thanks anyway

/*
=====================
monster_boss_creature::state_Dead
=====================
*/
void monster_boss_creature::state_Dead()
{
float creature_burn = getIntKey("no_burn_after_death");
playCustomAnim( "death" , 0, 4 );
setMoveType( MOVETYPE_STATIC );
stopMove();
stopRagdoll();
stopSound(SND_CHANNEL_BODY, false);
stopSound(SND_CHANNEL_BODY2, false);
if(creature_burn != 1)
{
preBurn();
sys.wait( .9 );
burn();
startSound( "snd_burn", SND_CHANNEL_BODY, false );
sys.wait( 4 );
remove();
}
playCustomAnim( "dead" , 0, 4 ); //THIS IS WHAT I WANT TO PLAY AND REMAIN IN THIS ANIM UNTIL BURN
}

The Happy Friar

Cyberdemon has a death animation & stays put when dead, but it's a single animation that ends on a frame.  Doing it that way might work better then two animations.