From f9fdb1f3f7d9a5b706d7e0eb13e16d8fe57b2426 Mon Sep 17 00:00:00 2001 From: icomrade Date: Wed, 10 Aug 2016 12:13:11 -0400 Subject: [PATCH] Re-add humanity gain on zombie kill For some reason this was removed in https://github.com/EpochModTeam/DayZ-Epoch/commit/77e760fe73a4bd1f1858b42bbabdb6f3c444dcfb @ebaydayz --- SQF/dayz_code/compile/local_eventKill.sqf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SQF/dayz_code/compile/local_eventKill.sqf b/SQF/dayz_code/compile/local_eventKill.sqf index ff8108191..dc8074620 100644 --- a/SQF/dayz_code/compile/local_eventKill.sqf +++ b/SQF/dayz_code/compile/local_eventKill.sqf @@ -11,4 +11,9 @@ _type = _this select 1; if (local _zed) then { _kills = _killer getVariable[_type,0]; _killer setVariable[_type,(_kills + 1),true]; + + //increase players humanity when zed killed + _humanity = _killer getVariable["humanity",0]; + _humanity = _humanity + 5; + _killer setVariable["humanity",_humanity,true]; }; \ No newline at end of file