From 68114364e7401beb403b09521031b57c62ac9066 Mon Sep 17 00:00:00 2001 From: Aebestach <64588584+Aebestach@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:11:18 +0800 Subject: [PATCH] Added RA support for three mods Add support for RA to HabTech2, Tantares, TantaresSP. The author of Tantares suggested that I submit it here https://github.com/Tantares/Tantares/pull/123#issuecomment-2256019103 --- GameData/RealAntennas/Parts/HabTech2.cfg | 34 +++++++++ GameData/RealAntennas/Parts/Tantares.cfg | 83 ++++++++++++++++++++++ GameData/RealAntennas/Parts/TantaresSP.cfg | 55 ++++++++++++++ 3 files changed, 172 insertions(+) create mode 100644 GameData/RealAntennas/Parts/HabTech2.cfg create mode 100644 GameData/RealAntennas/Parts/Tantares.cfg create mode 100644 GameData/RealAntennas/Parts/TantaresSP.cfg diff --git a/GameData/RealAntennas/Parts/HabTech2.cfg b/GameData/RealAntennas/Parts/HabTech2.cfg new file mode 100644 index 0000000..047fb83 --- /dev/null +++ b/GameData/RealAntennas/Parts/HabTech2.cfg @@ -0,0 +1,34 @@ +// FR-1 Deployable UHF Antenna +@PART[ht2_UHF_antenna]:NEEDS[HabTech2]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 1.0 } +} + +// IP-W Wireless External Transceiver Assembly (WETA) +@PART[ht2_WETA]:NEEDS[HabTech2]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 1.5 } +} + +// SG-A5 Relay Antenna +@PART[ht2_SGANT_dish]:NEEDS[HabTech2]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 2.85 } +} + +// IP-SB S-band Antenna +@PART[ht2_S-band]:NEEDS[HabTech2]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 1.8 } +} + +// J-ICS Inter-orbit Communication System +@PART[ht2_JEM_ICS]:NEEDS[HabTech2]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 2.0 } +} \ No newline at end of file diff --git a/GameData/RealAntennas/Parts/Tantares.cfg b/GameData/RealAntennas/Parts/Tantares.cfg new file mode 100644 index 0000000..79b2d9a --- /dev/null +++ b/GameData/RealAntennas/Parts/Tantares.cfg @@ -0,0 +1,83 @@ +// Aquila Low Gain Antenna A||Aquila Low Gain Antenna B +@PART[aquila_low_gain_antenna_srf_1|aquila_low_gain_antenna_srf_2]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 1.0 } +} + +// Atria High Gain Antenna (Fixed)||Atria High Gain Antenna (Folding)||Atria High Gain Antenna (Extending) +@PART[atria_high_gain_antenna_srf_1|atria_high_gain_antenna_srf_2|atria_high_gain_antenna_srf_3]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna]{ %antennaDiameter = 0.8} +} + +// Atria Low Gain Antenna (Fixed)||Atria Low Gain Antenna (Folding)||Atria Low Gain Antenna (Extending) +@PART[atria_low_gain_antenna_srf_1|atria_low_gain_antenna_srf_2|atria_low_gain_antenna_srf_3]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 1.0 } +} + +// Lepus High Gain Antenna (Fixed)||Lepus High Gain Antenna (Folding) +@PART[lepus_high_gain_antenna_srf_1|lepus_high_gain_antenna_srf_2]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 1.0 } +} + +// Lepus Low Gain Antenna (Fixed)||Lepus Low Gain Antenna (Folding) +@PART[lepus_low_gain_antenna_srf_1|lepus_low_gain_antenna_srf_2]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 1.0 } +} + +// Vela High Gain Antenna +@PART[vela_high_gain_antenna_srf_1]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 1.0 } +} + +// Eridani Low Gain Antenna A||Eridani Low Gain Antenna B +@PART[eridani_low_gain_antenna_srf_1|eridani_low_gain_antenna_srf_2]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 1.0 } +} + +// Eridani High Gain Antenna +@PART[eridani_high_gain_antenna_srf_1]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 0.8 } +} + +// Atria-Octans Basic High Gain Antenna +@PART[octans_basic_high_gain_antenna_srf_2]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 0.5 } +} + +// Octans High Gain Antenna A||Octans High Gain Antenna B +@PART[octans_high_gain_antenna_srf_1|octans_high_gain_antenna_srf_2]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 1.5 } +} + +// Octans Whip Antenna A||Octans Whip Antenna B +@PART[octans_whip_antenna_srf_1|octans_whip_antenna_srf_2]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 0.5 } +} + +// Andromeda Low Gain Antenna +@PART[andromeda_low_gain_antenna_srf_1]:NEEDS[Tantares]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 0.8 } +} \ No newline at end of file diff --git a/GameData/RealAntennas/Parts/TantaresSP.cfg b/GameData/RealAntennas/Parts/TantaresSP.cfg new file mode 100644 index 0000000..56642c6 --- /dev/null +++ b/GameData/RealAntennas/Parts/TantaresSP.cfg @@ -0,0 +1,55 @@ +// Opal High Gain Antenna +@PART[1mv_high_gain_antenna_srf_1]:NEEDS[TantaresSP]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 2.0 } +} + +// Beryl High Gain Antenna +@PART[3mv_high_gain_antenna_srf_1]:NEEDS[TantaresSP]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 2.5 } +} + +// Amethyst High Gain Antenna +@PART[4mv_v_high_gain_antenna_srf_1]:NEEDS[TantaresSP]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 1.8 } +} + +// Quartz Low Gain Antenna +@PART[ye2a_low_gain_antenna_srf_1]:NEEDS[TantaresSP]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 0.8 } +} + +// Quartz Low Gain Ribbon Antenna +@PART[ye2a_low_gain_ribbon_antenna_srf_1]:NEEDS[TantaresSP]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 2.0 } +} + +// Emerald High Gain Antenna +@PART[ye8_high_gain_antenna_srf_2]:NEEDS[TantaresSP]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 1.85 } +} + +// Emerald Low Gain Antenna A||Emerald Low Gain Antenna B||Emerald Low Gain Antenna C +@PART[ye8_low_gain_antenna_srf_1|ye8_low_gain_antenna_srf_2|ye8_low_gain_antenna_srf_3]:NEEDS[TantaresSP]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %referenceGain = 1.0 } +} + +// Pearl Size 0 High Gain Antenna +@PART[1f_high_gain_antenna_s0_1]:NEEDS[TantaresSP]:FOR[RealAntennas] +{ + !MODULE[ModuleDataTransmitter] {} + %MODULE[ModuleRealAntenna] { %antennaDiameter = 1.25 } +} \ No newline at end of file