2016-05-30 16:37:03 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if(GVAR(EnableDebugTrace) && !isMultiplayer) then {
|
|
|
|
GVAR(traceFrags) = true;
|
|
|
|
GVAR(autoTrace) = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
if(isServer) then {
|
2016-06-09 12:24:45 +00:00
|
|
|
[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 not enabled, exit
|
|
|
|
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];
|
|
|
|
GVAR(cacheRoundsTypesToTrack) setText QGVAR(cacheRoundsTypesToTrack);
|