EA-6B Prowler mod version 2.9.4.102 support (#337)

This commit is contained in:
MetalStormGhost 2024-06-09 21:02:04 +03:00 committed by GitHub
parent 3c0f0b28ea
commit 00356ea3ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
18 changed files with 185 additions and 10 deletions

View File

@ -402,6 +402,8 @@ class Faction:
self.remove_aircraft("VSN_F106B")
if not mod_settings.a6a_intruder:
self.remove_aircraft("VSN_A6A")
if not mod_settings.ea6b_prowler:
self.remove_aircraft("EA_6B")
if not mod_settings.jas39_gripen:
self.remove_aircraft("JAS39Gripen")
self.remove_aircraft("JAS39Gripen_BVR")

View File

@ -68,6 +68,7 @@ class ModSettings:
a4_skyhawk: bool = False
a6a_intruder: bool = False
a7e_corsair2: bool = False
ea6b_prowler: bool = False
f4bc_phantom: bool = False
f9f_panther: bool = False
f15d_baz: bool = False

View File

@ -2,6 +2,7 @@ from .SWPack import *
from .a4ec import *
from .a7e import *
from .a6a import *
from .ea6b import *
from .f9f import *
from .f100 import *
from .f104 import *

View File

@ -0,0 +1 @@
from .ea6b import *

View File

@ -0,0 +1,105 @@
from dcs import task
from dcs.planes import PlaneType
from dcs.weapons_data import Weapons
from game.modsupport import planemod
from pydcs_extensions.weapon_injector import inject_weapons
class WeaponsEA6B:
EA6B_AN_ALQ_99 = {
"clsid": "{EA6B_ANALQ991}",
"name": "EA6B AN-ALQ-99",
"weight": 435,
}
EA6B_AN_ALQ_99_ = {
"clsid": "{EA6B_ANALQ992}",
"name": "EA6B AN-ALQ-99",
"weight": 435,
}
inject_weapons(WeaponsEA6B)
@planemod
class EA_6B(PlaneType):
id = "EA_6B"
height = 4.57
width = 10.15
length = 17.98
fuel_max = 6994
max_speed = 1047.96
chaff = 30
flare = 30
charge_total = 60
chaff_charge_size = 1
flare_charge_size = 1
eplrs = True
radio_frequency = 250.5
livery_name = "EA_6B" # from type
class Pylon1:
LAU_118A___AGM_45B_Shrike_ARM = (1, Weapons.LAU_118A___AGM_45B_Shrike_ARM)
AGM_88C_HARM___High_Speed_Anti_Radiation_Missile_ = (
1,
Weapons.AGM_88C_HARM___High_Speed_Anti_Radiation_Missile_,
)
F_5_275Gal_Fuel_tank = (1, Weapons.F_5_275Gal_Fuel_tank)
EA6B_AN_ALQ_99 = (1, Weapons.EA6B_AN_ALQ_99)
# ERRR <CLEAN>
class Pylon2:
LAU_118A___AGM_45B_Shrike_ARM = (2, Weapons.LAU_118A___AGM_45B_Shrike_ARM)
AGM_88C_HARM___High_Speed_Anti_Radiation_Missile_ = (
2,
Weapons.AGM_88C_HARM___High_Speed_Anti_Radiation_Missile_,
)
F_5_275Gal_Fuel_tank = (2, Weapons.F_5_275Gal_Fuel_tank)
EA6B_AN_ALQ_99 = (2, Weapons.EA6B_AN_ALQ_99)
# ERRR <CLEAN>
class Pylon3:
F_5_275Gal_Fuel_tank = (3, Weapons.F_5_275Gal_Fuel_tank)
EA6B_AN_ALQ_99_ = (3, Weapons.EA6B_AN_ALQ_99_)
# ERRR <CLEAN>
class Pylon4:
LAU_118A___AGM_45B_Shrike_ARM = (4, Weapons.LAU_118A___AGM_45B_Shrike_ARM)
AGM_88C_HARM___High_Speed_Anti_Radiation_Missile_ = (
4,
Weapons.AGM_88C_HARM___High_Speed_Anti_Radiation_Missile_,
)
F_5_275Gal_Fuel_tank = (4, Weapons.F_5_275Gal_Fuel_tank)
EA6B_AN_ALQ_99 = (4, Weapons.EA6B_AN_ALQ_99)
# ERRR <CLEAN>
class Pylon5:
LAU_118A___AGM_45B_Shrike_ARM = (5, Weapons.LAU_118A___AGM_45B_Shrike_ARM)
AGM_88C_HARM___High_Speed_Anti_Radiation_Missile_ = (
5,
Weapons.AGM_88C_HARM___High_Speed_Anti_Radiation_Missile_,
)
F_5_275Gal_Fuel_tank = (5, Weapons.F_5_275Gal_Fuel_tank)
EA6B_AN_ALQ_99 = (5, Weapons.EA6B_AN_ALQ_99)
# ERRR <CLEAN>
pylons = {1, 2, 3, 4, 5}
tasks = [
task.Escort,
task.Reconnaissance,
task.GroundAttack,
task.CAS,
task.AFAC,
task.RunwayAttack,
task.AntishipStrike,
task.SEAD,
]
task_default = task.GroundAttack

View File

@ -324,6 +324,7 @@ def create_game(
a4_skyhawk=False,
a6a_intruder=False,
a7e_corsair2=False,
ea6b_prowler=False,
fa_18efg=False,
fa18ef_tanker=False,
f4bc_phantom=False,

View File

@ -92,6 +92,7 @@ class NewGameWizard(QtWidgets.QWizard):
a4_skyhawk=self.field("a4_skyhawk"),
a6a_intruder=self.field("a6a_intruder"),
a7e_corsair2=self.field("a7e_corsair2"),
ea6b_prowler=self.field("ea6b_prowler"),
f4bc_phantom=self.field("f4bc_phantom"),
f15d_baz=self.field("f15d_baz"),
f_15_idf=self.field("f_15_idf"),

View File

@ -94,6 +94,8 @@ class GeneratorOptions(QtWidgets.QWizardPage):
self.registerField("a6a_intruder", self.a6a_intruder)
self.a7e_corsair2 = QtWidgets.QCheckBox()
self.registerField("a7e_corsair2", self.a7e_corsair2)
self.ea6b_prowler = QtWidgets.QCheckBox()
self.registerField("ea6b_prowler", self.ea6b_prowler)
self.hercules = QtWidgets.QCheckBox()
self.registerField("hercules", self.hercules)
self.uh_60l = QtWidgets.QCheckBox()
@ -160,6 +162,7 @@ class GeneratorOptions(QtWidgets.QWizardPage):
("A-6A Intruder (v2.7.5.01)", self.a6a_intruder),
("A-7E Corsair II", self.a7e_corsair2),
("C-130J-30 Super Hercules (v6.8.2)", self.hercules),
("EA-6B Prowler (v2.9.4.102)", self.ea6b_prowler),
("F-100 Super Sabre (v2.7.18.30765 patch 20.10.22)", self.f100_supersabre),
("F-104 Starfighter (v2.7.11.222.01)", self.f104_starfighter),
("F-105 Thunderchief (v2.7.12.23x)", self.f105_thunderchief),
@ -225,6 +228,7 @@ class GeneratorOptions(QtWidgets.QWizardPage):
self.a4_skyhawk.setChecked(s.get("a4_skyhawk", False))
self.a6a_intruder.setChecked(s.get("a6a_intruder", False))
self.a7e_corsair2.setChecked(s.get("a7e_corsair2", False))
self.ea6b_prowler.setChecked(s.get("ea6b_prowler", False))
self.hercules.setChecked(s.get("hercules", False))
self.uh_60l.setChecked(s.get("uh_60l", False))
self.f4bc_phantom.setChecked(s.get("f4bc_phantom", False))

View File

@ -0,0 +1,36 @@
local unitPayloads = {
["name"] = "EA_6B",
["payloads"] = {
[1] = {
["displayName"] = "Liberation SEAD",
["name"] = "Liberation SEAD",
["pylons"] = {
[1] = {
["CLSID"] = "{B06DD79A-F21E-4EB9-BD9D-AB3844618C93}",
["num"] = 1,
},
[2] = {
["CLSID"] = "{0395076D-2F77-4420-9D33-087A4398130B}",
["num"] = 2,
},
[3] = {
["CLSID"] = "{EA6B_ANALQ992}",
["num"] = 3,
},
[4] = {
["CLSID"] = "{0395076D-2F77-4420-9D33-087A4398130B}",
["num"] = 4,
},
[5] = {
["CLSID"] = "{B06DD79A-F21E-4EB9-BD9D-AB3844618C93}",
["num"] = 5,
},
},
["tasks"] = {
[1] = 11,
},
},
},
["unitType"] = "EA_6B",
}
return unitPayloads

View File

@ -13,6 +13,7 @@
"CH-53E",
"A-4E Skyhawk",
"A-7E Corsair II",
"EA-6B Prowler",
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)",
"F-4B Phantom II",

View File

@ -16,6 +16,7 @@
"C-130J-30 Super Hercules",
"CH-47D",
"CH-53E",
"EA-6B Prowler",
"F-117A Nighthawk",
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)",

View File

@ -26,21 +26,22 @@
"F-15E Strike Eagle (AI)",
"F-15E Strike Eagle (Suite 4+)",
"F-16CM Fighting Falcon (Block 50)",
"F-16D Fighting Falcon (Block 52+)",
"F-16D Fighting Falcon (Block 52)",
"F-16D Fighting Falcon (Block 50+)",
"F-16D Fighting Falcon (Block 50)",
"F-16D Fighting Falcon (Block 52+)",
"F-16D Fighting Falcon (Block 52)",
"F-16D Fighting Falcon (Block 50+)",
"F-16D Fighting Falcon (Block 50)",
"F-22A Raptor",
"F/A-18C Hornet (Lot 20)",
"F/A-18E Super Hornet",
"F/A-18F Super Hornet",
"EA-18G Growler",
"F/A-18E Super Hornet",
"F/A-18F Super Hornet",
"EA-6B Prowler",
"EA-18G Growler",
"OH-58D(R) Kiowa Warrior",
"S-3B Viking",
"SH-60B Seahawk",
"UH-1H Iroquois",
"UH-60A",
"UH-60L"
"UH-60A",
"UH-60L"
],
"awacs": [
"E-2C Hawkeye",

View File

@ -10,6 +10,7 @@
"AH-1W SuperCobra",
"A-4E Skyhawk",
"A-6A Intruder",
"EA-6B Prowler",
"A-7E Corsair II",
"F-14A Tomcat (AI)",
"F-14A Tomcat (Block 135-GR Late)",

View File

@ -8,6 +8,7 @@
],
"aircrafts": [
"F-14B Tomcat",
"EA-6B Prowler",
"F/A-18C Hornet (Lot 20)",
"F/A-18E Super Hornet",
"F/A-18F Super Hornet",

View File

@ -11,7 +11,8 @@
"F/A-18C Hornet (Lot 20)",
"F/A-18E Super Hornet",
"F/A-18F Super Hornet",
"EA-18G Growler",
"EA-18G Growler",
"EA-6B Prowler",
"AV-8B Harrier II Night Attack",
"AH-1W SuperCobra",
"S-3B Viking",

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1,17 @@
carrier_capable: true
description:
"The Northrop Grumman EA-6B Prowler is a twin-engine, four-seat, mid-wing electronic-warfare \
\ aircraft derived from the A-6 Intruder airframe. The EA-6A was the initial electronic warfare \
\ version of the A-6 used by the United States Marine Corps and United States Navy. \
\ It was capable of carrying and firing anti-radiation missiles (ARMs), such as the AGM-88 HARM."
introduced: 1971
manufacturer: Northrop Grumman
origin: USA
price: 11
role: Carrier-based Electronic-warfare Aircraft
gunfighter: false
variants:
EA-6B Prowler: {}
tasks:
SEAD: 460
SEAD Escort: 460