add max range config

This commit is contained in:
DESKTOP-UH65DCE\MusTanG 2017-10-23 01:31:39 -05:00
parent d0d7c9d765
commit 103cf4610a
4 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,7 @@ _powerSources = nearestObjects[player, ["Land_spp_Tower_F","Land_wpp_Turbine_V2_
// TODO: add more sources and config based check instead of global var
// _nearestLocations removed as they don't support getVariable
// All sources used as a temp solution
_allSources = nearestObjects[player, ["All"], _energyRange];
_allSources = nearestObjects[player, ["All"], _radiatedObjMaxRange];
_nearbyRadioactiveObjects = _allSources select {(_x getVariable ["EPOCH_Rads", []]) select 0 > 0};
// check if player is out of map bounds.

View File

@ -1,6 +1,6 @@
if ('ItemGeigerCounter_EPOCH' in assignedItems player) then {
if (!EPOCH_geiger_mute_counter || !EPOCH_geiger_mute_warning || EPOCH_geiger_shown) then { //only run if geiger activated
_energyRange call epoch_geiger_simulate;
_radiatedObjMaxRange call epoch_geiger_simulate;
};
} else {
if (EPOCH_geiger_shown) then {

View File

@ -123,6 +123,7 @@ _energyRegenMax = ["CfgEpochClient", "energyRegenMax", 5] call EPOCH_fnc_returnC
_energyRange = ["CfgEpochClient", "energyRange", 75] call EPOCH_fnc_returnConfigEntryV2;
_hudConfigs = ["CfgEpochClient", "hudConfigs", []] call EPOCH_fnc_returnConfigEntryV2;
_radioactiveLocations = ["CfgEpochClient", "radioactiveLocations", ["NameCityCapital", "NameCity", "Airport"]] call EPOCH_fnc_returnConfigEntryV2;
_radiatedObjMaxRange = ["CfgEpochClient", "radiatedObjMaxFalloutDist", 75] call EPOCH_fnc_returnConfigEntryV2;
_chargeRate = 0;

View File

@ -21,6 +21,7 @@ class CfgEpochClient
antagonistRngChance = 100; // increase number to reduce chances and reduce to increase. Default 100
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)
geigerCounterEnergyUsage = 10; // default loss of 10 energy every 10sec of use
baseHungerLoss = 2; // increase number to speed up rate of Hunger loss