mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
tweak javelin to make minimum ranges more realistic
This commit is contained in:
parent
f79dde58a4
commit
67fe609897
@ -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;
|
||||
|
||||
|
@ -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];
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user