mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-13 13:21:57 +03:00
Updated humanity Regen when under 1
Vanilla commit: https://github.com/DayZMod/DayZ/commit/8e844e2b6302d1682ff8653a00df8604be1c8b76
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user