ACE3/addons/medical_feedback/XEH_postInit.sqf

25 lines
763 B
Plaintext
Raw Normal View History

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;
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;
["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;