Files
DayZ-Epoch/SQF/dayz_code/compile/local_gutObjectZ.sqf
vbawol 70f839c298 Humanity changes for killing zeds and more.
[ADDED] +5 humanity for killing zombie, -10 for gutting, +20 for
exchanging zombie parts for biomeat.
2013-07-01 10:24:42 -05:00

28 lines
746 B
Plaintext

private ["_zombiebody","_ehLoc"];
_zombiebody = _this select 0;
// _qty = _this select 1;
if (local _zombiebody) then {
_zombiebody addMagazine "ItemZombieParts";
[time, _zombiebody] spawn {
private ["_timer", "_body"];
_timer = _this select 0;
_body = _this select 1;
while {(count magazines _body >0) and (time - _timer < 300) } do {
sleep 5;
};
//["dayzHideBody",_body] call broadcastRpcCallAll;
dayzHideBody = _body;
hideBody _body; // local player
publicVariable "dayzHideBody"; // remote player
sleep 5;
deleteVehicle _body;
true;
};
} else {
_ehLoc = "client";
if (isServer) then { _ehLoc = "server"; };
diag_log format["gutObject EH on %1 item not local ! Type: %2",_ehLoc,str(_zombiebody)];
};