|
191 | 191 | -- * @{#EASYGCICAP.SetDefaultResurrection}: Set how many seconds the AirWing stays inoperable after the AirWing STATIC HQ ist destroyed, default 900 secs. |
192 | 192 | -- * @{#EASYGCICAP.SetDefaultCAPSpeed}: Set how many knots the CAP flights should do (will be altitude corrected), default 300 kn. |
193 | 193 | -- * @{#EASYGCICAP.SetDefaultCAPAlt}: Set at which altitude (ASL) the CAP planes will fly, default 25,000 ft. |
| 194 | +-- * @{#EASYGCICAP.SetDefaultINTERCEPTAlt}: Set at which altitude (ASL) the Intercept planes will fly, default 25,000 ft. |
194 | 195 | -- * @{#EASYGCICAP.SetDefaultCAPDirection}: Set the initial direction from the CAP point the planes will fly in degrees, default is 90°. |
195 | 196 | -- * @{#EASYGCICAP.SetDefaultCAPLeg}: Set the length of the CAP leg, default is 15 NM. |
196 | | --- * @{#EASYGCICAP.SetDefaultCAPGrouping}: Set how many planes will be spawned per mission (CVAP/GCI), defaults to 2. |
| 197 | +-- * @{#EASYGCICAP.SetDefaultCAPGrouping}: Set how many planes will be spawned per mission (CAP/GCI), defaults to 2. |
197 | 198 | -- * @{#EASYGCICAP.SetDefaultMissionRange}: Set how many NM the planes can go from the home base, defaults to 100. |
198 | 199 | -- * @{#EASYGCICAP.SetDefaultNumberAlert5Standby}: Set how many planes will be spawned on cold standby (Alert5), default 2. |
199 | 200 | -- * @{#EASYGCICAP.SetDefaultEngageRange}: Set max engage range for CAP flights if they detect intruders, defaults to 50. |
@@ -287,7 +288,7 @@ EASYGCICAP = { |
287 | 288 |
|
288 | 289 | --- EASYGCICAP class version. |
289 | 290 | -- @field #string version |
290 | | -EASYGCICAP.version="0.1.37" |
| 291 | +EASYGCICAP.version="0.1.38" |
291 | 292 |
|
292 | 293 | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
293 | 294 | -- |
@@ -588,6 +589,17 @@ function EASYGCICAP:SetDefaultCAPAlt(Altitude) |
588 | 589 | return self |
589 | 590 | end |
590 | 591 |
|
| 592 | +--- Set default INTERCEPT Altitude in feet |
| 593 | +-- @param #EASYGCICAP self |
| 594 | +-- @param #number Altitude (Optional) Altitude defaults to 25000 |
| 595 | +-- @return #EASYGCICAP self |
| 596 | +function EASYGCICAP:SetDefaultINTERCEPTAlt(Altitude) |
| 597 | + self:T(self.lid.."SetDefaultINTERCEPTAlt") |
| 598 | + self.interceptalt = Altitude or 25000 |
| 599 | + return self |
| 600 | +end |
| 601 | +-- |
| 602 | + |
591 | 603 | --- Set default CAP lieg initial direction in degrees |
592 | 604 | -- @param #EASYGCICAP self |
593 | 605 | -- @param #number Direction (Optional) Direction defaults to 90 (East) |
@@ -1519,6 +1531,7 @@ function EASYGCICAP:_AssignIntercept(Cluster) |
1519 | 1531 | local overhead = self.overhead |
1520 | 1532 | local capspeed = self.capspeed + 100 |
1521 | 1533 | local capalt = self.capalt |
| 1534 | + local interalt = self.interceptalt or self.capalt |
1522 | 1535 | local maxsize = self.maxinterceptsize |
1523 | 1536 | local repeatsonfailure = self.repeatsonfailure |
1524 | 1537 |
|
@@ -1606,6 +1619,7 @@ function EASYGCICAP:_AssignIntercept(Cluster) |
1606 | 1619 | :SetRepeatOnFailure(repeats) |
1607 | 1620 | :SetMissionSpeed(UTILS.KnotsToAltKIAS(capspeed,capalt)) |
1608 | 1621 | :SetMissionAltitude(capalt) |
| 1622 | + :SetEngageAltitude(interalt) |
1609 | 1623 |
|
1610 | 1624 | if nogozoneset:Count() > 0 then |
1611 | 1625 | InterceptAuftrag:AddConditionSuccess( |
|
0 commit comments