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