mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:53:50 +00:00
Say an "intruder" voice dialogue for trespassing crimes (Fixes #1082)
Seems to be broken in the original engine, but according to the TES-CS help this is how the intruder voices should be used. There are legitimate entries for "intruder" in the game's files, so we might as well use them.
This commit is contained in:
parent
c7be850162
commit
f3738e9a98
2 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,7 @@ namespace MWBase
|
||||||
OT_Theft, // Taking items owned by an NPC or a faction you are not a member of
|
OT_Theft, // Taking items owned by an NPC or a faction you are not a member of
|
||||||
OT_Assault, // Attacking a peaceful NPC
|
OT_Assault, // Attacking a peaceful NPC
|
||||||
OT_Murder, // Murdering a peaceful NPC
|
OT_Murder, // Murdering a peaceful NPC
|
||||||
OT_Trespassing, // Staying in a cell you are not allowed in (where is this defined?)
|
OT_Trespassing, // Picking the lock of an owned door/chest
|
||||||
OT_SleepingInOwnedBed, // Sleeping in a bed owned by an NPC or a faction you are not a member of
|
OT_SleepingInOwnedBed, // Sleeping in a bed owned by an NPC or a faction you are not a member of
|
||||||
OT_Pickpocket // Entering pickpocket mode, leaving it, and being detected. Any items stolen are a separate crime (Theft)
|
OT_Pickpocket // Entering pickpocket mode, leaving it, and being detected. Any items stolen are a separate crime (Theft)
|
||||||
};
|
};
|
||||||
|
|
|
@ -955,6 +955,8 @@ namespace MWMechanics
|
||||||
{
|
{
|
||||||
if (type == OT_Theft || type == OT_Pickpocket)
|
if (type == OT_Theft || type == OT_Pickpocket)
|
||||||
MWBase::Environment::get().getDialogueManager()->say(*it, "thief");
|
MWBase::Environment::get().getDialogueManager()->say(*it, "thief");
|
||||||
|
else if (type == OT_Trespassing)
|
||||||
|
MWBase::Environment::get().getDialogueManager()->say(*it, "intruder");
|
||||||
|
|
||||||
// Crime reporting only applies to NPCs
|
// Crime reporting only applies to NPCs
|
||||||
if (!it->getClass().isNpc())
|
if (!it->getClass().isNpc())
|
||||||
|
|
Loading…
Reference in a new issue