From 589b366ce32cc1cd04f7365211cacf267796d136 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Wed, 29 Jan 2014 14:06:41 -0600 Subject: [PATCH] hide body locally and only send to other players --- SQF/dayz_code/compile/local_gutObject.sqf | 9 +++++++-- SQF/dayz_code/compile/local_gutObjectZ.sqf | 8 ++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/SQF/dayz_code/compile/local_gutObject.sqf b/SQF/dayz_code/compile/local_gutObject.sqf index a15f0c3bf..992f40b15 100644 --- a/SQF/dayz_code/compile/local_gutObject.sqf +++ b/SQF/dayz_code/compile/local_gutObject.sqf @@ -18,11 +18,16 @@ if (local _animalbody) then { sleep 5; }; + hideBody _body; + /* PVS/PVC - Skaronator */ _inRange = _pos nearEntities ["CAManBase",100]; { - PVDZE_send = [_x,"HideBody",[_body]]; - publicVariableServer "PVDZE_send"; + // only send to other players + if(isPlayer _x and _x != player) then { + PVDZE_send = [_x,"HideBody",[_body]]; + publicVariableServer "PVDZE_send"; + }; } forEach _inRange; sleep 5; diff --git a/SQF/dayz_code/compile/local_gutObjectZ.sqf b/SQF/dayz_code/compile/local_gutObjectZ.sqf index c0a83c6e6..dc48a5a39 100644 --- a/SQF/dayz_code/compile/local_gutObjectZ.sqf +++ b/SQF/dayz_code/compile/local_gutObjectZ.sqf @@ -13,12 +13,16 @@ if (local _zombiebody) then { while {(count magazines _body >0) and (time - _timer < 300) } do { sleep 5; }; + + hideBody _body; /* PVS/PVC - Skaronator */ _inRange = _pos nearEntities ["CAManBase",100]; { - PVDZE_send = [_x,"HideBody",[_body]]; - publicVariableServer "PVDZE_send"; + if(isPlayer _x and _x != player) then { + PVDZE_send = [_x,"HideBody",[_body]]; + publicVariableServer "PVDZE_send"; + }; } forEach _inRange; sleep 5;