mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Play deathknockout/deathknockdown animations when appropriate
This commit is contained in:
parent
0a17245633
commit
688415ce54
2 changed files with 12 additions and 0 deletions
|
@ -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…
Reference in a new issue