ACE3/addons/mk6mortar/XEH_postInit.sqf

18 lines
750 B
Plaintext
Raw Permalink Normal View History

2015-04-05 06:57:24 +00:00
#include "script_component.hpp"
if (hasInterface) then {
#include "initKeybinds.inc.sqf"
["ace_infoDisplayChanged", LINKFUNC(turretDisplayLoaded)] call CBA_fnc_addEventHandler;
};
2015-12-19 01:18:35 +00:00
["CBA_settingsInitialized", {
TRACE_4("CBA_settingsInitialized",GVAR(airResistanceEnabled),GVAR(allowComputerRangefinder),GVAR(allowCompass),GVAR(useAmmoHandling));
["vehicle", LINKFUNC(handlePlayerVehicleChanged), true] call CBA_fnc_addPlayerEventHandler;
if (!GVAR(airResistanceEnabled)) exitWith {};
if (EGVAR(artillerytables,advancedCorrections)) exitWith { TRACE_1("defer firedEH to artillerytables",_this); };
["Mortar_01_base_F", "fired", LINKFUNC(handleFired)] call CBA_fnc_addClassEventHandler;
}] call CBA_fnc_addEventHandler;