ACE3/addons/frag/XEH_postInit.sqf

47 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-01-11 21:44:01 +00:00
#include "script_component.hpp"
2016-05-30 16:37:03 +00:00
[
"CBA_settingsInitialized",
{
["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;
#ifdef DEBUG_MODE_DRAW
[QGVAR(dev_clearTraces), LINKFUNC(dev_clearTraces)] call CBA_fnc_addEventHandler;
if (!hasInterface) exitWith {};
["ace_firedPlayerVehicleNonLocal", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
["ace_firedPlayerNonLocal", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
GVAR(dev_drawPFEH) = [LINKFUNC(dev_drawTrace), 0] call CBA_fnc_addPerFrameHandler;
[
"ace_interact_menu_newControllableObject",
{
params ["_type"];
private _action = [
QGVAR(debugReset),
"Reset ACE Frag traces",
"",
{
[QGVAR(dev_clearTraces), []] call CBA_fnc_globalEvent;
},
{GVAR(dev_trackLines) isNotEqualTo createHashMap}
] call EFUNC(interact_menu,createAction);
[
_type,
1,
["ACE_SelfActions"],
_action,
true
2024-03-02 15:36:43 +00:00
] call EFUNC(interact_menu,addActionToClass);
}
] call CBA_fnc_addEventHandler;
#endif
}
] call CBA_fnc_addEventHandler;
2016-05-30 16:37:03 +00:00
#ifdef LOG_FRAG_INFO
[true, true, 30] call FUNC(dev_debugAmmo);
#endif