From 43baa8d31dd95edda7aae4f360b9ff2f532315ad Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sat, 23 Jul 2016 23:52:53 +0200 Subject: [PATCH 1/3] FIX: test if suicider is alive after play allahu_akbar --- =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf index 0d5dfe5f7..1045a8757 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf @@ -8,6 +8,8 @@ _soundToPlay = _soundPath + "core\sounds\allahu_akbar.ogg"; if (alive _suicider) then { playSound3d [_soundToPlay, _suicider, false, (getPosASL _suicider), 10, 1,100]; sleep 1.4; +}; +if (alive _suicider) then { {deleteVehicle _x;} forEach attachedObjects _suicider; "Bo_GBU12_LGB_MI10" createVehicle getPos _suicider; playSound3d["A3\Missions_F_EPA\data\sounds\combat_deafness.wss", _suicider, false, (getPosASL _suicider), 5, 1, 100]; From 01e299c27ccbaee666856bde0a89ec457c3a28d7 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 24 Jul 2016 00:28:13 +0200 Subject: [PATCH 2/3] Adjust sleep position --- =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf index 1045a8757..b3a569a11 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf @@ -7,8 +7,8 @@ _soundPath = [(str missionConfigFile), 0, -15] call BIS_fnc_trimString; _soundToPlay = _soundPath + "core\sounds\allahu_akbar.ogg"; if (alive _suicider) then { playSound3d [_soundToPlay, _suicider, false, (getPosASL _suicider), 10, 1,100]; - sleep 1.4; }; +sleep 1.4; if (alive _suicider) then { {deleteVehicle _x;} forEach attachedObjects _suicider; "Bo_GBU12_LGB_MI10" createVehicle getPos _suicider; From 94acdcb07bf307da7b28598b5d34e45ad4887233 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 24 Jul 2016 13:06:07 +0200 Subject: [PATCH 3/3] FIX: if suicider is not awake don't detonate --- .../core/fnc/ied/allahu_akbar.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf index b3a569a11..3441f9204 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf @@ -5,11 +5,11 @@ _suicider = _this getVariable "suicider"; _soundPath = [(str missionConfigFile), 0, -15] call BIS_fnc_trimString; _soundToPlay = _soundPath + "core\sounds\allahu_akbar.ogg"; -if (alive _suicider) then { - playSound3d [_soundToPlay, _suicider, false, (getPosASL _suicider), 10, 1,100]; +if (Alive _suicider && [_suicider] call ace_common_fnc_isAwake) then { + playSound3d [_soundToPlay, _suicider, false, getPosASL _suicider, 15, 1,100]; }; sleep 1.4; -if (alive _suicider) then { +if (Alive _suicider && [_suicider] call ace_common_fnc_isAwake) then { {deleteVehicle _x;} forEach attachedObjects _suicider; "Bo_GBU12_LGB_MI10" createVehicle getPos _suicider; playSound3d["A3\Missions_F_EPA\data\sounds\combat_deafness.wss", _suicider, false, (getPosASL _suicider), 5, 1, 100];