Updated humanity Regen when under 1

Vanilla commit:

8e844e2b63
This commit is contained in:
ebaydayz
2016-10-29 16:05:08 -04:00
parent 9a4afbfc43
commit 92d6257b92
2 changed files with 7 additions and 23 deletions

View File

@@ -76,29 +76,12 @@ while {1 == 1} do {
};
if (_timeOut > 150) then {
_humanity = player getVariable ["humanity",0];
if (_humanity < 1 or _forceHumanity) then {
if (vehicle player != player) then {
[round(_timeOut / 10),0] call player_humanityChange;
_forceHumanity = false;
} else {
_humanity = _humanity + round(_timeOut / 10);
player setVariable["humanity",_humanity,true];
_forceHumanity = true;
};
};
_timeOut = 0;
};
/*
if ((Dayz_loginCompleted) && (diag_tickTime < 25)) then {
[0,0] call player_humanityChange;
diag_log ("Running");
_timer10 = diag_Ticktime;
};
*/
_humanity = player getVariable ["humanity",0];
if (_humanity < 1) then {
[round(_timeOut / 10),0] call player_humanityChange;
};
_timeOut = 0;
};
//reset OpenTarget variable if the timer has run out.
if (OpenTarget_Time > 0 && {diag_tickTime - OpenTarget_Time >= dayz_OpenTarget_TimerTicks}) then