ACE3/addons/advanced_ballistics/XEH_postInit.sqf

32 lines
858 B
Plaintext
Raw Permalink Normal View History

2015-04-05 19:08:55 +00:00
#include "script_component.hpp"
#include "initKeybinds.inc.sqf"
2015-04-05 19:08:55 +00:00
GVAR(Protractor) = false;
2016-03-02 10:01:39 +00:00
GVAR(ProtractorStart) = CBA_missionTime;
GVAR(allBullets) = createHashMap;
GVAR(currentGrid) = 0;
2015-04-05 19:08:55 +00:00
if (!hasInterface) exitWith {};
#include "initKeybinds.inc.sqf"
["CBA_settingsInitialized", {
//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);
// Register fire event handler
["ace_firedPlayer", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
["ace_firedPlayerNonLocal", LINKFUNC(handleFired)] call CBA_fnc_addEventHandler;
// Register Perframe Handler
[LINKFUNC(handleFirePFH), GVAR(simulationInterval)] call CBA_fnc_addPerFrameHandler;
}] call CBA_fnc_addEventHandler;
#ifdef DEBUG_MODE_FULL
call FUNC(diagnoseWeapons);
#endif