2015-01-11 18:24:19 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-26 21:05:58 +00:00
|
|
|
|
2015-05-14 00:06:10 +00:00
|
|
|
if(GVAR(EnableDebugTrace) && !isMultiplayer) then {
|
|
|
|
GVAR(traceFrags) = true;
|
|
|
|
GVAR(autoTrace) = true;
|
|
|
|
};
|
|
|
|
|
2015-01-11 18:24:19 +00:00
|
|
|
if(isServer) then {
|
2016-05-22 15:29:05 +00:00
|
|
|
[QGVAR(frag_eh), { _this call FUNC(frago); }] call CBA_fnc_addEventHandler;
|
2015-05-13 21:33:14 +00:00
|
|
|
};
|
|
|
|
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_settingsInitialized", {
|
2016-02-06 20:12:28 +00:00
|
|
|
//If not enabled, exit
|
|
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
|
|
|
|
// Register fire event handler
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_firedPlayer", DFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedPlayerNonLocal", DFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedNonPlayer", DFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedPlayerVehicle", DFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedPlayerVehicleNonLocal", DFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedNonPlayerVehicle", DFUNC(fired)] call CBA_fnc_addEventHandler;
|
2016-02-06 20:12:28 +00:00
|
|
|
|
|
|
|
[FUNC(masterPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
|
|
|
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|
2016-01-01 08:33:08 +00:00
|
|
|
|
|
|
|
//Cache for ammo type configs
|
2016-01-05 03:48:26 +00:00
|
|
|
GVAR(cacheRoundsTypesToTrack) = createLocation ["ACE_HashLocation", [-10000,-10000,-10000], 0, 0];
|
2016-01-01 08:33:08 +00:00
|
|
|
GVAR(cacheRoundsTypesToTrack) setText QGVAR(cacheRoundsTypesToTrack);
|