EpochModTeam / Epoch

Epoch Survival Game Mode for ARMA 3
http://epochmod.com/
Other
91 stars 82 forks source link

Allow server devs to control accelerated HTA Loss #939

Closed morgoth0 closed 6 years ago

morgoth0 commented 6 years ago

Set a variable accelerateHTALoss in cfgEpochClient.hpp to specify whether the server's time acceleration should be applied to the rate of loss of Hunger, Thirst and Alcohol. Default is "true"

Ignatz-HeMan commented 6 years ago

This option is good, but a bit cleaner would be:

init: _LossMultiplier = if (["CfgEpochClient", "accelerateHTALoss", true] call EPOCH_fnc_returnConfigEntryV2) then {timeMultiplier} else {1};

event2: _hungerlossRate = _baseHungerLoss _LossMultiplier; _thirstlossRate = _baseThirstLoss _LossMultiplier; _alcoholLossRate = _baseAlcoholLoss * _LossMultiplier;

morgoth0 commented 6 years ago

@Ignatz-HeMan That is a much better way of doing it. Still getting used to the language at the moment. Do you want to do a pull on that or should I do so? I think it would be better to use your code to be honest.

Ignatz-HeMan commented 6 years ago

Just do it ;)

morgoth0 commented 6 years ago

Roger that