Exit fatiuge loop when dead (don't play breathing sound)

This commit is contained in:
PabstMirror 2016-09-11 22:03:20 -05:00
parent bfb88efe9a
commit 9844ae32c9

View File

@ -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;