mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Stop player-controlled NPCs from reporting crimes committed by players
This commit is contained in:
parent
4621363b65
commit
06152fde77
@ -1117,6 +1117,11 @@ namespace MWMechanics
|
||||
if (playerFollowers.find(*it) != playerFollowers.end())
|
||||
continue;
|
||||
|
||||
// tes3mp needs player-controlled NPCs to not report crimes committed by other players,
|
||||
// so a condition has been added that should be true only for them
|
||||
if (!it->getBase()->canChangeCell)
|
||||
continue;
|
||||
|
||||
if (type == OT_Theft || type == OT_Pickpocket)
|
||||
MWBase::Environment::get().getDialogueManager()->say(*it, "thief");
|
||||
else if (type == OT_Trespassing)
|
||||
|
Loading…
x
Reference in New Issue
Block a user