mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
@@ -4,6 +4,7 @@ _wait = _this select 1;
|
||||
|
||||
_humanity = (player getVariable["humanity",0]) + _change;
|
||||
player setVariable["humanity",_humanity,true];
|
||||
|
||||
if (_change < 0) then { //non-bandit player can be "punished" in next "_wait" seconds w/o loosing humanity
|
||||
if ((_humanity > -2000) and (_wait > 0)) then {
|
||||
// player setVariable ["freeTarget",true,true];
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user