Humanity changes for killing zeds and more.

[ADDED] +5 humanity for killing zombie, -10 for gutting, +20 for
exchanging zombie parts for biomeat.
This commit is contained in:
vbawol
2013-07-01 10:24:42 -05:00
parent 837a91433b
commit 70f839c298
4 changed files with 24 additions and 3 deletions

View File

@@ -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 = player getVariable["humanity",0];
_humanity = _humanity + 5;
player setVariable["humanity",_humanity,true];
};

View File

@@ -18,8 +18,6 @@ if (local _zombiebody) then {
publicVariable "dayzHideBody"; // remote player
sleep 5;
deleteVehicle _body;
// Give small humanity increase after body is removed
[player,1] call player_humanityChange;
true;
};