Super Hornet mod support (#3331)

F/A-18E and F/A-18F are added to their factions, Growler is currently in
its respective factions but was released in 2009, this will be changed
if needed.
This commit is contained in:
Chilli935 2024-01-28 00:14:57 +01:00 committed by GitHub
parent 5af4e56f30
commit e1d443b697
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 66 additions and 0 deletions

View File

@ -300,6 +300,8 @@ class Faction:
self.remove_aircraft("Su-57")
if not mod_settings.ov10a_bronco:
self.remove_aircraft("Bronco-OV-10A")
if not mod_settings.superhornet:
self.remove_aircraft("Super-Hornet")
# frenchpack
if not mod_settings.frenchpack:
self.remove_vehicle("AMX10RCR")

View File

@ -66,6 +66,7 @@ class ModSettings:
frenchpack: bool = False
high_digit_sams: bool = False
ov10a_bronco: bool = False
superhornet: bool = False
def save_player_settings(self) -> None:
"""Saves the player's global settings to the user directory."""

View File

@ -204,6 +204,7 @@ class NewGameWizard(QtWidgets.QWizard):
ov10a_bronco=self.field("ov10a_bronco"),
frenchpack=self.field("frenchpack"),
high_digit_sams=self.field("high_digit_sams"),
superhornet=self.field("superhornet"),
)
mod_settings.save_player_settings()
@ -826,6 +827,10 @@ class GeneratorOptions(QtWidgets.QWizardPage):
high_digit_sams.setChecked(mod_settings.high_digit_sams)
self.registerField("high_digit_sams", high_digit_sams)
superhornet = QtWidgets.QCheckBox()
superhornet.setChecked(mod_settings.superhornet)
self.registerField("superhornet", superhornet)
modHelpText = QtWidgets.QLabel(
"<p>Select the mods you have installed. If your chosen factions support them, you'll be able to use these mods in your campaign.</p>"
)
@ -877,6 +882,11 @@ class GeneratorOptions(QtWidgets.QWizardPage):
modLayout.addWidget(QtWidgets.QLabel("High Digit SAMs"), modLayout_row, 0)
modLayout.addWidget(high_digit_sams, modLayout_row, 1)
modSettingsGroup.setLayout(modLayout)
modLayout_row += 1
modLayout.addWidget(QtWidgets.QLabel("Super Hornet"), modLayout_row, 0)
modLayout.addWidget(superhornet, modLayout_row, 1)
modSettingsGroup.setLayout(modLayout)
modLayout_row += 1
mlayout = QVBoxLayout()
mlayout.addWidget(generatorSettingsGroup)

View File

@ -11,6 +11,9 @@ aircrafts:
- F/A-18C Hornet (Lot 20)
- SH-60B Seahawk
- UH-1H Iroquois
- F/A-18E Super Hornet
- F/A-18F Super Hornet
- EA-18G Growler
awacs:
- E-3A
tankers:

View File

@ -13,6 +13,9 @@ aircrafts:
- S-3B Viking
- SH-60B Seahawk
- UH-1H Iroquois
- F/A-18E Super Hornet
- F/A-18F Super Hornet
- EA-18G Growler
awacs:
- E-2C Hawkeye
tankers:

Binary file not shown.

After

Width:  |  Height:  |  Size: 989 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -0,0 +1,47 @@
carrier_capable: true
description:
'The EA-18G Growler is twin engine, supersonic Electronic Warfare Aircraft that is flown
by a pilot and a WSO (Weapon Systems Officer) in a "glass cockpit". It combines extreme maneuverability , a
deadly arsenal of weapons, and the ability to operate from an aircraft carrier.
Operated by several nations, this multi-role fighter has been instrumental in conflicts
from 2009 to today.
The flight capabilities of the Growler closely mirror those of the F/A-18E/F.
This characteristic allows the Growler to excel in both escort jamming and the conventional standoff jamming mission,
which involves radar jamming and deception. Growlers can seamlessly accompany F/A-18s throughout
all stages of an attack mission. To enhance the Growler's stability during electronic warfare operations,
Boeing made modifications to the leading edge fairings and wing fold hinge fairings, incorporating wing fences and
aileron "tripper strips".'
introduced: 1999
manufacturer: Boeing Defense, Space & Security
origin: USA
price: 32
role: Carrier-based Electronic Warfare Aircraft
default_livery: "VAQ-139"
fuel:
variants:
radios:
intra_flight: AN/ARC-210
inter_flight: AN/ARC-210
channels:
type: common
# DCS will clobber channel 1 of the first radio compatible with the flight's
# assigned frequency. Since the EA-18's two radios are both AN/ARC-210s,
# radio 1 will be compatible regardless of which frequency is assigned, so
# we must use radio 1 for the intra-flight radio.
intra_flight_radio_index: 1
inter_flight_radio_index: 2
utc_kneeboard: true
# default_overrides:
# HelmetMountedDevice: 1
# InnerBoard: 0
# OuterBoard: 0
tasks:
DEAD: 600
SEAD: 500
EA: 750
hit_points: 20