2015-04-05 19:08:55 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
#include "initKeybinds.sqf"
|
|
|
|
|
2015-04-13 10:56:18 +00:00
|
|
|
GVAR(currentbulletID) = -1;
|
|
|
|
|
2015-04-05 19:08:55 +00:00
|
|
|
GVAR(bulletDatabase) = [];
|
|
|
|
GVAR(bulletDatabaseStartTime) = [];
|
|
|
|
GVAR(bulletDatabaseSpeed) = [];
|
|
|
|
GVAR(bulletDatabaseFrames) = [];
|
|
|
|
GVAR(bulletDatabaseLastFrame) = [];
|
|
|
|
GVAR(bulletDatabaseHDeflect) = [];
|
|
|
|
GVAR(bulletDatabaseSpinDrift) = [];
|
|
|
|
GVAR(bulletDatabaseOccupiedIndices) = [];
|
|
|
|
GVAR(bulletDatabaseFreeIndices) = [];
|
|
|
|
|
|
|
|
GVAR(WindInfo) = false;
|
|
|
|
GVAR(WindInfoStart) = time;
|
|
|
|
|
|
|
|
GVAR(Protractor) = false;
|
|
|
|
GVAR(ProtractorStart) = time;
|
|
|
|
|
2015-04-11 20:34:19 +00:00
|
|
|
// Those are only used in the pure sqf version (extension free PFH)
|
|
|
|
GVAR(SimulationPrecision) = 2;
|
2015-04-05 19:08:55 +00:00
|
|
|
GVAR(WindEnabled) = true;
|
|
|
|
GVAR(SpinDriftEnabled) = true;
|
|
|
|
GVAR(CoriolisEnabled) = true;
|
|
|
|
GVAR(EoetvoesEnabled) = true;
|
|
|
|
GVAR(AdvancedAirDragEnabled) = true;
|
|
|
|
GVAR(TransonicRegionEnabled) = true;
|
|
|
|
GVAR(AtmosphericDensitySimulationEnabled) = true;
|
2015-04-07 19:22:58 +00:00
|
|
|
|
2015-04-11 16:18:38 +00:00
|
|
|
GVAR(currentGrid) = 0;
|
2015-04-07 19:22:58 +00:00
|
|
|
GVAR(INIT_MESSAGE_ENABLED) = false;
|
2015-04-05 19:08:55 +00:00
|
|
|
|
2015-04-16 11:42:28 +00:00
|
|
|
GVAR(extensionVersion) = ("ace_advanced_ballistics" callExtension "version");
|
|
|
|
GVAR(extensionAvailable) = (GVAR(extensionVersion) == EXTENSION_REQUIRED_VERSION);
|
2015-04-13 10:56:18 +00:00
|
|
|
if (!GVAR(extensionAvailable)) exitWith {
|
2015-04-16 11:42:28 +00:00
|
|
|
if (GVAR(extensionVersion) == "") then {
|
2015-04-13 10:56:18 +00:00
|
|
|
diag_log text "[ACE] ERROR: ace_advanced_ballistics.dll is missing";
|
|
|
|
} else {
|
|
|
|
diag_log text "[ACE] ERROR: ace_advanced_ballistics.dll is incompatible";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-04-05 19:08:55 +00:00
|
|
|
[] call FUNC(initializeTerrainExtension);
|