Add radio setup for F-5E, Mi-8, Mi-24 and F-86 (#3400)

This commit is contained in:
zhexu14 2024-06-05 20:59:02 +10:00 committed by GitHub
parent 352216bb5e
commit fd8632a71d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 75 additions and 2 deletions

View File

@ -11,8 +11,11 @@ Saves from 11.0.0 are compatible with 11.1.0. See Known Issues section for excep
* **[Campaign]** Fixed double counting of parked aircraft kills when DCS reports multiple kill events.
* **[Campaign]** Fixed error where frontline units are not re-deployed when multiple control points were captured in one turn or when control points are captured "out of order" using air-assault missions.
* **[Cheat Menu]** Re-deploy frontline units when using cheats to capture control points, so that cheats behave the same way as capturing a control point in-mission.
* **[Data]** Added FuSe-65 Early Warning Radar.
* **[Data]** Updated Peru 1995 and Germany 1944 factions.
* **[Flight Planning]** Theater refuelling flight plans (those not tied to a particular package) will remain on station for a longer period, specifically the desired mission duration + 30 minutes. By default, this increases the on-station time from 1 hour to 1.5 hours.
* **[Mission Generation]** Patched bug where Liberation crashed when aborting a turn when Fighter Sweep missions were planned.
* **[Radios]** Added radio setup for F-5E, F-86, Mi-8 and Mi-24.
* **[UI]** Naval control points (carriers, LHAs) can no longer be moved onto land.
## Known Issues

View File

@ -35,6 +35,8 @@ from game.radio.channels import (
ViperChannelNamer,
WarthogChannelNamer,
PhantomChannelNamer,
HindChannelNamer,
HipChannelNamer,
)
from game.utils import (
Distance,
@ -112,6 +114,8 @@ class RadioConfig:
"a10c-legacy": LegacyWarthogChannelNamer,
"a10c-ii": WarthogChannelNamer,
"phantom": PhantomChannelNamer,
"hind": HindChannelNamer,
"hip": HipChannelNamer,
}[config.get("namer", "default")]

View File

@ -405,3 +405,35 @@ class PhantomChannelNamer(ChannelNamer):
@classmethod
def name(cls) -> str:
return "phantom"
class HindChannelNamer(ChannelNamer):
"""Channel namer for Mi-24 Hind"""
@staticmethod
def channel_name(radio_id: int, channel_id: int) -> str:
radio_name = [
"R863",
"R828",
][radio_id - 1]
return f"{radio_name} Ch {channel_id-1}"
@classmethod
def name(cls) -> str:
return "hind"
class HipChannelNamer(ChannelNamer):
"""Channel namer for Mi-8 Hip"""
@staticmethod
def channel_name(radio_id: int, channel_id: int) -> str:
radio_name = [
"R863",
"R828",
][radio_id - 1]
return f"{radio_name} Ch {channel_id}"
@classmethod
def name(cls) -> str:
return "hip"

View File

@ -186,6 +186,7 @@ RADIOS: List[Radio] = [
),
),
Radio("AN/ARC-222", (RadioRange(MHz(116), MHz(152), MHz(1), Modulation.AM),)),
Radio("AN/ARC-27", (RadioRange(MHz(225), MHz(400), kHz(100), Modulation.AM),)),
Radio("SCR-522", (RadioRange(MHz(100), MHz(156), MHz(1), Modulation.AM),)),
Radio("A.R.I. 1063", (RadioRange(MHz(100), MHz(156), MHz(1), Modulation.AM),)),
Radio("BC-1206", (RadioRange(kHz(200), kHz(400), kHz(10), Modulation.AM),)),
@ -237,8 +238,6 @@ RADIOS: List[Radio] = [
Radio("AN/ARC-51BX", (RadioRange(MHz(225), MHz(400), kHz(50), Modulation.AM),)),
Radio("AN/ARC-131", (RadioRange(MHz(30), MHz(76), kHz(50), Modulation.FM),)),
Radio("AN/ARC-134", (RadioRange(MHz(116), MHz(150), kHz(25), Modulation.AM),)),
# F-4E
Radio("AN/ARC-164", (RadioRange(MHz(225), MHz(400), kHz(50), Modulation.AM),)),
# JAS39
Radio("R&S Series 6000", (RadioRange(MHz(100), MHz(156), kHz(25), Modulation.AM),)),
# Mirage F1
@ -295,6 +294,9 @@ RADIOS: List[Radio] = [
),
),
),
# Mi-8/Mi-24
Radio("R863", (RadioRange(MHz(220), MHz(400), kHz(25), Modulation.AM),)),
Radio("R828", (RadioRange(MHz(20), MHz(60), kHz(25), Modulation.FM),)),
]

View File

@ -22,6 +22,14 @@ origin: USA
price: 12
role: Light Fighter
max_range: 100
radios:
intra_flight: AN/ARC-164
inter_flight: AN/ARC-164
channels:
type: common
namer: single
intra_flight_radio_index: 1
inter_flight_radio_index: 1
gunfighter: true
variants:
F-5E Tiger II: {}

View File

@ -13,6 +13,14 @@ origin: USA
price: 8
role: Fighter
gunfighter: true
radios:
intra_flight: AN/ARC-27
inter_flight: AN/ARC-27
channels:
type: common
namer: single
intra_flight_radio_index: 1
inter_flight_radio_index: 1
variants:
F-86F Sabre: {}
tasks:

View File

@ -24,6 +24,14 @@ origin: USSR/Russia
price: 14
role: Attack/Transport
kneeboard_units: "metric"
radios:
intra_flight: R863
inter_flight: R863
channels:
type: common
namer: hind
intra_flight_radio_index: 1
inter_flight_radio_index: 1
variants:
Mi-24P Hind-F: {}
tasks:

View File

@ -15,6 +15,14 @@ role: Transport/Light Attack
variants:
Mi-8MTV2 Hip: {}
kneeboard_units: "metric"
radios:
intra_flight: R863
inter_flight: R863
channels:
type: common
namer: hip
intra_flight_radio_index: 1
inter_flight_radio_index: 1
tasks:
Air Assault: 40
BAI: 390