mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 01:36:44 +00:00
Issue #68: Play death animations
This commit is contained in:
parent
21c24dedb6
commit
6b09b3ad61
1 changed files with 5 additions and 1 deletions
|
@ -167,6 +167,8 @@ namespace MWMechanics
|
||||||
{
|
{
|
||||||
if (!MWWorld::Class::get (ptr).getCreatureStats (ptr).isDead())
|
if (!MWWorld::Class::get (ptr).getCreatureStats (ptr).isDead())
|
||||||
mActors.insert (ptr);
|
mActors.insert (ptr);
|
||||||
|
else
|
||||||
|
MWBase::Environment::get().getWorld()->playAnimationGroup (ptr, "death1", 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Actors::removeActor (const MWWorld::Ptr& ptr)
|
void Actors::removeActor (const MWWorld::Ptr& ptr)
|
||||||
|
@ -232,6 +234,8 @@ namespace MWMechanics
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MWBase::Environment::get().getWorld()->playAnimationGroup (*iter, "death1", 0);
|
||||||
|
|
||||||
mActors.erase (iter++);
|
mActors.erase (iter++);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue