From 9844ae32c938fe5a3f3ede96f46441a9386a4259 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 11 Sep 2016 22:03:20 -0500 Subject: [PATCH] Exit fatiuge loop when dead (don't play breathing sound) --- addons/advanced_fatigue/functions/fnc_pfhMain.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/advanced_fatigue/functions/fnc_pfhMain.sqf b/addons/advanced_fatigue/functions/fnc_pfhMain.sqf index 49db4646af..9e7ad381d6 100644 --- a/addons/advanced_fatigue/functions/fnc_pfhMain.sqf +++ b/addons/advanced_fatigue/functions/fnc_pfhMain.sqf @@ -9,7 +9,7 @@ * None */ #include "script_component.hpp" -if (isNull ACE_player) exitWith {}; // Map intros +if (!alive ACE_player) exitWith {}; // Dead people don't breath, Will also handle null (Map intros) private _currentWork = REE; private _currentSpeed = (vectorMagnitude (velocity ACE_player)) min 6;