From efae1fa383a6c1c34a3f372875459312019d4305 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Wed, 29 Jan 2014 14:36:32 -0600 Subject: [PATCH] send roadflare to only other players --- SQF/dayz_code/compile/player_fired.sqf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/SQF/dayz_code/compile/player_fired.sqf b/SQF/dayz_code/compile/player_fired.sqf index aa9a28fbb..364c01e0b 100644 --- a/SQF/dayz_code/compile/player_fired.sqf +++ b/SQF/dayz_code/compile/player_fired.sqf @@ -65,8 +65,10 @@ if (_ammo isKindOf "SmokeShell") then { _pos = getPosATL player; _inRange = _pos nearEntities ["CAManBase",1250]; { - PVDZE_send = [_x,"RoadFlare",[_projectile,0]]; - publicVariableServer "PVDZE_send"; + if(isPlayer _x and _x != player) then { + PVDZE_send = [_x,"RoadFlare",[_projectile,0]]; + publicVariableServer "PVDZE_send"; + }; } forEach _inRange; _id = _this spawn player_throwObject; @@ -79,8 +81,10 @@ if (_ammo isKindOf "SmokeShell") then { _pos = getPosATL player; _inRange = _pos nearEntities ["CAManBase",1250]; { - PVDZE_send = [_x,"RoadFlare",[_projectile,1]]; - publicVariableServer "PVDZE_send"; + if(isPlayer _x and _x != player) then { + PVDZE_send = [_x,"RoadFlare",[_projectile,1]]; + publicVariableServer "PVDZE_send"; + } } forEach _inRange; _id = _this spawn player_throwObject;