From 7a62e96945c8fb5b0852989d604c41b7ed2007b3 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Mon, 3 Jun 2019 09:44:17 -0500 Subject: [PATCH] Grenades - Don't flashbang spectators (#7029) --- addons/grenades/functions/fnc_flashbangExplosionEH.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/grenades/functions/fnc_flashbangExplosionEH.sqf b/addons/grenades/functions/fnc_flashbangExplosionEH.sqf index d876f126b9..7beb128df6 100644 --- a/addons/grenades/functions/fnc_flashbangExplosionEH.sqf +++ b/addons/grenades/functions/fnc_flashbangExplosionEH.sqf @@ -74,6 +74,9 @@ _affected = _affected - [ACE_player]; // Affect local player, independently of distance if (hasInterface && {!isNull ACE_player} && {alive ACE_player}) then { + if ((getNumber (configFile >> "CfgVehicles" >> (typeOf ACE_player) >> "isPlayableLogic")) == 1) exitWith { + TRACE_1("skipping playable logic",typeOf ACE_player); // VirtualMan_F (placeable logic zeus / spectator) + }; // Do effects for player // is there line of sight to the grenade? private _eyePos = eyePos ACE_player; //PositionASL