mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Added payloads for drones. Possibility to setup a different JTAC unit for some factions. China using Wingloong instead of Reaper as JTAC unit.
This commit is contained in:
parent
5afa2a23f6
commit
136cf143bd
35
game/db.py
35
game/db.py
@ -213,18 +213,18 @@ PRICES = {
|
|||||||
B_1B: 50,
|
B_1B: 50,
|
||||||
|
|
||||||
# special
|
# special
|
||||||
IL_76MD: 13,
|
IL_76MD: 30,
|
||||||
An_26B: 13,
|
An_26B: 25,
|
||||||
An_30M: 13,
|
An_30M: 25,
|
||||||
Yak_40: 13,
|
Yak_40: 25,
|
||||||
S_3B_Tanker: 13,
|
S_3B_Tanker: 20,
|
||||||
IL_78M: 13,
|
IL_78M: 25,
|
||||||
KC_135: 13,
|
KC_135: 25,
|
||||||
KC130: 13,
|
KC130: 25,
|
||||||
|
|
||||||
A_50: 8,
|
A_50: 50,
|
||||||
E_3A: 8,
|
E_3A: 50,
|
||||||
C_130: 8,
|
C_130: 25,
|
||||||
|
|
||||||
# WW2
|
# WW2
|
||||||
P_51D_30_NA: 18,
|
P_51D_30_NA: 18,
|
||||||
@ -232,6 +232,11 @@ PRICES = {
|
|||||||
P_47D_30: 18,
|
P_47D_30: 18,
|
||||||
B_17G: 30,
|
B_17G: 30,
|
||||||
|
|
||||||
|
# Drones
|
||||||
|
MQ_9_Reaper: 12,
|
||||||
|
RQ_1A_Predator: 6,
|
||||||
|
WingLoong_I: 6,
|
||||||
|
|
||||||
# Modded
|
# Modded
|
||||||
Rafale_M: 26,
|
Rafale_M: 26,
|
||||||
Rafale_A_S: 26,
|
Rafale_A_S: 26,
|
||||||
@ -464,7 +469,10 @@ UNIT_BY_TASK = {
|
|||||||
Ju_88A4,
|
Ju_88A4,
|
||||||
B_17G,
|
B_17G,
|
||||||
MB_339PAN,
|
MB_339PAN,
|
||||||
Rafale_A_S
|
Rafale_A_S,
|
||||||
|
WingLoong_I,
|
||||||
|
MQ_9_Reaper,
|
||||||
|
RQ_1A_Predator
|
||||||
],
|
],
|
||||||
Transport: [
|
Transport: [
|
||||||
IL_76MD,
|
IL_76MD,
|
||||||
@ -946,6 +954,9 @@ PLANE_PAYLOAD_OVERRIDES = {
|
|||||||
Rafale_A_S: COMMON_OVERRIDE,
|
Rafale_A_S: COMMON_OVERRIDE,
|
||||||
OH_58D: COMMON_OVERRIDE,
|
OH_58D: COMMON_OVERRIDE,
|
||||||
F_16A: COMMON_OVERRIDE,
|
F_16A: COMMON_OVERRIDE,
|
||||||
|
MQ_9_Reaper: COMMON_OVERRIDE,
|
||||||
|
RQ_1A_Predator: COMMON_OVERRIDE,
|
||||||
|
WingLoong_I: COMMON_OVERRIDE,
|
||||||
|
|
||||||
AH_64D:{
|
AH_64D:{
|
||||||
CAS: "AGM-114K*16"
|
CAS: "AGM-114K*16"
|
||||||
|
|||||||
@ -23,6 +23,7 @@ China_2010 = {
|
|||||||
A_50,
|
A_50,
|
||||||
|
|
||||||
Mi_8MT,
|
Mi_8MT,
|
||||||
|
Mi_28N,
|
||||||
|
|
||||||
AirDefence.SAM_SA_10_S_300PS_LN_5P85C, # Standing as HQ-9+
|
AirDefence.SAM_SA_10_S_300PS_LN_5P85C, # Standing as HQ-9+
|
||||||
AirDefence.SAM_SA_6_Kub_LN_2P25,
|
AirDefence.SAM_SA_6_Kub_LN_2P25,
|
||||||
@ -73,5 +74,7 @@ China_2010 = {
|
|||||||
"002 Shandong",
|
"002 Shandong",
|
||||||
], "boat":[
|
], "boat":[
|
||||||
"Type54GroupGenerator"
|
"Type54GroupGenerator"
|
||||||
], "has_jtac": True
|
],
|
||||||
|
"has_jtac": True,
|
||||||
|
"jtac_unit": WingLoong_I
|
||||||
}
|
}
|
||||||
@ -101,9 +101,14 @@ class GroundConflictGenerator:
|
|||||||
if "has_jtac" in self.game.player_faction and self.game.player_faction["has_jtac"] and self.game.settings.include_jtac_if_available:
|
if "has_jtac" in self.game.player_faction and self.game.player_faction["has_jtac"] and self.game.settings.include_jtac_if_available:
|
||||||
n = "JTAC" + str(self.conflict.from_cp.id) + str(self.conflict.to_cp.id)
|
n = "JTAC" + str(self.conflict.from_cp.id) + str(self.conflict.to_cp.id)
|
||||||
code = 1688 - len(self.game.jtacs)
|
code = 1688 - len(self.game.jtacs)
|
||||||
|
|
||||||
|
utype = MQ_9_Reaper
|
||||||
|
if "jtac_unit" in self.game.player_faction:
|
||||||
|
utype = self.game.player_faction["jtac_unit"]
|
||||||
|
|
||||||
jtac = self.mission.flight_group(country=self.mission.country(self.game.player_country),
|
jtac = self.mission.flight_group(country=self.mission.country(self.game.player_country),
|
||||||
name=n,
|
name=n,
|
||||||
aircraft_type=MQ_9_Reaper,
|
aircraft_type=utype,
|
||||||
position=position[0],
|
position=position[0],
|
||||||
airport=None,
|
airport=None,
|
||||||
altitude=5000)
|
altitude=5000)
|
||||||
|
|||||||
@ -138,7 +138,11 @@ CAS_CAPABLE = [
|
|||||||
FW_190A8,
|
FW_190A8,
|
||||||
|
|
||||||
A_4E_C,
|
A_4E_C,
|
||||||
Rafale_A_S
|
Rafale_A_S,
|
||||||
|
|
||||||
|
WingLoong_I,
|
||||||
|
MQ_9_Reaper,
|
||||||
|
RQ_1A_Predator
|
||||||
]
|
]
|
||||||
|
|
||||||
# Aircraft used for SEAD / DEAD tasks
|
# Aircraft used for SEAD / DEAD tasks
|
||||||
@ -227,4 +231,10 @@ ANTISHIP_CAPABLE = [
|
|||||||
|
|
||||||
Ju_88A4,
|
Ju_88A4,
|
||||||
Rafale_A_S
|
Rafale_A_S
|
||||||
]
|
]
|
||||||
|
|
||||||
|
DRONES = [
|
||||||
|
MQ_9_Reaper,
|
||||||
|
RQ_1A_Predator,
|
||||||
|
WingLoong_I
|
||||||
|
]
|
||||||
|
|||||||
33
resources/customized_payloads/MQ-9 Reaper.lua
Normal file
33
resources/customized_payloads/MQ-9 Reaper.lua
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
local unitPayloads = {
|
||||||
|
["name"] = "MQ-9 Reaper",
|
||||||
|
["payloads"] = {
|
||||||
|
[1] = {
|
||||||
|
["name"] = "CAS",
|
||||||
|
["pylons"] = {
|
||||||
|
[1] = {
|
||||||
|
["CLSID"] = "{88D18A5E-99C8-4B04-B40B-1C02F2018B6E}",
|
||||||
|
["num"] = 4,
|
||||||
|
},
|
||||||
|
[2] = {
|
||||||
|
["CLSID"] = "{88D18A5E-99C8-4B04-B40B-1C02F2018B6E}",
|
||||||
|
["num"] = 1,
|
||||||
|
},
|
||||||
|
[3] = {
|
||||||
|
["CLSID"] = "AGM114x2_OH_58",
|
||||||
|
["num"] = 2,
|
||||||
|
},
|
||||||
|
[4] = {
|
||||||
|
["CLSID"] = "AGM114x2_OH_58",
|
||||||
|
["num"] = 3,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["tasks"] = {
|
||||||
|
[1] = 17,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["tasks"] = {
|
||||||
|
},
|
||||||
|
["unitType"] = "MQ-9 Reaper",
|
||||||
|
}
|
||||||
|
return unitPayloads
|
||||||
23
resources/customized_payloads/RQ-1A Predator.lua
Normal file
23
resources/customized_payloads/RQ-1A Predator.lua
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
local unitPayloads = {
|
||||||
|
["name"] = "RQ-1A Predator",
|
||||||
|
["payloads"] = {
|
||||||
|
[1] = {
|
||||||
|
["name"] = "CAS",
|
||||||
|
["pylons"] = {
|
||||||
|
[1] = {
|
||||||
|
["CLSID"] = "{ee368869-c35a-486a-afe7-284beb7c5d52}",
|
||||||
|
["num"] = 2,
|
||||||
|
},
|
||||||
|
[2] = {
|
||||||
|
["CLSID"] = "{ee368869-c35a-486a-afe7-284beb7c5d52}",
|
||||||
|
["num"] = 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["tasks"] = {
|
||||||
|
[1] = 17,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["unitType"] = "RQ-1A Predator",
|
||||||
|
}
|
||||||
|
return unitPayloads
|
||||||
25
resources/customized_payloads/WingLoong-I.lua
Normal file
25
resources/customized_payloads/WingLoong-I.lua
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
local unitPayloads = {
|
||||||
|
["name"] = "WingLoong-I",
|
||||||
|
["payloads"] = {
|
||||||
|
[1] = {
|
||||||
|
["name"] = "CAS",
|
||||||
|
["pylons"] = {
|
||||||
|
[1] = {
|
||||||
|
["CLSID"] = "DIS_AKD-10",
|
||||||
|
["num"] = 2,
|
||||||
|
},
|
||||||
|
[2] = {
|
||||||
|
["CLSID"] = "DIS_AKD-10",
|
||||||
|
["num"] = 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["tasks"] = {
|
||||||
|
[1] = 17,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["tasks"] = {
|
||||||
|
},
|
||||||
|
["unitType"] = "WingLoong-I",
|
||||||
|
}
|
||||||
|
return unitPayloads
|
||||||
Loading…
x
Reference in New Issue
Block a user