mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
889 B
Plaintext
25 lines
889 B
Plaintext
#include "script_component.hpp"
|
|
|
|
["CBA_settingsInitialized", {
|
|
TRACE_2("settingsInitialized",GVAR(enabledFor),GETEGVAR(medical,enabled,false));
|
|
|
|
if (GVAR(enabledFor) == 0 || {!(GETEGVAR(medical,enabled,false))}) exitWith {}; // 0: disabled
|
|
if ((GVAR(enabledFor) == 1) && {!isServer} && {hasInterface}) exitWith {}; // 1: Don't Run on non-hc Clients
|
|
|
|
["ace_firedNonPlayer", {
|
|
_unit setVariable [QGVAR(lastFired), CBA_missionTime];
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
["CAManBase", "Hit", {
|
|
params ["_unit"];
|
|
_unit setVariable [QGVAR(lastHit), CBA_missionTime];
|
|
}] call CBA_fnc_addClassEventHandler;
|
|
|
|
["CAManBase", "Suppressed", {
|
|
params ["_unit"];
|
|
_unit setVariable [QGVAR(lastSuppressed), CBA_missionTime];
|
|
}] call CBA_fnc_addClassEventHandler;
|
|
|
|
#include "stateMachine.inc.sqf"
|
|
}] call CBA_fnc_addEventHandler;
|