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-01-08 21:22:52 +00:00
|
|
|
if (isServer) then {
|
2024-01-15 21:37:32 +00:00
|
|
|
call FUNC(initBlackList);
|
|
|
|
call FUNC(initMaterialCache);
|
2024-01-08 21:22:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-15 21:37:32 +00:00
|
|
|
#ifdef DEBUG_MODE_DRAW
|
2024-01-15 05:08:37 +00:00
|
|
|
if (hasInterface) then {
|
2024-01-15 22:30:50 +00:00
|
|
|
GVAR(dev_drawPFEH) = [
|
|
|
|
LINKFUNC(dev_drawTrace),
|
|
|
|
0
|
|
|
|
] call CBA_fnc_addPerFrameHandler;
|
|
|
|
[
|
2024-01-18 03:28:53 +00:00
|
|
|
"ace_interact_menu_newControllableObject",
|
|
|
|
{
|
|
|
|
params ["_type"];
|
|
|
|
|
|
|
|
private _action = [
|
|
|
|
QGVAR(debugReset),
|
|
|
|
"Reset ACE Frag traces",
|
|
|
|
"",
|
|
|
|
{
|
|
|
|
remoteExecCall [QFUNC(dev_clearTraces), 2];
|
|
|
|
},
|
|
|
|
{true}
|
|
|
|
] call EFUNC(interact_menu,createAction);
|
|
|
|
[
|
|
|
|
_type,
|
|
|
|
1,
|
|
|
|
["ACE_SelfActions"],
|
|
|
|
_action,
|
|
|
|
true
|
|
|
|
] call ace_interact_menu_fnc_addActionToClass;
|
|
|
|
}
|
|
|
|
] call CBA_fnc_addEventHandler;
|
2024-01-08 21:22:52 +00:00
|
|
|
};
|
2024-01-15 21:37:32 +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
|