mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Play deathknockout/deathknockdown animations when appropriate
This commit is contained in:
parent
0a17245633
commit
688415ce54
@ -414,6 +414,16 @@ void CharacterController::playRandomDeath(float startpoint)
|
|||||||
mDeathState = CharState_SwimDeath;
|
mDeathState = CharState_SwimDeath;
|
||||||
mCurrentDeath = "swimdeath";
|
mCurrentDeath = "swimdeath";
|
||||||
}
|
}
|
||||||
|
else if (mHitState == CharState_KnockDown)
|
||||||
|
{
|
||||||
|
mDeathState = CharState_DeathKnockDown;
|
||||||
|
mCurrentDeath = "deathknockdown";
|
||||||
|
}
|
||||||
|
else if (mHitState == CharState_KnockOut)
|
||||||
|
{
|
||||||
|
mDeathState = CharState_DeathKnockOut;
|
||||||
|
mCurrentDeath = "deathknockout";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int selected=0;
|
int selected=0;
|
||||||
|
@ -90,6 +90,8 @@ enum CharacterState {
|
|||||||
CharState_Death4,
|
CharState_Death4,
|
||||||
CharState_Death5,
|
CharState_Death5,
|
||||||
CharState_SwimDeath,
|
CharState_SwimDeath,
|
||||||
|
CharState_DeathKnockDown,
|
||||||
|
CharState_DeathKnockOut,
|
||||||
|
|
||||||
CharState_Hit,
|
CharState_Hit,
|
||||||
CharState_KnockDown,
|
CharState_KnockDown,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user