|
|
|
@ -683,6 +683,20 @@ CharacterState CharacterController::chooseRandomDeathState() const
|
|
|
|
|
|
|
|
|
|
void CharacterController::playRandomDeath(float startpoint)
|
|
|
|
|
{
|
|
|
|
|
/*
|
|
|
|
|
Start of tes3mp addition
|
|
|
|
|
|
|
|
|
|
If this is a LocalActor or DedicatedActor whose death animation is supposed to be finished,
|
|
|
|
|
set the start point to the animation's end
|
|
|
|
|
*/
|
|
|
|
|
if (mPtr.getClass().getCreatureStats(mPtr).isDeathAnimationFinished() && (mwmp::Main::get().getCellController()->isLocalActor(mPtr) || mwmp::Main::get().getCellController()->isDedicatedActor(mPtr)))
|
|
|
|
|
{
|
|
|
|
|
startpoint = 1.F;
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
End of tes3mp addition
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
if (mPtr == getPlayer())
|
|
|
|
|
{
|
|
|
|
|
// The first-person animations do not include death, so we need to
|
|
|
|
|