mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
321bb0bc57
Remove rpt warning Close #342
31 lines
939 B
Plaintext
31 lines
939 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (GVAR(EnableDebugTrace) && {!isMultiplayer}) then {
|
|
GVAR(traceFrags) = true;
|
|
GVAR(autoTrace) = true;
|
|
};
|
|
|
|
if (isServer) then {
|
|
[QGVAR(frag_eh), {_this call FUNC(frago);}] call CBA_fnc_addEventHandler;
|
|
};
|
|
|
|
["ace_settingsInitialized", {
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
// Register fire event handler
|
|
["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;
|
|
|
|
[LINKFUNC(masterPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
// Cache for ammo type configs
|
|
GVAR(cacheRoundsTypesToTrack) = [false] call CBA_fnc_createNamespace;
|
|
|
|
#ifdef DEBUG_ENABLED_FRAG
|
|
[true, true, 30] call FUNC(dev_debugAmmo);
|
|
#endif
|
|
|