mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
998f86f034
* first pass * second pass * third pass * final pass * missing commas * newlines * switch to cba eventhandler * newlines, formatting * laser - movedToSQF * add logging to ace_common_fnc_cbaSettings_loadFromConfig * Update initSettings.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com>
20 lines
643 B
Plaintext
20 lines
643 B
Plaintext
#include "script_component.hpp"
|
|
|
|
["CBA_settingsInitialized", {
|
|
TRACE_1("settingsInitialized", GVAR(enabledFor));
|
|
if (GVAR(enabledFor) == 0) 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;
|
|
|
|
#include "stateMachine.sqf"
|
|
}] call CBA_fnc_addEventHandler;
|
|
|