Skip to content

Commit

Permalink
Frag - Optimize fired EHs
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Mar 2, 2025
1 parent 416930e commit 4821d47
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions addons/frag/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,16 @@
};
}] call EFUNC(common,addExplosionEventHandler);

["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;
#ifndef DEBUG_MODE_DRAW
if (GVAR(spallEnabled)) then {
#else
if true then {
#endif
["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;

Expand All @@ -52,5 +58,5 @@
}] call CBA_fnc_addEventHandler;

#ifdef LOG_FRAG_INFO
[true, true, 30] call FUNC(dev_debugAmmo);
[true, true] call FUNC(dev_debugAmmo);
#endif

0 comments on commit 4821d47

Please sign in to comment.