From 2668bdc665939b2f03aafb68a14cb05d15afde3e Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Fri, 4 May 2018 18:57:38 +0200 Subject: [PATCH] Check if suicide bomber isAwake (#6324) Zeus - Don't trigger suicide bomber if unconsicous --- addons/zeus/functions/fnc_moduleSuicideBomber.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/zeus/functions/fnc_moduleSuicideBomber.sqf b/addons/zeus/functions/fnc_moduleSuicideBomber.sqf index a5ddbab566..5364692ded 100644 --- a/addons/zeus/functions/fnc_moduleSuicideBomber.sqf +++ b/addons/zeus/functions/fnc_moduleSuicideBomber.sqf @@ -57,6 +57,8 @@ if (_autoSeek) then { LOG("Unit deleted or killed, PFH removed"); }; + if (!([_unit] call EFUNC(common,isAwake))) exitWith {}; + // Detonation private _nearObjects = (_unit nearObjects _activationRadius) select {side _x == _activationSide && {_x != _unit} && {alive _x}}; if !(_nearObjects isEqualTo []) then {