tweak javelin to make minimum ranges more realistic

This commit is contained in:
Bailey Danyluk 2022-05-14 14:10:57 -06:00
parent f79dde58a4
commit 67fe609897
3 changed files with 6 additions and 5 deletions

View File

@ -71,8 +71,8 @@ class CfgAmmo {
class ADDON {
enabled = 1;
pitchRate = 25; // degrees per second
yawRate = 25;
pitchRate = 100; // degrees per second
yawRate = 100;
bangBangGuidance = 0;

View File

@ -47,7 +47,7 @@ private _returnTargetPos = _seekerTargetPos;
switch (_attackProfileStateParams select 0) do {
case STAGE_LAUNCH: {
TRACE_1("STAGE_LAUNCH","");
if (_distanceToShooter < 10) then {
if (_distanceToShooter < 6) then {
_returnTargetPos = _seekerTargetPos vectorAdd [0,0,_distanceToTarget*2];
} else {
_attackProfileStateParams set [0, STAGE_CLIMB];
@ -55,7 +55,8 @@ switch (_attackProfileStateParams select 0) do {
};
case STAGE_CLIMB: {
TRACE_1("STAGE_CLIMB","");
private _cruisAlt = 60 * (_distanceShooterToTarget/2000);
// 65 is min range
private _cruisAlt = 60 * ((0 max (_distanceShooterToTarget - 65))/2000);
if ( ((ASLToAGL _projectilePos) select 2) - ((ASLToAGL _seekerTargetPos) select 2) >= _cruisAlt) then {
_attackProfileStateParams set [0, STAGE_TERMINAL];

View File

@ -57,7 +57,7 @@ switch( (_attackProfileStateParams select 0) ) do {
TRACE_1("STAGE_CLIMB","");
private _cruisAlt = 140;
if (_distanceShooterToTarget < 1250) then {
_cruisAlt = 140 * (_distanceShooterToTarget/1250);
_cruisAlt = 140 * ((0 max (_distanceShooterToTarget - 150))/1250);
TRACE_1("_cruisAlt", _cruisAlt);
};
if ( ((ASLToAGL _projectilePos) select 2) - ((ASLToAGL _seekerTargetPos) select 2) >= _cruisAlt) then {