Follow-up on F-4E-45MC

- missing radio config
- missing stored heading alignment
This commit is contained in:
Raffson 2024-05-27 23:50:06 +02:00
parent a1fa58326c
commit 7802ab992e
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
3 changed files with 43 additions and 0 deletions

View File

@ -39,6 +39,7 @@ from game.radio.channels import (
ViggenRadioChannelAllocator,
ViperChannelNamer,
WarthogChannelNamer,
PhantomChannelNamer,
)
from game.utils import (
Distance,
@ -114,6 +115,7 @@ class RadioConfig:
"apache": ApacheChannelNamer,
"a10c-legacy": LegacyWarthogChannelNamer,
"a10c-ii": WarthogChannelNamer,
"phantom": PhantomChannelNamer,
}[config.get("namer", "default")]

View File

@ -408,3 +408,16 @@ class WarthogChannelNamer(ChannelNamer):
@classmethod
def name(cls) -> str:
return "a10c-ii"
class PhantomChannelNamer(ChannelNamer):
"""Channel namer for the F-14."""
@staticmethod
def channel_name(radio_id: int, channel_id: int) -> str:
radio_name = ["COMM", "AUX"][radio_id - 1]
return f"{radio_name} Ch {channel_id}"
@classmethod
def name(cls) -> str:
return "phantom"

View File

@ -18,6 +18,34 @@ variants:
F-4E-45MC Phantom II: {}
Phantom FGR.2: {}
F-4EJ Phantom II: {}
radios:
intra_flight: AN/ARC-164
inter_flight: AN/ARC-164
channels:
type: common
namer: phantom
intra_flight_radio_index: 2
inter_flight_radio_index: 1
default_overrides:
INSAlignmentStored: true
#Quality: 100
#Wear: 0
#UseReferenceAircraft: false
#IsNvgAllowed: true
#TacanChannel: 0
#TacanBand: 0
#VORILSFrequencyMHZ: 108
#VORILSFrequencyDecimalMHZ: 0
#KY28Key: 1
#ChaffDoubleDispense: false
#IffMode2Digit1: 0
#IffMode2Digit2: 0
#IffMode2Digit3: 0
#IffMode2Digit4: 0
#LaserCodeDigit1: 1
#LaserCodeDigit2: 6
#LaserCodeDigit3: 8
#LaserCodeDigit4: 8
tasks:
Anti-ship: 110
BAI: 570