Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Mavericks and KH25ML diving into the ground. #6315

Merged
merged 2 commits into from
Jun 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions addons/maverick/CfgAmmo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
11 changes: 3 additions & 8 deletions addons/missileguidance/functions/fnc_attackProfile_LIN.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down