ACE3/addons/frag/XEH_postInit.sqf

27 lines
946 B
Plaintext
Raw Normal View History

2016-05-30 16:37:03 +00:00
#include "script_component.hpp"
if (GVAR(EnableDebugTrace) && {!isMultiplayer}) then {
2016-05-30 16:37:03 +00:00
GVAR(traceFrags) = true;
GVAR(autoTrace) = true;
};
if (isServer) then {
[QGVAR(frag_eh), {_this call FUNC(frago);}] call CBA_fnc_addEventHandler;
2016-05-30 16:37:03 +00:00
};
2016-06-09 12:24:45 +00:00
["ace_settingsInitialized", {
2016-05-30 16:37:03 +00:00
if (!GVAR(enabled)) exitWith {};
// Register fire event handler
2016-06-09 12:24:45 +00:00
["ace_firedPlayer", DFUNC(fired)] call CBA_fnc_addEventHandler;
["ace_firedNonPlayer", DFUNC(fired)] call CBA_fnc_addEventHandler;
["ace_firedPlayerVehicle", DFUNC(fired)] call CBA_fnc_addEventHandler;
["ace_firedNonPlayerVehicle", DFUNC(fired)] call CBA_fnc_addEventHandler;
2016-05-30 16:37:03 +00:00
[FUNC(masterPFH), 0, []] call CBA_fnc_addPerFrameHandler;
2016-06-09 12:24:45 +00:00
}] call CBA_fnc_addEventHandler;
2016-05-30 16:37:03 +00:00
// Cache for ammo type configs
GVAR(cacheRoundsTypesToTrack) = createLocation ["ACE_HashLocation", [-10000, -10000, -10000], 0, 0];
2016-05-30 16:37:03 +00:00
GVAR(cacheRoundsTypesToTrack) setText QGVAR(cacheRoundsTypesToTrack);