mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
[Client] Don't play dying words for NPCs loaded up as dead from server
This commit is contained in:
parent
2af811be40
commit
c253950dd7
@ -2010,7 +2010,17 @@ namespace MWMechanics
|
|||||||
// Play dying words
|
// Play dying words
|
||||||
// Note: It's not known whether the soundgen tags scream, roar, and moan are reliable
|
// Note: 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.
|
// for NPCs since some of the npc death animation files are missing them.
|
||||||
MWBase::Environment::get().getDialogueManager()->say(iter->first, "hit");
|
/*
|
||||||
|
Start of tes3mp change (major)
|
||||||
|
|
||||||
|
Don't play dying words for NPCs who have already been marked as having
|
||||||
|
finished their death animations from elsewhere in the code
|
||||||
|
*/
|
||||||
|
if (!stats.isDeathAnimationFinished())
|
||||||
|
MWBase::Environment::get().getDialogueManager()->say(iter->first, "hit");
|
||||||
|
/*
|
||||||
|
End of tes3mp change (major)
|
||||||
|
*/
|
||||||
|
|
||||||
// Apply soultrap
|
// Apply soultrap
|
||||||
if (iter->first.getTypeName() == typeid(ESM::Creature).name())
|
if (iter->first.getTypeName() == typeid(ESM::Creature).name())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user