Make Nuisance by shooting configureable

Also reduced it, because it is very high on default
This commit is contained in:
He-Man 2017-11-15 21:53:14 +01:00
parent 5b0931cfcc
commit a6f43e934b
3 changed files with 5 additions and 3 deletions

View File

@ -108,7 +108,7 @@ switch true do {
};
default {
_ammoConfig = (configFile >> "CfgAmmo" >> _ammo);
_nuisanceLevel = ceil(getNumber (_ammoConfig >> "audibleFire") * getNumber (_ammoConfig >> "caliber"));
_nuisanceLevel = ceil ((getNumber (_ammoConfig >> "audibleFire") * getNumber (_ammoConfig >> "caliber"))*Epoch_NuisanceMulti);
// reduce when not in a city or town
if (EPOCH_nearestLocations isEqualTo[]) then{
_nuisanceLevel = _nuisanceLevel / 2;

View File

@ -80,8 +80,8 @@ EPOCH_keysActionPressed = false; //prevents EH spam
0 call EPOCH_clientKeyMap;
// load some frequently used configs to variables
private _CfgEpochClient = 'CfgEpochClient' call EPOCH_returnConfig;
EPOCH_maxBuildingHeight = getNumber(_CfgEpochClient >> "maxBuildingHeight");
EPOCH_maxBuildingHeight = ["CfgEpochClient", "maxBuildingHeight", 100] call EPOCH_fnc_returnConfigEntryV2;
Epoch_NuisanceMulti = ["CfgEpochClient", "NuisanceMulti", 0.5] call EPOCH_fnc_returnConfigEntryV2;
//ON INIT and RESPAWN
call EPOCH_clientInit;

View File

@ -19,6 +19,8 @@ class CfgEpochClient
debug = "true"; // true = enable extra rpt debug lines, false to disable
antagonistRngChance = 100; // increase number to reduce chances and reduce to increase. Default 100
NuisanceMulti = 0.5; // Multi for Nuisance increase on shooting - higher Nuisance effect at least antagonist spawn change. (0-1, default 0.5)
outOfBoundsRadiation = 10; // how much rads per tick (10sec), when outside play area.
radioactiveLocations[] = {"NameCityCapital", "NameCity", "Airport"}; // used for random radioactive locations and to suppress animal spawns within cities.
radiatedObjMaxFalloutDist = 125; // max distance radiated object can affect player (number in meters)