2016-12-01 19:54:03 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
2017-03-18 16:53:57 +00:00
|
|
|
GVAR(nextFadeIn) = 0;
|
2017-02-19 04:11:40 +00:00
|
|
|
GVAR(heartBeatEffectRunning) = false;
|
|
|
|
|
|
|
|
[false] call FUNC(initEffects);
|
|
|
|
[LINKFUNC(handleEffects), 1, []] call CBA_fnc_addPerFrameHandler;
|
2016-12-09 18:16:41 +00:00
|
|
|
|
|
|
|
["ace_unconscious", {
|
|
|
|
params ["_unit", "_unconscious"];
|
|
|
|
if (_unit != ACE_player) exitWith {};
|
|
|
|
|
|
|
|
[_unconscious, 1] call FUNC(effectUnconscious);
|
2017-01-29 19:24:16 +00:00
|
|
|
["unconscious", _unconscious] call EFUNC(common,setDisableUserInputStatus);
|
2016-12-09 18:16:41 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|
2017-04-30 06:46:51 +00:00
|
|
|
|
|
|
|
["unit", {
|
|
|
|
params ["_new", "_old"];
|
|
|
|
private _status = _new getVariable ["ace_unconscious", false];
|
|
|
|
[_status, 0] call FUNC(effectUnconscious);
|
|
|
|
["unconscious", _status] call EFUNC(common,setDisableUserInputStatus);
|
|
|
|
}] call CBA_fnc_addPlayerEventHandler;
|