mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Advanced Ballistics - Removed unused code (#5806)
This commit is contained in:
parent
e507291bb6
commit
7e397b4596
@ -9,19 +9,6 @@ GVAR(ProtractorStart) = CBA_missionTime;
|
|||||||
GVAR(allBullets) = [];
|
GVAR(allBullets) = [];
|
||||||
GVAR(currentGrid) = 0;
|
GVAR(currentGrid) = 0;
|
||||||
|
|
||||||
GVAR(extensionAvailable) = true;
|
|
||||||
/* @TODO: Remove this until versioning is in sync with cmake/build versioning
|
|
||||||
GVAR(extensionVersion) = ("ace_advanced_ballistics" callExtension "version");
|
|
||||||
GVAR(extensionAvailable) = (GVAR(extensionVersion) == EXTENSION_REQUIRED_VERSION);
|
|
||||||
if (!GVAR(extensionAvailable)) exitWith {
|
|
||||||
if (GVAR(extensionVersion) == "") then {
|
|
||||||
diag_log text "[ACE] ERROR: ace_advanced_ballistics.dll is missing";
|
|
||||||
} else {
|
|
||||||
diag_log text "[ACE] ERROR: ace_advanced_ballistics.dll is incompatible";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
|
||||||
["ace_settingsInitialized", {
|
["ace_settingsInitialized", {
|
||||||
|
@ -82,7 +82,7 @@ if (GVAR(ammoTemperatureEnabled) || GVAR(barrelLengthInfluenceEnabled)) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_abort || !(GVAR(extensionAvailable))) exitWith {
|
if (_abort) exitWith {
|
||||||
if (missionNamespace getVariable [QEGVAR(windDeflection,enabled), false]) then {
|
if (missionNamespace getVariable [QEGVAR(windDeflection,enabled), false]) then {
|
||||||
EGVAR(windDeflection,trackedBullets) pushBack [_projectile, getNumber(configFile >> "CfgAmmo" >> _ammo >> "airFriction")];
|
EGVAR(windDeflection,trackedBullets) pushBack [_projectile, getNumber(configFile >> "CfgAmmo" >> _ammo >> "airFriction")];
|
||||||
};
|
};
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
if (!GVAR(enabled)) exitWith {};
|
if (!GVAR(enabled)) exitWith {};
|
||||||
if (!GVAR(extensionAvailable)) exitWith {};
|
|
||||||
|
|
||||||
private _initStartTime = diag_tickTime;
|
private _initStartTime = diag_tickTime;
|
||||||
private _mapSize = getNumber (configFile >> "CfgWorlds" >> worldName >> "MapSize");
|
private _mapSize = getNumber (configFile >> "CfgWorlds" >> worldName >> "MapSize");
|
||||||
|
Loading…
Reference in New Issue
Block a user