Diferents types of Death animations

kdo

Member
Is there a way to put diferents  types of death animations in the enemy chars? Something like that...if the enemy is killed by an attack he perform the deth 1, if he is killed by a freespecial its perform the death 2 animation or if killes by a gun its perform the death 3.... is it possible?
 
I'm not a specialist in coding, (concept and spriting is my stuff)
But, as far as I know, you can select death type just like you select pain or fall type.
when you create an attack box, use attack1 attack2 etc...

Exemples :
Attack3, pain3, fall3, death3...
Attack4, pain4, fall4, death4...

If you ignore one of the damage anims, it will use default one.
 
You must also set falldie/death for this to work.


Code:
falldie {value} or death {value}

    ~Determines how DEATH animation will be played when the character dies.
        0 = fall, blink on ground then disappear without playing DEATH at all (default).
        1 = No FALL animation, DEATH animation will be played right after final blow
        2 = Fall first then play DEATH animation.
    ~MAKE SURE that the character have DEATH animation when using this!

If you want more than 10 death anims you will need to increase maxattacktypes in MODELS.TXT

Code:
maxattacktypes {max}

    ~Sets the maximum number of attack types.
    ~PAIN,FALL, RISE, BLOCKPAIN and DEATH animations limit is also set together with this.
    ~{max} is number of available types.
    ~Default is 10 & maximum value is 99.

Code:
DEATH11,DEATH12,... {player,enemies}

    ~These animations are only usable if you have increased attacktype limit. To increase the limit use 'maxattacktypes' (see details above in Models.txt section).
    ~After they are available, they work just like other DEATHs.
 
BeasTie i know it's an old topic but i'm also interested in making different types of Death animations. Increasing the maxattacks and adding the new Deaths is simple but how can i make the attack know what exact Death animation play?
 
Valentine Wong said:
BeasTie i know it's an old topic but i'm also interested in making different types of Death animations. Increasing the maxattacks and adding the new Deaths is simple but how can i make the attack know what exact Death animation play?

You should give the corresponding attacktype numbers on your attack commands, not the attack animations. for examle
attack3 85 40 85 40..  will make the opponent to play it's pain3/fall3/death3 animations if they are available.
 
Hi Valentine Wong, I will copy my post, same question here:
http://www.chronocrash.com/forum/index.php?topic=3625.165
You can take a look at my Barbarian game, you've got some examples. Just remember that attack2 (the attack box) is affiliate with pain2 and death2 anims, the same for attack3...
So if you finish your entity with attack(x), death(x) will be played. If you don't have this specific death anim, default anim death is used.
 
Back
Top Bottom