From bf189761ad0090e05725474ee4d66b54aa982988 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Wed, 29 Jan 2014 14:00:02 -0600 Subject: [PATCH] should fix backpack issues This makes sure we only run on players and not the player as this currently hides the backpack from the player that set it down and was running on everyone zombies included. --- SQF/dayz_code/compile/player_dumpBackpack.sqf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/player_dumpBackpack.sqf b/SQF/dayz_code/compile/player_dumpBackpack.sqf index 8a9aed7cd..5503e1c2e 100644 --- a/SQF/dayz_code/compile/player_dumpBackpack.sqf +++ b/SQF/dayz_code/compile/player_dumpBackpack.sqf @@ -10,8 +10,11 @@ if (!(isNull _backpack) and local _backpack) then { _pos = getPosATL player; _inRange = _pos nearEntities ["CAManBase",300]; { - PVDZE_send = [_x,"HideObj",[_backpack]]; - publicVariableServer "PVDZE_send"; + // run only on other players + if(isPlayer _x and _x != player) then { + PVDZE_send = [_x,"HideObj",[_backpack]]; + publicVariableServer "PVDZE_send"; + }; } forEach _inRange; }; }; \ No newline at end of file