mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Make Nuisance by shooting configureable
Also reduced it, because it is very high on default
This commit is contained in:
parent
5b0931cfcc
commit
a6f43e934b
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user