xm157 - fix ab func (#9021)

This commit is contained in:
PabstMirror 2022-09-03 05:49:07 -05:00 committed by GitHub
parent 3872eb0647
commit 44ac76f2cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ if (_useAB && {(_bulletPos select 1) > 0}) then {
// Spin drift
private _stabilityFactor = 1.5;
if (_caliber * _bulletLength * _bulletMass * _barrelTwist > 0) then {
_stabilityFactor = [_caliber, _bulletLength, _bulletMass, _barrelTwist, _muzzleVelocity, _temperature, _barometricPressure] call FUNC(calculateStabilityFactor);
_stabilityFactor = [_caliber, _bulletLength, _bulletMass, _barrelTwist, _muzzleVelocity, _temperature, _barometricPressure] call EFUNC(advanced_ballistics,calculateStabilityFactor);
};
private _spinDeflection = _twistDirection * 0.0254 * 1.25 * (_stabilityFactor + 1.2) * _TOF ^ 1.83;
private _spinDrift = - atan(_spinDeflection / (_bulletPos select 1));