mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
043b3907fe
Co-authored-by: Pepijn Holster <pgaholster@gmail.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: LorenLuke <LukeLLL@aol.com> Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
32 lines
858 B
Plaintext
32 lines
858 B
Plaintext
#include "script_component.hpp"
|
|
|
|
#include "initKeybinds.inc.sqf"
|
|
|
|
GVAR(Protractor) = false;
|
|
GVAR(ProtractorStart) = CBA_missionTime;
|
|
GVAR(allBullets) = createHashMap;
|
|
GVAR(currentGrid) = 0;
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
#include "initKeybinds.inc.sqf"
|
|
|
|
["CBA_settingsInitialized", {
|
|
//If not enabled, dont't add PFEH
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
//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
|