2016-05-30 16:37:03 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2021-10-11 20:48:30 +00:00
|
|
|
["CBA_settingsInitialized", {
|
2024-01-08 21:22:52 +00:00
|
|
|
if (isServer) then {
|
|
|
|
[QGVAR(frag_eh), LINKFUNC(doFrag)] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(spall_eh), LINKFUNC(doFragMomentum)] call CBA_fnc_addEventHandler;
|
|
|
|
[] call FUNC(initBlackList);
|
|
|
|
};
|
|
|
|
|
|
|
|
if (hasInterface) then {
|
|
|
|
["ace_firedPlayer", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedPlayerVehicle", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
};
|
|
|
|
|
|
|
|
["ace_firedNonPlayer", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedNonPlayerVehicle", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
|
|
|
|
// Debug info
|
|
|
|
#ifdef DEBUG_MODE_FULL
|
|
|
|
if (hasInterface && GVAR(debugOptions)) then
|
|
|
|
{
|
|
|
|
private _h = [LINKFUNC(dev_drawTrace), 0] call CBA_fnc_addPerFrameHandler;
|
|
|
|
missionNamespace setVariable [QGVAR(dev_drawPFEH), _h];
|
|
|
|
["unit", LINKFUNC(dev_switchUnitHandle), true] call CBA_fnc_addPlayerEventHandler;
|
|
|
|
[objNull, ace_player] call FUNC(dev_switchUnitHandle);
|
|
|
|
["ace_firedPlayer", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedNonPlayer", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedPlayerVehicle", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedNonPlayerVehicle", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
};
|
|
|
|
#endif
|
2016-06-09 12:24:45 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|
2016-05-30 16:37:03 +00:00
|
|
|
|
2017-04-11 15:33:56 +00:00
|
|
|
|
|
|
|
// Debug stuff:
|
|
|
|
|
2024-01-08 21:22:52 +00:00
|
|
|
#ifdef LOG_FRAG_INFO
|
2016-12-01 17:01:55 +00:00
|
|
|
[true, true, 30] call FUNC(dev_debugAmmo);
|
|
|
|
#endif
|