mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Exit fatiuge loop when dead (don't play breathing sound)
This commit is contained in:
parent
bfb88efe9a
commit
9844ae32c9
@ -9,7 +9,7 @@
|
|||||||
* None
|
* None
|
||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#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 _currentWork = REE;
|
||||||
private _currentSpeed = (vectorMagnitude (velocity ACE_player)) min 6;
|
private _currentSpeed = (vectorMagnitude (velocity ACE_player)) min 6;
|
||||||
|
Loading…
Reference in New Issue
Block a user