Added "F-16I Sufa" and "F-16C Fighting Falcon (IDF mod)" to Israel factions and added missing planemod decorators.

This commit is contained in:
MetalStormGhost 2022-04-24 16:39:21 +03:00
parent 4dc619a140
commit b4e5efe3c0
6 changed files with 27 additions and 2 deletions

View File

@ -122,6 +122,7 @@ from dcs.unittype import FlyingType
from game.dcs.aircrafttype import AircraftType
from pydcs_extensions.a4ec.a4ec import A_4E_C
from pydcs_extensions.f104.f104 import VSN_F104G, VSN_F104S, VSN_F104S_AG
from pydcs_extensions.f16i_idf.f16i_idf import F_16C_BARAK_2020, F_16I
from pydcs_extensions.f22a.f22a import F_22A
from pydcs_extensions.hercules.hercules import Hercules
from pydcs_extensions.jas39.jas39 import JAS39Gripen, JAS39Gripen_AG
@ -149,6 +150,8 @@ CAP_CAPABLE = [
Su_27,
MiG_29S,
F_16C_50,
F_16C_BARAK_2020,
F_16I,
FA_18C_hornet,
JF_17,
JAS39Gripen,
@ -207,6 +210,8 @@ CAS_CAPABLE = [
Su_25,
F_15E,
F_16C_50,
F_16C_BARAK_2020,
F_16I,
FA_18C_hornet,
Tornado_GR4,
Tornado_IDS,
@ -284,6 +289,8 @@ CAS_CAPABLE = [
SEAD_CAPABLE = [
JF_17,
F_16C_50,
F_16C_BARAK_2020,
F_16I,
FA_18C_hornet,
Tornado_IDS,
Su_25T,
@ -345,6 +352,8 @@ STRIKE_CAPABLE = [
AJS37,
Tornado_GR4,
F_16C_50,
F_16C_BARAK_2020,
F_16I,
FA_18C_hornet,
AV8BNA,
JF_17,
@ -446,6 +455,8 @@ RUNWAY_ATTACK_CAPABLE = [
F_15E,
AJS37,
F_16C_50,
F_16C_BARAK_2020,
F_16I,
FA_18C_hornet,
AV8BNA,
JF_17,

View File

@ -310,6 +310,11 @@ class Faction:
if not mod_settings.uh_60l:
self.remove_aircraft("UH-60L")
self.remove_aircraft("KC130J")
if not mod_settings.f_16_idf:
self.remove_aircraft("F-16I")
self.remove_aircraft("F-16C-BARAK 2020")
else:
inject_F16I()
if not mod_settings.f22_raptor:
self.remove_aircraft("F-22A")
if not mod_settings.f104_starfighter:

View File

@ -6,6 +6,7 @@ from dcs import task
from dcs.planes import F_16C_50, PlaneType
from dcs.weapons_data import Weapons
from game.modsupport import planemod
from pydcs_extensions.pylon_injector import inject_pylon
from pydcs_extensions.weapon_injector import inject_weapons
from qt_ui.uiconstants import AIRCRAFT_ICONS, AIRCRAFT_BANNERS
@ -297,6 +298,7 @@ def inject_F16I() -> None:
inject_custom_payloads(Path(THIS_DIR.parent / "resources/mod_payloads/f16i_idf"))
@planemod
class F_16I(PlaneType):
id = "F-16I"
height = 5.02
@ -4156,7 +4158,7 @@ class F_16I(PlaneType):
class Pylon12:
ALQ_184 = (12, Weapons.ALQ_184)
pylons: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
pylons = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
tasks = [
task.CAP,
@ -4175,6 +4177,7 @@ class F_16I(PlaneType):
task_default = task.CAP
@planemod
class F_16C_BARAK_2020(PlaneType):
id = "F-16C-BARAK 2020"
height = 5.02
@ -5185,7 +5188,7 @@ class F_16C_BARAK_2020(PlaneType):
class Pylon14:
ALQ_184 = (14, Weapons.ALQ_184)
pylons: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}
pylons = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}
tasks = [
task.CAP,

View File

@ -11,6 +11,8 @@
"F-15C Eagle",
"F-15E Strike Eagle",
"F-16CM Fighting Falcon (Block 50)",
"F-16C Fighting Falcon (IDF mod)",
"F-16I Sufa",
"F-14B Tomcat",
"F/A-18C Hornet (Lot 20)",
"AV-8B Harrier II Night Attack",

View File

@ -15,6 +15,8 @@
"F-15C Eagle",
"F-15E Strike Eagle",
"F-16CM Fighting Falcon (Block 50)",
"F-16C Fighting Falcon (IDF mod)",
"F-16I Sufa",
"F-4E Phantom II",
"UH-1H Iroquois",
"UH-60L"

View File

@ -15,6 +15,8 @@
"F-15C Eagle",
"F-15E Strike Eagle",
"F-16CM Fighting Falcon (Block 50)",
"F-16C Fighting Falcon (IDF mod)",
"F-16I Sufa",
"F/A-18C Hornet (Lot 20)",
"Mirage 2000C",
"UH-1H Iroquois",