Add support for the AI-only F-14A.

The AI for the flyable one is having issues firing AIM-54s. This allows
working around that.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1927.
This commit is contained in:
MetalStormGhost 2022-01-16 23:53:05 +02:00 committed by GitHub
parent bf034e18eb
commit 7387c2ed8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 96 additions and 2 deletions

View File

@ -14,6 +14,7 @@ from dcs.planes import (
B_17G, B_17G,
FA_18C_hornet, FA_18C_hornet,
F_16C_50, F_16C_50,
F_14A,
Ju_88A4, Ju_88A4,
P_51D_30_NA, P_51D_30_NA,
plane_map, plane_map,
@ -262,6 +263,7 @@ is livery name as found in mission editor.
""" """
PLANE_LIVERY_OVERRIDES: dict[Type[FlyingType], str] = { PLANE_LIVERY_OVERRIDES: dict[Type[FlyingType], str] = {
FA_18C_hornet: "VFA-34", # default livery for the hornet is blue angels one FA_18C_hornet: "VFA-34", # default livery for the hornet is blue angels one
F_14A: "vf-142 `ghost riders`", # default livery for the AI F-14A is the black demo scheme
} }
""" """

View File

@ -5,7 +5,7 @@ from typing import Any, Union
from dcs import Mission, Point from dcs import Mission, Point
from dcs.country import Country from dcs.country import Country
from dcs.mission import StartType as DcsStartType from dcs.mission import StartType as DcsStartType
from dcs.planes import Su_33 from dcs.planes import Su_33, F_14A
from dcs.point import PointAction from dcs.point import PointAction
from dcs.ships import KUZNECOW from dcs.ships import KUZNECOW
from dcs.terrain import Airport, NoParkingSlotError from dcs.terrain import Airport, NoParkingSlotError
@ -251,7 +251,9 @@ class FlightGroupSpawner:
# Setting Su-33s starting from the non-supercarrier Kuznetsov to take off from # 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 # runway to work around a DCS AI issue preventing Su-33s from taking off when
# set to "Takeoff from ramp" (#1352) # 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 self.flight.unit_type.dcs_unit_type == Su_33
and group_units[0] is not None and group_units[0] is not None
and group_units[0].type == KUZNECOW.id and group_units[0].type == KUZNECOW.id

View File

@ -43,6 +43,7 @@ from dcs.planes import (
FW_190A8, FW_190A8,
FW_190D9, FW_190D9,
F_117A, F_117A,
F_14A,
F_14A_135_GR, F_14A_135_GR,
F_14B, F_14B,
F_15C, F_15C,
@ -131,6 +132,7 @@ CAP_CAPABLE = [
F_15C, F_15C,
F_14B, F_14B,
F_14A_135_GR, F_14A_135_GR,
F_14A,
Su_33, Su_33,
J_11A, J_11A,
Su_30, Su_30,

View File

@ -0,0 +1,55 @@
local unitPayloads = {
["name"] = "F-14A",
["payloads"] = {
[1] = {
["name"] = "CAP",
["pylons"] = {
[1] = {
["CLSID"] = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}",
["num"] = 1,
},
[2] = {
["CLSID"] = "{8D399DDA-FF81-4F14-904D-099B34FE7918}",
["num"] = 2,
},
[3] = {
["CLSID"] = "{7575BA0B-7294-4844-857B-031A144B2595}",
["num"] = 4,
},
[4] = {
["CLSID"] = "{7575BA0B-7294-4844-857B-031A144B2595}",
["num"] = 5,
},
[5] = {
["CLSID"] = "{7575BA0B-7294-4844-857B-031A144B2595}",
["num"] = 8,
},
[6] = {
["CLSID"] = "{7575BA0B-7294-4844-857B-031A144B2595}",
["num"] = 9,
},
[7] = {
["CLSID"] = "{8D399DDA-FF81-4F14-904D-099B34FE7918}",
["num"] = 11,
},
[8] = {
["CLSID"] = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}",
["num"] = 12,
},
[9] = {
["CLSID"] = "{82364E69-5564-4043-A866-E13032926C3E}",
["num"] = 10,
},
[10] = {
["CLSID"] = "{82364E69-5564-4043-A866-E13032926C3E}",
["num"] = 3,
},
},
["tasks"] = {
[1] = 10,
},
},
},
["unitType"] = "F-14A",
}
return unitPayloads

View File

@ -12,6 +12,7 @@
"C-130", "C-130",
"C-130J-30 Super Hercules", "C-130J-30 Super Hercules",
"F-117A Nighthawk", "F-117A Nighthawk",
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)", "F-14A Tomcat (Block 135-GR Late)",
"F-14B Tomcat", "F-14B Tomcat",
"F-15C Eagle", "F-15C Eagle",

View File

@ -12,6 +12,7 @@
"C-130", "C-130",
"C-130J-30 Super Hercules", "C-130J-30 Super Hercules",
"F-117A Nighthawk", "F-117A Nighthawk",
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)", "F-14A Tomcat (Block 135-GR Late)",
"F-14B Tomcat", "F-14B Tomcat",
"F-15C Eagle", "F-15C Eagle",

View File

@ -10,6 +10,7 @@
"B-52H Stratofortress", "B-52H Stratofortress",
"C-130", "C-130",
"C-130J-30 Super Hercules", "C-130J-30 Super Hercules",
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)", "F-14A Tomcat (Block 135-GR Late)",
"F-14B Tomcat", "F-14B Tomcat",
"F-4E Phantom II", "F-4E Phantom II",

View File

@ -8,6 +8,7 @@
], ],
"aircrafts": [ "aircrafts": [
"AH-1J SeaCobra", "AH-1J SeaCobra",
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)", "F-14A Tomcat (Block 135-GR Late)",
"F-4E Phantom II", "F-4E Phantom II",
"F-5E Tiger II", "F-5E Tiger II",

View File

@ -7,6 +7,7 @@
"fa_IR" "fa_IR"
], ],
"aircrafts": [ "aircrafts": [
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)", "F-14A Tomcat (Block 135-GR Late)",
"F-4E Phantom II", "F-4E Phantom II",
"F-5E Tiger II", "F-5E Tiger II",

View File

@ -9,6 +9,7 @@
"C-130", "C-130",
"CH-47D", "CH-47D",
"CH-53E", "CH-53E",
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)", "F-14A Tomcat (Block 135-GR Late)",
"F-4E Phantom II", "F-4E Phantom II",
"F-5E Tiger II", "F-5E Tiger II",

View File

@ -17,6 +17,7 @@
"CH-47D", "CH-47D",
"CH-53E", "CH-53E",
"F-117A Nighthawk", "F-117A Nighthawk",
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)", "F-14A Tomcat (Block 135-GR Late)",
"F-14B Tomcat", "F-14B Tomcat",
"F-15C Eagle", "F-15C Eagle",

View File

@ -9,6 +9,7 @@
"aircrafts": [ "aircrafts": [
"AH-1W SuperCobra", "AH-1W SuperCobra",
"A-4E Skyhawk", "A-4E Skyhawk",
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)", "F-14A Tomcat (Block 135-GR Late)",
"F-14B Tomcat", "F-14B Tomcat",
"F-4E Phantom II", "F-4E Phantom II",

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1,25 @@
carrier_capable: true
description:
"The Grumman F-14 Tomcat is a two-crew, variable wing-geometry, maritime\
\ air superiority fighter that served with the US Navy for 32 years and continues\
\ to serve with the IRIAF in Iran. The F-14 was the US Navy's frontline fighter\
\ from the 1970s to the mid-2000s. Over the course of its long service it also became\
\ the US Navy\u2019s lone airborne reconnaissance asset.\n\n\
\ Noteworthy features of the Tomcat are its swing-wing\
\ configuration, two-man crew, and the powerful AN/AWG-9 Weapons Control System\
\ (WCS) and radar. The AWG-9 allows employment of the long-range AIM-54 Phoenix\
\ air-to-air missile. The F-14 Tomcat was present in several historic events\
\ that include the two Gulf of Sidra incidents, Operations Desert Storm Iraqi Freedom,\
\ the Yugoslavian conflict, and Operation Enduring Freedom over Afghanistan. It\
\ was also immortalized in the iconic motion picture, Top Gun, and starred in several\
\ other feature films including The Final Countdown, Executive Decision, and others.\n\
\nThe Tomcat was also played a vital role in the Iran-Iraq war of the 1980s, where\
\ is flew for the Islamic Republic of Iran Air Force."
introduced: 1974
manufacturer: Grumman
origin: USA
price: 20
role: Carrier-based Air-Superiority Fighter/Fighter Bomber
max_range: 350
variants:
F-14A Tomcat (AI): {}