Revert "Revert "Add support for the AI-only F-14A."" (#27)

This reverts commit 920c9b15ff.
This commit is contained in:
MetalStormGhost
2022-12-03 15:31:40 +02:00
committed by GitHub
parent e38a6cd907
commit 0c30ce3bb3
15 changed files with 96 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ from dcs.planes import (
FW_190A8,
FW_190D9,
F_117A,
F_14A,
F_14A_135_GR,
F_14B,
F_15C,
@@ -160,6 +161,7 @@ ESCORT_CAPABLE = [
F_15D,
F_14B,
F_14A_135_GR,
F_14A,
Su_33,
J_11A,
Su_30,

View File

@@ -6,7 +6,7 @@ from dcs import Mission
from dcs.country import Country
from dcs.mapping import Vector2
from dcs.mission import StartType as DcsStartType
from dcs.planes import Su_33
from dcs.planes import F_14A, Su_33
from dcs.ships import KUZNECOW
from dcs.terrain import Airport, NoParkingSlotError
from dcs.unitgroup import FlyingGroup, ShipGroup, StaticGroup
@@ -263,7 +263,9 @@ class FlightGroupSpawner:
# Setting Su-33s starting from the non-supercarrier Kuznetsov to take off from
# runway to work around a DCS AI issue preventing Su-33s from taking off when
# set to "Takeoff from ramp" (#1352)
if (
# Also setting the F-14A AI variant to start from cats since they are reported
# to have severe pathfinding problems when doing ramp starts (#1927)
if self.flight.unit_type.dcs_unit_type == F_14A or (
self.flight.unit_type.dcs_unit_type == Su_33
and group_units[0] is not None
and group_units[0].type == KUZNECOW.id