mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add F-15I support
Co-Authored-By: M Chimiste <37678080+M-Chimiste@users.noreply.github.com>
This commit is contained in:
@@ -70,6 +70,10 @@ class Flight(SidcDescribable, RadioFrequencyContainer, TacanContainer):
|
||||
self.divert = divert
|
||||
self.flight_type = flight_type
|
||||
self.loadout = Loadout.default_for(self)
|
||||
if self.squadron.aircraft.name == "F-15I Ra'am":
|
||||
self.loadout.pylons[16] = Weapon.with_clsid(
|
||||
"{IDF_MODS_PROJECT_F-15I_Raam_Dome}"
|
||||
)
|
||||
self.start_type = start_type
|
||||
self.use_custom_loadout = False
|
||||
self.custom_name = custom_name
|
||||
|
||||
@@ -32,6 +32,7 @@ from game.dcs.countries import country_with_name
|
||||
from game.dcs.groundunittype import GroundUnitType
|
||||
from game.dcs.shipunittype import ShipUnitType
|
||||
from game.dcs.unittype import UnitType
|
||||
from pydcs_extensions import inject_F15I, eject_F15I
|
||||
from pydcs_extensions.f16i_idf.f16i_idf import inject_F16I, eject_F16I
|
||||
|
||||
if TYPE_CHECKING:
|
||||
@@ -328,6 +329,14 @@ class Faction:
|
||||
self.remove_aircraft("VSN_F4C")
|
||||
if not mod_settings.f15d_baz:
|
||||
self.remove_aircraft("F-15D")
|
||||
if not mod_settings.f_15_idf:
|
||||
eject_F15I()
|
||||
if AircraftType.named("F-15I Ra'am") in self.aircraft:
|
||||
self.aircraft.remove(AircraftType.named("F-15I Ra'am"))
|
||||
else:
|
||||
inject_F15I()
|
||||
if AircraftType.named("F-15E Strike Eagle (Suite 4+)") in self.aircraft:
|
||||
self.aircraft.add(AircraftType.named("F-15I Ra'am"))
|
||||
if not mod_settings.f_16_idf:
|
||||
self.remove_aircraft("F-16I")
|
||||
self.remove_aircraft("F-16D_52")
|
||||
|
||||
@@ -59,6 +59,7 @@ class ModSettings:
|
||||
a7e_corsair2: bool = False
|
||||
f4bc_phantom: bool = False
|
||||
f15d_baz: bool = False
|
||||
f_15_idf: bool = False
|
||||
f_16_idf: bool = False
|
||||
fa_18efg: bool = False
|
||||
f22_raptor: bool = False
|
||||
|
||||
Reference in New Issue
Block a user