From 2e4dee124042be35cb1c7a8f66ae11f7afe36bb3 Mon Sep 17 00:00:00 2001 From: rufix Date: Sun, 29 Apr 2018 16:35:35 +0200 Subject: [PATCH 1/2] Fix issue with missiles diving into the ground before reaching the target --- .../functions/fnc_attackProfile_LIN.sqf | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/addons/missileguidance/functions/fnc_attackProfile_LIN.sqf b/addons/missileguidance/functions/fnc_attackProfile_LIN.sqf index de8061a27c6..2d253406224 100644 --- a/addons/missileguidance/functions/fnc_attackProfile_LIN.sqf +++ b/addons/missileguidance/functions/fnc_attackProfile_LIN.sqf @@ -48,15 +48,10 @@ if ((((ASLtoAGL _projectilePos) select 2) < 5) && {_distanceToShooter < 15}) the }; }; -// Handle arcing terminal low for high decent (when projectile above target) +// Projectile above target if ((_projectilePos select 2) > (_seekerTargetPos select 2)) then { - if (_distanceToTarget < 100) then { - _addHeight = _addHeight vectorDiff [0,0, ((_projectilePos select 2) - (_seekerTargetPos select 2)) * 0.5]; - TRACE_1("above - close",_addHeight); - } else { - TRACE_1("above - far",_addHeight); - _addHeight = _addHeight vectorAdd [0,0, _distanceToTarget*0.02]; - }; + TRACE_1("above - far",_addHeight); + _addHeight = _addHeight vectorAdd [0,0, _distanceToTarget / 50]; }; private _returnTargetPos = _seekerTargetPos vectorAdd _addHeight; From 1f24c4ebd2de4b8c4874c7c023cfe779a1fa8ff3 Mon Sep 17 00:00:00 2001 From: rufix Date: Sun, 29 Apr 2018 16:36:07 +0200 Subject: [PATCH 2/2] More modest steering deflection for Maverick and Kh25ML --- addons/maverick/CfgAmmo.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/maverick/CfgAmmo.hpp b/addons/maverick/CfgAmmo.hpp index 27d96d75732..2b48618e82e 100644 --- a/addons/maverick/CfgAmmo.hpp +++ b/addons/maverick/CfgAmmo.hpp @@ -16,9 +16,9 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - minDeflection = 0.0005; - maxDeflection = 0.01; - incDeflection = 0.005; + minDeflection = 0; + maxDeflection = 0.002; + incDeflection = 0.001; canVanillaLock = 0; @@ -49,9 +49,9 @@ class CfgAmmo { class ace_missileguidance { enabled = 1; - minDeflection = 0.0005; - maxDeflection = 0.01; - incDeflection = 0.005; + minDeflection = 0; + maxDeflection = 0.002; + incDeflection = 0.001; canVanillaLock = 0;