mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Restrict Jettison for CAS aircrafts
This commit is contained in:
parent
23f4df766c
commit
a551067c72
@ -405,6 +405,7 @@ class AircraftConflictGenerator:
|
|||||||
group.points[0].tasks.append(OptReactOnThreat(OptReactOnThreat.Values.EvadeFire))
|
group.points[0].tasks.append(OptReactOnThreat(OptReactOnThreat.Values.EvadeFire))
|
||||||
group.points[0].tasks.append(OptROE(OptROE.Values.OpenFireWeaponFree))
|
group.points[0].tasks.append(OptROE(OptROE.Values.OpenFireWeaponFree))
|
||||||
group.points[0].tasks.append(OptRTBOnOutOfAmmo(OptRTBOnOutOfAmmo.Values.Unguided))
|
group.points[0].tasks.append(OptRTBOnOutOfAmmo(OptRTBOnOutOfAmmo.Values.Unguided))
|
||||||
|
group.points[0].tasks.append(OptRestrictJettison(True))
|
||||||
elif flight_type in [FlightType.SEAD, FlightType.DEAD]:
|
elif flight_type in [FlightType.SEAD, FlightType.DEAD]:
|
||||||
group.task = SEAD.name
|
group.task = SEAD.name
|
||||||
self._setup_group(group, SEAD, flight)
|
self._setup_group(group, SEAD, flight)
|
||||||
@ -493,6 +494,8 @@ class AircraftConflictGenerator:
|
|||||||
group.add_nav_target_point(t.position, "PP" + str(j + 1))
|
group.add_nav_target_point(t.position, "PP" + str(j + 1))
|
||||||
if group.units[0].unit_type == F_14B and j == 0:
|
if group.units[0].unit_type == F_14B and j == 0:
|
||||||
group.add_nav_target_point(t.position, "ST")
|
group.add_nav_target_point(t.position, "ST")
|
||||||
|
if group.units[0].unit_type == AJS37 and j < 9:
|
||||||
|
group.add_nav_target_point(t.position, "M" + str(j + 1))
|
||||||
|
|
||||||
if pt is not None:
|
if pt is not None:
|
||||||
pt.alt_type = point.alt_type
|
pt.alt_type = point.alt_type
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user