mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
973cfdd1c4
* Remove missing compats warning * move to common/preStart * ? --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com>
32 lines
843 B
Plaintext
32 lines
843 B
Plaintext
#include "script_component.hpp"
|
|
|
|
GVAR(currentbulletID) = -1;
|
|
|
|
GVAR(Protractor) = false;
|
|
GVAR(ProtractorStart) = CBA_missionTime;
|
|
GVAR(allBullets) = [];
|
|
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
|