geiger counter energy consumption

This commit is contained in:
DESKTOP-UH65DCE\MusTanG 2017-10-22 19:18:19 -05:00
parent 431e10ee58
commit 434c3159b9
2 changed files with 6 additions and 1 deletions

View File

@ -51,6 +51,11 @@ if (_playerRadiation > 1) then {
[0, 2] call epoch_setRadiation;
};
// Geiger Deplete Energy
if (EPOCH_geiger_shown) then {
_energyValue = _energyValue - (["CfgEpochClient", "outOfBoundsRadiation", 10] call EPOCH_fnc_returnConfigEntryV2);
};
// Energy Handler
_playerEnergy = [_playerEnergyKey,_energyValue,_playerEnergyMax,_playerEnergyMin] call EPOCH_fnc_setVariableLimited;

View File

@ -21,7 +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.
geigerCounterEnergyUsage = 10; // default loss of 10 energy every 10sec of use
baseHungerLoss = 2; // increase number to speed up rate of Hunger loss
baseThirstLoss = 2; // increase number to speed up rate of Thirst loss