forked from teamnwah/openmw-tes3coop
Merge remote-tracking branch 'jeffreyhaines/npcsdontscream'
This commit is contained in:
commit
5cb0353b5c
1 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
#include "../mwbase/world.hpp"
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
#include "../mwbase/dialoguemanager.hpp"
|
||||
#include "../mwbase/soundmanager.hpp"
|
||||
#include "../mwbase/mechanicsmanager.hpp"
|
||||
|
||||
|
@ -1175,6 +1176,12 @@ namespace MWMechanics
|
|||
|
||||
if (iter->second->getCharacterController()->kill())
|
||||
{
|
||||
// TODO: It's not known whether the soundgen tags scream, roar, and moan are reliable
|
||||
// for NPCs since some of the npc death animation files are missing them.
|
||||
|
||||
// Play dying words
|
||||
MWBase::Environment::get().getDialogueManager()->say(iter->first, "hit");
|
||||
|
||||
iter->first.getClass().getCreatureStats(iter->first).notifyDied();
|
||||
|
||||
++mDeathCount[Misc::StringUtils::lowerCase(iter->first.getCellRef().getRefId())];
|
||||
|
|
Loading…
Reference in a new issue