2015-04-05 19:08:55 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2024-08-17 15:50:38 +00:00
|
|
|
#include "initKeybinds.inc.sqf"
|
2015-04-13 10:56:18 +00:00
|
|
|
|
2015-04-05 19:08:55 +00:00
|
|
|
GVAR(Protractor) = false;
|
2016-03-02 10:01:39 +00:00
|
|
|
GVAR(ProtractorStart) = CBA_missionTime;
|
2024-08-17 15:50:38 +00:00
|
|
|
GVAR(allBullets) = createHashMap;
|
2015-04-11 16:18:38 +00:00
|
|
|
GVAR(currentGrid) = 0;
|
2015-04-05 19:08:55 +00:00
|
|
|
|
2016-02-06 21:48:26 +00:00
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
2024-03-12 21:33:08 +00:00
|
|
|
#include "initKeybinds.inc.sqf"
|
|
|
|
|
2021-10-11 20:48:30 +00:00
|
|
|
["CBA_settingsInitialized", {
|
2016-02-06 21:48:26 +00:00
|
|
|
//If not enabled, dont't add PFEH
|
|
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
|
2016-03-24 17:23:48 +00:00
|
|
|
//Run the terrain processor
|
|
|
|
[] call FUNC(initializeTerrainExtension);
|
|
|
|
|
2016-02-06 21:48:26 +00:00
|
|
|
// Register fire event handler
|
2024-03-28 18:57:23 +00:00
|
|
|
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedPlayerNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
|
2016-02-06 21:48:26 +00:00
|
|
|
|
2020-06-13 20:45:09 +00:00
|
|
|
// Register Perframe Handler
|
2024-03-28 18:57:23 +00:00
|
|
|
[LINKFUNC(handleFirePFH), GVAR(simulationInterval)] call CBA_fnc_addPerFrameHandler;
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|
2016-02-19 03:45:00 +00:00
|
|
|
|
|
|
|
#ifdef DEBUG_MODE_FULL
|
|
|
|
call FUNC(diagnoseWeapons);
|
2017-11-19 14:11:15 +00:00
|
|
|
#endif
|