ACE3/addons/frag/XEH_postInit.sqf

57 lines
1.9 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",
{
if (isServer) then {
2024-01-15 21:37:32 +00:00
call FUNC(initMaterialCache);
2024-01-18 05:13:31 +00:00
[
QEGVAR(common,setShotParents),
{
(_this#0) setVariable [QGVAR(shotParent), [_this#1, _this#2]];
}
] call CBA_fnc_addEventHandler;
};
2024-01-15 21:37:32 +00:00
#ifdef DEBUG_MODE_DRAW
if (!hasInterface) exitWith {};
if (!isServer) then {
2024-02-16 03:05:08 +00:00
["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",
"",
{
call FUNC(dev_clearTraces);
},
{true}
] call EFUNC(interact_menu,createAction);
[
_type,
1,
["ACE_SelfActions"],
_action,
true
] call ace_interact_menu_fnc_addActionToClass;
}
] call CBA_fnc_addEventHandler;
2024-01-15 21:37:32 +00:00
#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