mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
hide body locally and only send to other players
This commit is contained in:
@@ -18,11 +18,16 @@ if (local _animalbody) then {
|
|||||||
sleep 5;
|
sleep 5;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hideBody _body;
|
||||||
|
|
||||||
/* PVS/PVC - Skaronator */
|
/* PVS/PVC - Skaronator */
|
||||||
_inRange = _pos nearEntities ["CAManBase",100];
|
_inRange = _pos nearEntities ["CAManBase",100];
|
||||||
{
|
{
|
||||||
PVDZE_send = [_x,"HideBody",[_body]];
|
// only send to other players
|
||||||
publicVariableServer "PVDZE_send";
|
if(isPlayer _x and _x != player) then {
|
||||||
|
PVDZE_send = [_x,"HideBody",[_body]];
|
||||||
|
publicVariableServer "PVDZE_send";
|
||||||
|
};
|
||||||
} forEach _inRange;
|
} forEach _inRange;
|
||||||
|
|
||||||
sleep 5;
|
sleep 5;
|
||||||
|
|||||||
@@ -13,12 +13,16 @@ if (local _zombiebody) then {
|
|||||||
while {(count magazines _body >0) and (time - _timer < 300) } do {
|
while {(count magazines _body >0) and (time - _timer < 300) } do {
|
||||||
sleep 5;
|
sleep 5;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hideBody _body;
|
||||||
|
|
||||||
/* PVS/PVC - Skaronator */
|
/* PVS/PVC - Skaronator */
|
||||||
_inRange = _pos nearEntities ["CAManBase",100];
|
_inRange = _pos nearEntities ["CAManBase",100];
|
||||||
{
|
{
|
||||||
PVDZE_send = [_x,"HideBody",[_body]];
|
if(isPlayer _x and _x != player) then {
|
||||||
publicVariableServer "PVDZE_send";
|
PVDZE_send = [_x,"HideBody",[_body]];
|
||||||
|
publicVariableServer "PVDZE_send";
|
||||||
|
};
|
||||||
} forEach _inRange;
|
} forEach _inRange;
|
||||||
|
|
||||||
sleep 5;
|
sleep 5;
|
||||||
|
|||||||
Reference in New Issue
Block a user