mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix Mavericks and KH25ML diving into the ground. (#6315)
* Fix issue with missiles diving into the ground before reaching the target * More modest steering deflection for Maverick and Kh25ML
This commit is contained in:
parent
d4767eba73
commit
dc3a9fccca
@ -16,9 +16,9 @@ class CfgAmmo {
|
|||||||
class ace_missileguidance {
|
class ace_missileguidance {
|
||||||
enabled = 1;
|
enabled = 1;
|
||||||
|
|
||||||
minDeflection = 0.0005;
|
minDeflection = 0;
|
||||||
maxDeflection = 0.01;
|
maxDeflection = 0.002;
|
||||||
incDeflection = 0.005;
|
incDeflection = 0.001;
|
||||||
|
|
||||||
canVanillaLock = 0;
|
canVanillaLock = 0;
|
||||||
|
|
||||||
@ -49,9 +49,9 @@ class CfgAmmo {
|
|||||||
class ace_missileguidance {
|
class ace_missileguidance {
|
||||||
enabled = 1;
|
enabled = 1;
|
||||||
|
|
||||||
minDeflection = 0.0005;
|
minDeflection = 0;
|
||||||
maxDeflection = 0.01;
|
maxDeflection = 0.002;
|
||||||
incDeflection = 0.005;
|
incDeflection = 0.001;
|
||||||
|
|
||||||
canVanillaLock = 0;
|
canVanillaLock = 0;
|
||||||
|
|
||||||
|
@ -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 ((_projectilePos select 2) > (_seekerTargetPos select 2)) then {
|
||||||
if (_distanceToTarget < 100) then {
|
TRACE_1("above - far",_addHeight);
|
||||||
_addHeight = _addHeight vectorDiff [0,0, ((_projectilePos select 2) - (_seekerTargetPos select 2)) * 0.5];
|
_addHeight = _addHeight vectorAdd [0,0, _distanceToTarget / 50];
|
||||||
TRACE_1("above - close",_addHeight);
|
|
||||||
} else {
|
|
||||||
TRACE_1("above - far",_addHeight);
|
|
||||||
_addHeight = _addHeight vectorAdd [0,0, _distanceToTarget*0.02];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
private _returnTargetPos = _seekerTargetPos vectorAdd _addHeight;
|
private _returnTargetPos = _seekerTargetPos vectorAdd _addHeight;
|
||||||
|
Loading…
Reference in New Issue
Block a user