mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-14 06:40:40 +00: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;
|
||||
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…
x
Reference in New Issue
Block a user