Refined the abort condition for the range card calculation

This commit is contained in:
ulteq 2015-05-29 20:11:07 +02:00
parent d0e1af6e47
commit 65b9e67991

View File

@ -147,7 +147,7 @@ while {_TOF < 6 && (_bulletPos select 1) < _targetRange} do {
_stepsTotal = _stepsTotal + 1;
_speedAverage = (_speedTotal / _stepsTotal);
if (_speedAverage > 400 && _bulletSpeed < _speedOfSound) exitWith {};
if (_speedAverage > 450 && _bulletSpeed < _speedOfSound) exitWith {};
if (atan((_bulletPos select 2) / (abs(_bulletPos select 1) + 1)) < -2.254) exitWith {};
_trueVelocity = _bulletVelocity vectorDiff _wind1;