mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
[ADDED] +5 humanity for killing zombie, -10 for gutting, +20 for exchanging zombie parts for biomeat.
28 lines
746 B
Plaintext
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)];
|
|
}; |