mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
05e4f74e73
* Medical AI - Adjust healing logic for rewrite - move state machine from config to sqf - move all healing logic to seperate func - attempt to handle healing for new system * prioritize unitReady medics * move setting to subcategory under medical * Use faster GET_WOUND_BLEEDING * Update fnc_healingLogic.sqf * Update for wound array changes * Update treatment events changes * Fractures/splint * formating / use GET_OPEN_WOUNDS * Use non-localized medical category
15 lines
486 B
Plaintext
15 lines
486 B
Plaintext
#include "script_component.hpp"
|
|
|
|
["ace_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;
|
|
|
|
#include "stateMachine.sqf"
|
|
}] call CBA_fnc_addEventHandler;
|
|
|