diff --git a/GameData/RealSolarSystem/RSSKopernicus/NavballSwitchAltitude.cfg b/GameData/RealSolarSystem/RSSKopernicus/NavballSwitchAltitude.cfg index dd3dbcd3..ba759bca 100644 --- a/GameData/RealSolarSystem/RSSKopernicus/NavballSwitchAltitude.cfg +++ b/GameData/RealSolarSystem/RSSKopernicus/NavballSwitchAltitude.cfg @@ -1,7 +1,7 @@ // Compute default surface/orbital navball switching heights. @Kopernicus:AFTER[RealSolarSystem] { - @Body:HAS[@Atmosphere] + @Body:HAS[@Atmosphere:HAS[#maxAltitude]] { // For atmospheric bodies, set to 80% the height of the atmosphere. @Properties:HAS[~navballSwitchRadiusMult,~navballSwitchRadiusMultLow] @@ -13,6 +13,30 @@ @navballSwitchRadiusMultLow *= 0.95 } } + @Body:HAS[@Atmosphere:HAS[#altitude]] + { + // For atmospheric bodies, set to 80% the height of the atmosphere. + @Properties:HAS[~navballSwitchRadiusMult,~navballSwitchRadiusMultLow] + { + navballSwitchRadiusMult = #$../Atmosphere/altitude$ + @navballSwitchRadiusMult *= 0.8 + @navballSwitchRadiusMult /= #$radius$ + navballSwitchRadiusMultLow = #$navballSwitchRadiusMult$ + @navballSwitchRadiusMultLow *= 0.95 + } + } + @Body:HAS[@Atmosphere:HAS[#atmosphereDepth]] + { + // For atmospheric bodies, set to 80% the height of the atmosphere. + @Properties:HAS[~navballSwitchRadiusMult,~navballSwitchRadiusMultLow] + { + navballSwitchRadiusMult = #$../Atmosphere/atmosphereDepth$ + @navballSwitchRadiusMult *= 0.8 + @navballSwitchRadiusMult /= #$radius$ + navballSwitchRadiusMultLow = #$navballSwitchRadiusMult$ + @navballSwitchRadiusMultLow *= 0.95 + } + } @Body:HAS[!Atmosphere] { // Clamp minimum switch height of non-atmospheric bodies to 1 km. diff --git a/GameData/RealSolarSystem/RSSKopernicusSettings.cfg b/GameData/RealSolarSystem/RSSKopernicusSettings.cfg index f0ed89c5..76d32f16 100644 --- a/GameData/RealSolarSystem/RSSKopernicusSettings.cfg +++ b/GameData/RealSolarSystem/RSSKopernicusSettings.cfg @@ -38,5 +38,21 @@ // We do not set the periods because nothing good can come out of // inconsistent orbital elements. - !Body,* {} + !Body[Sun] {} + !Body[Kerbin] {} + !Body[Moho] {} + !Body[Duna] {} + !Body[Eve] {} + !Body[Ike] {} + !Body[Gilly] {} + !Body[Mun] {} + !Body[Minmus] {} + !Body[Jool] {} + !Body[Eeloo] {} + !Body[Laythe] {} + !Body[Vall] {} + !Body[Tylo] {} + !Body[Bop] {} + !Body[Pol] {} + !Body[Dres] {} }