From 434c3159b9e6130fe2cdd46dbc04f37dddd9c9f0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-UH65DCE\\MusTanG" Date: Sun, 22 Oct 2017 19:18:19 -0500 Subject: [PATCH] geiger counter energy consumption --- Sources/epoch_code/compile/setup/masterLoop/Event2.sqf | 5 +++++ Sources/epoch_config/Configs/CfgEpochClient.hpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf b/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf index f7ec8b49..b3d078fd 100644 --- a/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf +++ b/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf @@ -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; diff --git a/Sources/epoch_config/Configs/CfgEpochClient.hpp b/Sources/epoch_config/Configs/CfgEpochClient.hpp index 64967f69..8463a884 100644 --- a/Sources/epoch_config/Configs/CfgEpochClient.hpp +++ b/Sources/epoch_config/Configs/CfgEpochClient.hpp @@ -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