Loosen DAGR curve

This commit is contained in:
jaynus 2015-04-14 10:39:00 -07:00
parent f0940707be
commit fb5b524023
2 changed files with 5 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class CfgAmmo {
enabled = 1;
minDeflection = 0.00025; // Minium flap deflection for guidance
maxDeflection = 0.00025; // Maximum flap deflection for guidance
maxDeflection = 0.001; // Maximum flap deflection for guidance
incDeflection = 0.0005; // The incrmeent in which deflection adjusts.
//minDeflection = 0.005;
//maxDeflection = 0.5;
@ -65,7 +65,7 @@ class CfgAmmo {
// Attack profile type selection
defaultAttackProfile = "LIN";
attackProfiles[] = { "LIN", "DIR", "MID", "HI", "TOP", "PYM" };
attackProfiles[] = { "LIN", "DIR", "MID", "HI" };
};
};

View File

@ -16,7 +16,7 @@ _projectilePos = getPosASL _projectile;
_distanceToTarget = _projectilePos vectorDistance _seekerTargetPos;
_distanceToShooter = _projectilePos vectorDistance _shooterPos;
TRACE_2("", _distanceToTarget, _distanceToShooter);
TRACE_3("", _distanceToTarget, _distanceToShooter, _seekerTargetPos);
// Add height depending on distance for compensate
_addHeight = [0,0,0];
@ -40,6 +40,8 @@ if( (_projectilePos select 2) > (_seekerTargetPos select 2) && _distanceToTarget
};
};
_returnTargetPos = _seekerTargetPos vectorAdd _addHeight;
#ifdef DEBUG_MODE_FULL
drawLine3D [(ASLtoATL _returnTargetPos) vectorAdd _addHeight, ASLtoATL _returnTargetPos, [0,1,0,1]];
#endif