From 4fb7b9df98700ffe4ead19b2928e1a8a7608c5b3 Mon Sep 17 00:00:00 2001 From: Grahame Date: Sat, 21 Oct 2017 16:38:58 -0400 Subject: [PATCH 1/3] Add variable to control accelerated HTA loss --- Sources/epoch_config/Configs/CfgEpochClient.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/epoch_config/Configs/CfgEpochClient.hpp b/Sources/epoch_config/Configs/CfgEpochClient.hpp index 022f471a..6eba76d1 100644 --- a/Sources/epoch_config/Configs/CfgEpochClient.hpp +++ b/Sources/epoch_config/Configs/CfgEpochClient.hpp @@ -25,6 +25,7 @@ class CfgEpochClient baseHungerLoss = 2; // increase number to speed up rate of Hunger loss baseThirstLoss = 2; // increase number to speed up rate of Thirst loss + accelerateHTALoss = "true"; // use server's time acceleration to increase the rate of Hunger, Thirst and Alcohol loss buildingNearbyMilitary = 0; //1 to allow building nearby buildingNearbyMilitaryRange = 300; //Define radius of blocked area From 035ff7aa0974d67d1c11bcdecb9edcd312154c75 Mon Sep 17 00:00:00 2001 From: Grahame Date: Sat, 21 Oct 2017 16:40:44 -0400 Subject: [PATCH 2/3] Added variable handling of accelerated HTA loss --- Sources/epoch_code/compile/setup/masterLoop/init.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/epoch_code/compile/setup/masterLoop/init.sqf b/Sources/epoch_code/compile/setup/masterLoop/init.sqf index e3d8dab1..14f24d97 100644 --- a/Sources/epoch_code/compile/setup/masterLoop/init.sqf +++ b/Sources/epoch_code/compile/setup/masterLoop/init.sqf @@ -117,6 +117,7 @@ _antagonistRndChance = ["CfgEpochClient", "antagonistRngChance", 100] call EPOCH _baseHungerLoss = ["CfgEpochClient", "baseHungerLoss", 2] call EPOCH_fnc_returnConfigEntryV2; _baseThirstLoss = ["CfgEpochClient", "baseThirstLoss", 2] call EPOCH_fnc_returnConfigEntryV2; _baseAlcoholLoss = ["CfgEpochClient", "baseAlcoholLoss", 0.17] call EPOCH_fnc_returnConfigEntryV2; +_lossMultiplier = if (["CfgEpochClient", "accelerateHTALoss", true] call EPOCH_fnc_returnConfigEntryV2) then {timeMultiplier} else {1}; _energyCostNV = ["CfgEpochClient", "energyCostNV", 3] call EPOCH_fnc_returnConfigEntryV2; _energyRegenMax = ["CfgEpochClient", "energyRegenMax", 5] call EPOCH_fnc_returnConfigEntryV2; _energyRange = ["CfgEpochClient", "energyRange", 75] call EPOCH_fnc_returnConfigEntryV2; From 0ff57e294e26a173a9e47b8e72e2a5d0be61362d Mon Sep 17 00:00:00 2001 From: Grahame Date: Sat, 21 Oct 2017 16:41:31 -0400 Subject: [PATCH 3/3] Variable handling of accelerated HTA loss --- Sources/epoch_code/compile/setup/masterLoop/Event2.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf b/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf index 26530cdc..27179454 100644 --- a/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf +++ b/Sources/epoch_code/compile/setup/masterLoop/Event2.sqf @@ -172,9 +172,9 @@ if (_wet) then { }; // Hunger / Thirst -_hungerlossRate = _baseHungerLoss * timeMultiplier; -_thirstlossRate = _baseThirstLoss * timeMultiplier; -_alcoholLossRate = _baseAlcoholLoss * timeMultiplier; +_hungerlossRate = _baseHungerLoss * _lossMultiplier; +_thirstlossRate = _baseThirstLoss * _lossMultiplier; +_alcoholLossRate = _baseAlcoholLoss * _lossMultiplier; // Increase hunger if player is Fatigued _playerStamina = missionNamespace getVariable [_playerStaminaKey, _playerStaminaDefault];