2015-04-05 06:57:24 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-11-16 17:00:50 +00:00
|
|
|
if (hasInterface) then {
|
2024-03-12 21:33:08 +00:00
|
|
|
#include "initKeybinds.inc.sqf"
|
2024-03-28 18:57:23 +00:00
|
|
|
["ace_infoDisplayChanged", LINKFUNC(turretDisplayLoaded)] call CBA_fnc_addEventHandler;
|
2016-11-16 17:00:50 +00:00
|
|
|
};
|
2015-12-19 01:18:35 +00:00
|
|
|
|
2021-10-11 20:48:30 +00:00
|
|
|
["CBA_settingsInitialized", {
|
|
|
|
TRACE_4("CBA_settingsInitialized",GVAR(airResistanceEnabled),GVAR(allowComputerRangefinder),GVAR(allowCompass),GVAR(useAmmoHandling));
|
2016-11-16 17:00:50 +00:00
|
|
|
|
2024-03-28 18:57:23 +00:00
|
|
|
["vehicle", LINKFUNC(handlePlayerVehicleChanged), true] call CBA_fnc_addPlayerEventHandler;
|
2019-12-17 16:14:45 +00:00
|
|
|
|
|
|
|
if (!GVAR(airResistanceEnabled)) exitWith {};
|
|
|
|
if (EGVAR(artillerytables,advancedCorrections)) exitWith { TRACE_1("defer firedEH to artillerytables",_this); };
|
|
|
|
|
2024-03-28 18:57:23 +00:00
|
|
|
["Mortar_01_base_F", "fired", LINKFUNC(handleFired)] call CBA_fnc_addClassEventHandler;
|
2016-11-16 17:00:50 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|