Skip to content

Commit

Permalink
Dcs 2.9.6 (#3428)
Browse files Browse the repository at this point in the history
This PR adds support for DCS 2.9.6
  • Loading branch information
zhexu14 authored Aug 23, 2024
1 parent 9909ce6 commit 020e979
Show file tree
Hide file tree
Showing 39 changed files with 561 additions and 551 deletions.
154 changes: 77 additions & 77 deletions pydcs_extensions/a4ec/a4ec.py

Large diffs are not rendered by default.

172 changes: 122 additions & 50 deletions pydcs_extensions/f104/f104.py

Large diffs are not rendered by default.

357 changes: 211 additions & 146 deletions pydcs_extensions/f4/f4.py

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pydcs_extensions/hercules/hercules.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ class Pylon1:
class Pylon2:
LAU_68_pod___7_x_2_75_Hydra__UnGd_Rkts_M257__Para_Illum = (
2,
Weapons.LAU_68_pod___7_x_2_75_Hydra__UnGd_Rkts_M257__Para_Illum,
Weapons.LAU_68___7_x_UnGd_Rkts__70_mm_Hydra_70_M257_IL,
)
Smokewinder___red = (2, Weapons.Smokewinder___red)
Smokewinder___green = (2, Weapons.Smokewinder___green)
Expand All @@ -753,7 +753,7 @@ class Pylon2:
class Pylon3:
LAU_68_pod___7_x_2_75_Hydra__UnGd_Rkts_M257__Para_Illum = (
3,
Weapons.LAU_68_pod___7_x_2_75_Hydra__UnGd_Rkts_M257__Para_Illum,
Weapons.LAU_68___7_x_UnGd_Rkts__70_mm_Hydra_70_M257_IL,
)
Smokewinder___red = (3, Weapons.Smokewinder___red)
Smokewinder___green = (3, Weapons.Smokewinder___green)
Expand All @@ -770,7 +770,7 @@ class Pylon3:
class Pylon4:
LAU_68_pod___7_x_2_75_Hydra__UnGd_Rkts_M257__Para_Illum = (
4,
Weapons.LAU_68_pod___7_x_2_75_Hydra__UnGd_Rkts_M257__Para_Illum,
Weapons.LAU_68___7_x_UnGd_Rkts__70_mm_Hydra_70_M257_IL,
)
Smokewinder___red = (4, Weapons.Smokewinder___red)
Smokewinder___green = (4, Weapons.Smokewinder___green)
Expand All @@ -787,7 +787,7 @@ class Pylon4:
class Pylon5:
LAU_68_pod___7_x_2_75_Hydra__UnGd_Rkts_M257__Para_Illum = (
5,
Weapons.LAU_68_pod___7_x_2_75_Hydra__UnGd_Rkts_M257__Para_Illum,
Weapons.LAU_68___7_x_UnGd_Rkts__70_mm_Hydra_70_M257_IL,
)
Smokewinder___red = (5, Weapons.Smokewinder___red)
Smokewinder___green = (5, Weapons.Smokewinder___green)
Expand Down
140 changes: 70 additions & 70 deletions pydcs_extensions/ov10a/ov10a.py

Large diffs are not rendered by default.

101 changes: 65 additions & 36 deletions pydcs_extensions/su57/su57.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,23 @@ class Su57Weapons:
RVV_BD = {"clsid": "{RVV-BD}", "name": "RVV-BD", "weight": 600}
RVV_L = {"clsid": "{RVV-L}", "name": "RVV-L", "weight": 748}
RVV_M = {"clsid": "{RVV-M}", "name": "RVV-M", "weight": 190}
R_37M_Active_Rdr = {"clsid": "{RVV-BD}", "name": "R-37M Active Rdr", "weight": 600}
Su_57_Fuel_Tank = {
"clsid": "{SU_57Tank}",
"name": "Su-57 Fuel Tank",
"weight": 1561.421,
}
R_77PD_Active_rdr = {
"clsid": "{RVV-AE}",
"name": "R-77PD Active rdr",
"weight": 250,
}
K_77M_Active_Rdr = {"clsid": "{RVV-M}", "name": "K-77M Active Rdr", "weight": 190}
KS_172_Passive_Rdr = {
"clsid": "{RVV-L}",
"name": "KS-172 Passive Rdr",
"weight": 748,
}


inject_weapons(Su57Weapons)
Expand All @@ -44,8 +56,9 @@ class Su_57(PlaneType):

class Pylon1:
R_73__AA_11_Archer____Infra_Red = (1, Weapons.R_73__AA_11_Archer____Infra_Red)
RVV_AE = (1, Su57Weapons.RVV_AE)
RVV_M = (1, Su57Weapons.RVV_M)
R_77PD_Active_rdr = (1, Su57Weapons.R_77PD_Active_rdr)
K_77M_Active_Rdr = (1, Su57Weapons.K_77M_Active_Rdr)
L_081_Fantasmagoria_ELINT_pod = (1, Weapons.L_081_Fantasmagoria_ELINT_pod)
Smoke_Generator___red = (1, Weapons.Smoke_Generator___red)
Smoke_Generator___green = (1, Weapons.Smoke_Generator___green)
Smoke_Generator___blue = (1, Weapons.Smoke_Generator___blue)
Expand Down Expand Up @@ -96,13 +109,17 @@ class Pylon2:
2,
Weapons.MBD3_U6_68_with_6_x_FAB_100___100kg_GP_Bombs_LD,
)
B_8M1___20_x_UnGd_Rkts__80_mm_S_8KOM_HEAT_Frag = (
2,
Weapons.B_8M1___20_x_UnGd_Rkts__80_mm_S_8KOM_HEAT_Frag,
)
B_13L_pod___5_x_S_13_OF__122mm_UnGd_Rkts__Blast_Frag = (
2,
Weapons.B_13L_pod___5_x_S_13_OF__122mm_UnGd_Rkts__Blast_Frag,
Weapons.B_13L___5_x_UnGd_Rkts__122_mm_S_13OF_Blast_Fragmentation,
)
S_25_OFM___340mm_UnGd_Rkt__480kg_Penetrator = (
2,
Weapons.S_25_OFM___340mm_UnGd_Rkt__480kg_Penetrator,
Weapons.O_25___1_x_UnGd_Rkts__340_mm_S_25_OFM_Hardened_Target_Penetrator,
)
BetAB_500___500kg_Concrete_Piercing_Bomb_LD = (
2,
Expand Down Expand Up @@ -143,10 +160,10 @@ class Pylon2:
2,
Weapons.MBD3_U6_68_with_6_x_FAB_250___250kg_GP_Bombs_LD,
)
RVV_BD = (2, Su57Weapons.RVV_BD)
RVV_AE = (2, Su57Weapons.RVV_AE)
RVV_M = (2, Su57Weapons.RVV_M)
RVV_L = (2, Su57Weapons.RVV_L)
R_37M_Active_Rdr = (2, Su57Weapons.R_37M_Active_Rdr)
R_77PD_Active_rdr = (2, Su57Weapons.R_77PD_Active_rdr)
K_77M_Active_Rdr = (2, Su57Weapons.K_77M_Active_Rdr)
KS_172_Passive_Rdr = (2, Su57Weapons.KS_172_Passive_Rdr)
Fuel_tank_800L_Wing = (2, Weapons.Fuel_tank_800L_Wing)
RN_28___260_kg__nuclear_bomb__free_fall = (
2,
Expand Down Expand Up @@ -213,13 +230,17 @@ class Pylon4:
4,
Weapons.MBD3_U6_68_with_6_x_FAB_100___100kg_GP_Bombs_LD,
)
B_8M1___20_x_UnGd_Rkts__80_mm_S_8KOM_HEAT_Frag = (
4,
Weapons.B_8M1___20_x_UnGd_Rkts__80_mm_S_8KOM_HEAT_Frag,
)
B_13L_pod___5_x_S_13_OF__122mm_UnGd_Rkts__Blast_Frag = (
4,
Weapons.B_13L_pod___5_x_S_13_OF__122mm_UnGd_Rkts__Blast_Frag,
Weapons.B_13L___5_x_UnGd_Rkts__122_mm_S_13OF_Blast_Fragmentation,
)
S_25_OFM___340mm_UnGd_Rkt__480kg_Penetrator = (
4,
Weapons.S_25_OFM___340mm_UnGd_Rkt__480kg_Penetrator,
Weapons.O_25___1_x_UnGd_Rkts__340_mm_S_25_OFM_Hardened_Target_Penetrator,
)
BetAB_500___500kg_Concrete_Piercing_Bomb_LD = (
4,
Expand Down Expand Up @@ -260,10 +281,10 @@ class Pylon4:
4,
Weapons.MBD3_U6_68_with_6_x_FAB_250___250kg_GP_Bombs_LD,
)
RVV_BD = (4, Su57Weapons.RVV_BD)
RVV_AE = (4, Su57Weapons.RVV_AE)
RVV_M = (4, Su57Weapons.RVV_M)
RVV_L = (4, Su57Weapons.RVV_L)
R_37M_Active_Rdr = (4, Su57Weapons.R_37M_Active_Rdr)
R_77PD_Active_rdr = (4, Su57Weapons.R_77PD_Active_rdr)
K_77M_Active_Rdr = (4, Su57Weapons.K_77M_Active_Rdr)
KS_172_Passive_Rdr = (4, Su57Weapons.KS_172_Passive_Rdr)
RN_28___260_kg__nuclear_bomb__free_fall = (
4,
Weapons.RN_28___260_kg__nuclear_bomb__free_fall,
Expand All @@ -273,26 +294,26 @@ class Pylon4:

class Pylon5:
R_77__AA_12_Adder____Active_Rdr = (5, Weapons.R_77__AA_12_Adder____Active_Rdr)
RVV_AE = (5, Su57Weapons.RVV_AE)
RVV_M = (5, Su57Weapons.RVV_M)
R_77PD_Active_rdr = (5, Su57Weapons.R_77PD_Active_rdr)
K_77M_Active_Rdr = (5, Su57Weapons.K_77M_Active_Rdr)
Kh_59MK2 = (5, Su57Weapons.Kh_59MK2)

class Pylon6:
R_77__AA_12_Adder____Active_Rdr = (6, Weapons.R_77__AA_12_Adder____Active_Rdr)
RVV_AE = (6, Su57Weapons.RVV_AE)
RVV_M = (6, Su57Weapons.RVV_M)
R_77PD_Active_rdr = (6, Su57Weapons.R_77PD_Active_rdr)
K_77M_Active_Rdr = (6, Su57Weapons.K_77M_Active_Rdr)
Kh_59MK2 = (6, Su57Weapons.Kh_59MK2)

class Pylon7:
R_77__AA_12_Adder____Active_Rdr = (7, Weapons.R_77__AA_12_Adder____Active_Rdr)
RVV_AE = (7, Su57Weapons.RVV_AE)
RVV_M = (7, Su57Weapons.RVV_M)
R_77PD_Active_rdr = (7, Su57Weapons.R_77PD_Active_rdr)
K_77M_Active_Rdr = (7, Su57Weapons.K_77M_Active_Rdr)
Kh_59MK2 = (7, Su57Weapons.Kh_59MK2)

class Pylon8:
R_77__AA_12_Adder____Active_Rdr = (8, Weapons.R_77__AA_12_Adder____Active_Rdr)
RVV_AE = (8, Su57Weapons.RVV_AE)
RVV_M = (8, Su57Weapons.RVV_M)
R_77PD_Active_rdr = (8, Su57Weapons.R_77PD_Active_rdr)
K_77M_Active_Rdr = (8, Su57Weapons.K_77M_Active_Rdr)
Kh_59MK2 = (8, Su57Weapons.Kh_59MK2)

class Pylon9:
Expand Down Expand Up @@ -338,13 +359,17 @@ class Pylon9:
9,
Weapons.MBD3_U6_68_with_6_x_FAB_100___100kg_GP_Bombs_LD,
)
B_8M1___20_x_UnGd_Rkts__80_mm_S_8KOM_HEAT_Frag = (
9,
Weapons.B_8M1___20_x_UnGd_Rkts__80_mm_S_8KOM_HEAT_Frag,
)
B_13L_pod___5_x_S_13_OF__122mm_UnGd_Rkts__Blast_Frag = (
9,
Weapons.B_13L_pod___5_x_S_13_OF__122mm_UnGd_Rkts__Blast_Frag,
Weapons.B_13L___5_x_UnGd_Rkts__122_mm_S_13OF_Blast_Fragmentation,
)
S_25_OFM___340mm_UnGd_Rkt__480kg_Penetrator = (
9,
Weapons.S_25_OFM___340mm_UnGd_Rkt__480kg_Penetrator,
Weapons.O_25___1_x_UnGd_Rkts__340_mm_S_25_OFM_Hardened_Target_Penetrator,
)
BetAB_500___500kg_Concrete_Piercing_Bomb_LD = (
9,
Expand Down Expand Up @@ -385,10 +410,10 @@ class Pylon9:
9,
Weapons.MBD3_U6_68_with_6_x_FAB_250___250kg_GP_Bombs_LD,
)
RVV_BD = (9, Su57Weapons.RVV_BD)
RVV_AE = (9, Su57Weapons.RVV_AE)
RVV_M = (9, Su57Weapons.RVV_M)
RVV_L = (9, Su57Weapons.RVV_L)
R_37M_Active_Rdr = (9, Su57Weapons.R_37M_Active_Rdr)
R_77PD_Active_rdr = (9, Su57Weapons.R_77PD_Active_rdr)
K_77M_Active_Rdr = (9, Su57Weapons.K_77M_Active_Rdr)
KS_172_Passive_Rdr = (9, Su57Weapons.KS_172_Passive_Rdr)
RN_28___260_kg__nuclear_bomb__free_fall = (
9,
Weapons.RN_28___260_kg__nuclear_bomb__free_fall,
Expand Down Expand Up @@ -448,13 +473,17 @@ class Pylon11:
11,
Weapons.MBD3_U6_68_with_6_x_FAB_100___100kg_GP_Bombs_LD,
)
B_8M1___20_x_UnGd_Rkts__80_mm_S_8KOM_HEAT_Frag = (
11,
Weapons.B_8M1___20_x_UnGd_Rkts__80_mm_S_8KOM_HEAT_Frag,
)
B_13L_pod___5_x_S_13_OF__122mm_UnGd_Rkts__Blast_Frag = (
11,
Weapons.B_13L_pod___5_x_S_13_OF__122mm_UnGd_Rkts__Blast_Frag,
Weapons.B_13L___5_x_UnGd_Rkts__122_mm_S_13OF_Blast_Fragmentation,
)
S_25_OFM___340mm_UnGd_Rkt__480kg_Penetrator = (
11,
Weapons.S_25_OFM___340mm_UnGd_Rkt__480kg_Penetrator,
Weapons.O_25___1_x_UnGd_Rkts__340_mm_S_25_OFM_Hardened_Target_Penetrator,
)
BetAB_500___500kg_Concrete_Piercing_Bomb_LD = (
11,
Expand Down Expand Up @@ -499,10 +528,10 @@ class Pylon11:
Weapons.MBD3_U6_68_with_6_x_FAB_250___250kg_GP_Bombs_LD,
)
# ERRR {R-33}
RVV_BD = (11, Su57Weapons.RVV_BD)
RVV_AE = (11, Su57Weapons.RVV_AE)
RVV_M = (11, Su57Weapons.RVV_M)
RVV_L = (11, Su57Weapons.RVV_L)
R_37M_Active_Rdr = (11, Su57Weapons.R_37M_Active_Rdr)
R_77PD_Active_rdr = (11, Su57Weapons.R_77PD_Active_rdr)
K_77M_Active_Rdr = (11, Su57Weapons.K_77M_Active_Rdr)
KS_172_Passive_Rdr = (11, Su57Weapons.KS_172_Passive_Rdr)
Fuel_tank_800L_Wing = (11, Weapons.Fuel_tank_800L_Wing)
Su_57_Fuel_Tank = (11, Su57Weapons.Su_57_Fuel_Tank)
RN_28___260_kg__nuclear_bomb__free_fall = (
Expand All @@ -519,8 +548,8 @@ class Pylon11:

class Pylon12:
R_73__AA_11_Archer____Infra_Red = (12, Weapons.R_73__AA_11_Archer____Infra_Red)
RVV_AE = (12, Su57Weapons.RVV_AE)
RVV_M = (12, Su57Weapons.RVV_M)
R_77PD_Active_rdr = (12, Su57Weapons.R_77PD_Active_rdr)
K_77M_Active_Rdr = (12, Su57Weapons.K_77M_Active_Rdr)
Smoke_Generator___red = (12, Weapons.Smoke_Generator___red)
Smoke_Generator___green = (12, Weapons.Smoke_Generator___green)
Smoke_Generator___blue = (12, Weapons.Smoke_Generator___blue)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pre-commit==3.5.0
pydantic==2.5.2
pydantic-settings==2.1.0
pydantic_core==2.14.5
pydcs @ git+https://github.com/dcs-liberation/dcs@58b4cc91bfb068e094f684e4747190d1dcd57232
pydcs @ git+https://github.com/dcs-liberation/dcs@fd375b6b797a15b77d48301d9a9cb55d4ed641ad
pyinstaller==5.13.1
pyinstaller-hooks-contrib==2023.6
pyproj==3.6.1
Expand Down
2 changes: 1 addition & 1 deletion resources/campaigns/TblisiGap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ squadrons:
- primary: BARCAP
aircraft:
- F-16CM Fighting Falcon (Block 50)
- F-4F Phantom II
- F-4E-45MC Phantom II
- F-5E Tiger II
- MiG-23MLD Flogger-K
- FC-1 Fierce Dragon
Expand Down
2 changes: 1 addition & 1 deletion resources/campaigns/battle_of_abu_dhabi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ squadrons:
secondary: air-to-ground
aircraft:
- F-16CM Fighting Falcon (Block 50)
- F-4E Phantom II
- F-4E-45MC Phantom II
- primary: AEW&C
size: 2
aircraft:
Expand Down
2 changes: 1 addition & 1 deletion resources/campaigns/golan_heights_lite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ squadrons:
- primary: BARCAP
secondary: any
aircraft:
- F-4E Phantom II
- F-4E-45MC Phantom II
size: 10
- primary: Strike
secondary: air-to-ground
Expand Down
1 change: 0 additions & 1 deletion resources/campaigns/operation_allied_sword.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ recommended_player_faction:
locales:
- en_US
aircrafts:
- F-4E Phantom II
- F-4E-45MC Phantom II
- F-15C Eagle
- F-15E Strike Eagle
Expand Down
2 changes: 1 addition & 1 deletion resources/campaigns/operation_velvet_thunder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ squadrons:
- primary: DEAD
secondary: any
aircraft:
- F-4E Phantom II
- F-4E-45MC Phantom II
size: 8
- primary: Strike
secondary: any
Expand Down
2 changes: 1 addition & 1 deletion resources/campaigns/scenic_inland.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ squadrons:
- primary: BARCAP
secondary: any
aircraft:
- F-4E Phantom II
- F-4E-45MC Phantom II
- primary: TARCAP
secondary: air-to-air
aircraft:
Expand Down
2 changes: 1 addition & 1 deletion resources/campaigns/scenic_merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ squadrons:
- primary: BARCAP
secondary: any
aircraft:
- F-4E Phantom II
- F-4E-45MC Phantom II
size: 6
- primary: CAS
secondary: air-to-ground
Expand Down
6 changes: 3 additions & 3 deletions resources/campaigns/scenic_route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ squadrons:
- primary: BARCAP
secondary: any
aircraft:
- F-4E Phantom II
- F-4E-45MC Phantom II
# Havadarya
9:
- primary: BARCAP
secondary: any
aircraft:
- F-4E Phantom II
- F-4E-45MC Phantom II
size: 10
- primary: CAS
secondary: air-to-ground
Expand All @@ -123,7 +123,7 @@ squadrons:
- primary: BARCAP
secondary: air-to-ground
aircraft:
- F-4E Phantom II
- F-4E-45MC Phantom II
# OPFOR First FOB
FOB Seerik:
- primary: CAS
Expand Down
1 change: 0 additions & 1 deletion resources/factions/NATO_Desert_Storm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ aircrafts:
- F-15E Strike Eagle
- F-15E Strike Eagle (Suite 4+)
- F-16CM Fighting Falcon (Block 50)
- F-4E Phantom II
- F-4E-45MC Phantom II
- F/A-18C Hornet (Lot 20)
- Mirage 2000C
Expand Down
1 change: 0 additions & 1 deletion resources/factions/bluefor_coldwar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ aircrafts:
- C-130J-30 Super Hercules
- F-14A Tomcat (Block 135-GR Late)
- F-14B Tomcat
- F-4E Phantom II
- F-4E-45MC Phantom II
- F-5E Tiger II
- Mirage-F1B
Expand Down
1 change: 0 additions & 1 deletion resources/factions/blufor_late_coldwar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ aircrafts:
- F-15E Strike Eagle (Suite 4+)
- F-16CM Fighting Falcon (Block 50)
- F/A-18C Hornet (Lot 20)
- F-4E Phantom II
- F-4E-45MC Phantom II
- F-5E Tiger II
- OH-58D(R) Kiowa Warrior
Expand Down
1 change: 0 additions & 1 deletion resources/factions/egypt_2000.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ aircrafts:
- MiG-29S Fulcrum-C
- MiG-21bis Fishbed-N
- Mirage 2000C
- F-4E Phantom II
- F-4E-45MC Phantom II
- F-16CM Fighting Falcon (Block 50)
- IL-76MD
Expand Down
2 changes: 1 addition & 1 deletion resources/factions/germany_1990.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locales:
- de_DE
aircrafts:
- C-130
- F-4F Phantom II
- F-4E-45MC Phantom II
- MiG-29G Fulcrum-A
- SA 342L Gazelle
- SA 342M Gazelle
Expand Down
Loading

0 comments on commit 020e979

Please sign in to comment.