Play deathknockout/deathknockdown animations when appropriate

actorid
scrawl 11 years ago
parent 0a17245633
commit 688415ce54

@ -414,6 +414,16 @@ void CharacterController::playRandomDeath(float startpoint)
mDeathState = CharState_SwimDeath;
mCurrentDeath = "swimdeath";
}
else if (mHitState == CharState_KnockDown)
{
mDeathState = CharState_DeathKnockDown;
mCurrentDeath = "deathknockdown";
}
else if (mHitState == CharState_KnockOut)
{
mDeathState = CharState_DeathKnockOut;
mCurrentDeath = "deathknockout";
}
else
{
int selected=0;

@ -90,6 +90,8 @@ enum CharacterState {
CharState_Death4,
CharState_Death5,
CharState_SwimDeath,
CharState_DeathKnockDown,
CharState_DeathKnockOut,
CharState_Hit,
CharState_KnockDown,

Loading…
Cancel
Save