mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
415d2f685c
FUNC -> LINKFUNC
49 lines
1.8 KiB
Plaintext
49 lines
1.8 KiB
Plaintext
#include "script_component.hpp"
|
|
|
|
#ifdef DEBUG_MODE_DRAW
|
|
[
|
|
"CBA_settingsInitialized",
|
|
{
|
|
[QGVAR(dev_clearTraces), LINKFUNC(dev_clearTraces)] call CBA_fnc_addEventHandler;
|
|
|
|
if (!hasInterface) exitWith {};
|
|
if (!isServer) then {
|
|
["ace_firedPlayer", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
|
["ace_firedPlayerNonLocal", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
|
["ace_firedNonPlayer", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
|
["ace_firedPlayerVehicle", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
|
["ace_firedPlayerVehicleNonLocal", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
|
|
["ace_firedNonPlayerVehicle", 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
|
|
] call EFUNC(interact_menu,addActionToClass);
|
|
}
|
|
] call CBA_fnc_addEventHandler;
|
|
}
|
|
] call CBA_fnc_addEventHandler;
|
|
#endif
|
|
|
|
#ifdef LOG_FRAG_INFO
|
|
[true, true, 30] call FUNC(dev_debugAmmo);
|
|
#endif
|