forked from mirror/openmw-tes3mp
Issue #68: tally deaths
This commit is contained in:
parent
6b09b3ad61
commit
f72c35fc17
2 changed files with 4 additions and 0 deletions
|
@ -234,6 +234,8 @@ namespace MWMechanics
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
++mDeathCount[MWWorld::Class::get (*iter).getId (*iter)];
|
||||||
|
|
||||||
MWBase::Environment::get().getWorld()->playAnimationGroup (*iter, "death1", 0);
|
MWBase::Environment::get().getWorld()->playAnimationGroup (*iter, "death1", 0);
|
||||||
|
|
||||||
mActors.erase (iter++);
|
mActors.erase (iter++);
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
namespace Ogre
|
namespace Ogre
|
||||||
{
|
{
|
||||||
|
@ -22,6 +23,7 @@ namespace MWMechanics
|
||||||
{
|
{
|
||||||
std::set<MWWorld::Ptr> mActors;
|
std::set<MWWorld::Ptr> mActors;
|
||||||
float mDuration;
|
float mDuration;
|
||||||
|
std::map<std::string, int> mDeathCount;
|
||||||
|
|
||||||
void updateNpc (const MWWorld::Ptr& ptr, float duration, bool paused);
|
void updateNpc (const MWWorld::Ptr& ptr, float duration, bool paused);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue