The winddeflection firedEH will now exit automatically, when the advanced_ballistics module is present.

This commit is contained in:
ulteq 2015-04-08 12:42:56 +02:00
parent 4a469de0f8
commit e3626eca00
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,8 @@
#include "initKeybinds.sqf"
GVAR(AdvancedBallistics) = true;
GVAR(bulletDatabase) = [];
GVAR(bulletDatabaseStartTime) = [];
GVAR(bulletDatabaseSpeed) = [];

View File

@ -24,8 +24,7 @@
private ["_unit", "_weapon", "_ammo", "_bullet", "_airFriction", "_index"];
_unit = _this select 0;
// TODO: Add some way to decide whether to use basic wind deflection or advanced ballistics
if (true) exitWith {false};
if (EGVAR(advanced_ballistics,AdvancedBallistics)) exitWith {false};
if (_unit distance ACE_player > 3000) exitWith {false}; // Large enough distance to not simulate any wind deflection.
if (!GVAR(EnableForAI) && !([_unit] call EFUNC(common,isPlayer))) exitWith {false};