mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 19:19:40 +00:00
Remove incorrect implementation of the iAlarm* GMSTs, not used by vanilla MW (Fixes #2064)
According to Hrnchamd, these are unused. The real mechanics are not fully documented, but from a quick test only NPCs with an alarm value of 100 will report crimes.
This commit is contained in:
parent
ed686ddd2f
commit
507cbcfae3
1 changed files with 1 additions and 14 deletions
|
@ -930,19 +930,6 @@ namespace MWMechanics
|
||||||
|
|
||||||
const MWWorld::ESMStore& esmStore = MWBase::Environment::get().getWorld()->getStore();
|
const MWWorld::ESMStore& esmStore = MWBase::Environment::get().getWorld()->getStore();
|
||||||
|
|
||||||
// What amount of alarm did this crime generate?
|
|
||||||
int alarm = 0;
|
|
||||||
if (type == OT_Trespassing || type == OT_SleepingInOwnedBed)
|
|
||||||
alarm = esmStore.get<ESM::GameSetting>().find("iAlarmTresspass")->getInt();
|
|
||||||
else if (type == OT_Pickpocket)
|
|
||||||
alarm = esmStore.get<ESM::GameSetting>().find("iAlarmPickPocket")->getInt();
|
|
||||||
else if (type == OT_Assault)
|
|
||||||
alarm = esmStore.get<ESM::GameSetting>().find("iAlarmAttack")->getInt();
|
|
||||||
else if (type == OT_Murder)
|
|
||||||
alarm = esmStore.get<ESM::GameSetting>().find("iAlarmKilling")->getInt();
|
|
||||||
else if (type == OT_Theft)
|
|
||||||
alarm = esmStore.get<ESM::GameSetting>().find("iAlarmStealing")->getInt();
|
|
||||||
|
|
||||||
bool reported = false;
|
bool reported = false;
|
||||||
|
|
||||||
// Find all the actors within the alarm radius
|
// Find all the actors within the alarm radius
|
||||||
|
@ -988,7 +975,7 @@ namespace MWMechanics
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Will the witness report the crime?
|
// Will the witness report the crime?
|
||||||
if (it->getClass().getCreatureStats(*it).getAiSetting(CreatureStats::AI_Alarm).getBase() >= alarm)
|
if (it->getClass().getCreatureStats(*it).getAiSetting(CreatureStats::AI_Alarm).getBase() >= 100)
|
||||||
{
|
{
|
||||||
reported = true;
|
reported = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue