From 51774cdf80c29ea9a4e1587603b72b2efcdd94a8 Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Sun, 24 May 2020 20:10:50 -0700 Subject: [PATCH] Add KerbalFoundries compatability patch --- .../ReStock/Compatibility/KerbalFoundries.cfg | 121 ++++++++++++++++++ Distribution/Restock/changelog.txt | 1 + 2 files changed, 122 insertions(+) create mode 100644 Distribution/Restock/GameData/ReStock/Compatibility/KerbalFoundries.cfg diff --git a/Distribution/Restock/GameData/ReStock/Compatibility/KerbalFoundries.cfg b/Distribution/Restock/GameData/ReStock/Compatibility/KerbalFoundries.cfg new file mode 100644 index 00000000..ff0fa625 --- /dev/null +++ b/Distribution/Restock/GameData/ReStock/Compatibility/KerbalFoundries.cfg @@ -0,0 +1,121 @@ +// KerbalFoundries has an optional patch for the stock wheels, this fixes it to work with Restock models + +//LT-05 -- 'micro' +@PART[miniLandingLeg]:AFTER[KerbalFoundries-Patches] +{ + + @MODULE[KSPWheelSuspension] + { + @suspensionName = leg1_piston + } + @MODULE[KSPWheelDeployment] + { + @animationName = restock-leg-1-deploy + } +} + +//LT-01 -- 'medium' +@PART[landingLeg1]:AFTER[KerbalFoundries-Patches] +{ + @MODULE[KSPWheelSuspension] + { + @suspensionName = Piston + } + @MODULE[KSPWheelSuspsension] + { + @animationName = Deploy + } + @MODULE[KSPWheelBogey] + { + @bogeyName = foot + @bogeyRotAxis = 1, 0, 0 + @rotationOffset = 180 + @restingRotation = 90 + } +} + +//LT-02 -- 'large' +@PART[landingLeg1-2]:AFTER[KerbalFoundries-Patches] +{ + @MODULE[KSPWheelSuspension] + { + @suspensionName = leg3_piston + } + @MODULE[KSPWheelDeployment] + { + animationName = restock-leg-3-deploy + } + @MODULE[KSPWheelBogey] + { + @bogeyName = leg3_foot + @bogeyRotAxis = 1, 0, 0 + @rotationOffset = 0 + @restingRotation = 0 + } +} + +//roverWheelS2 - the probe wheels +@PART[roverWheel2]:AFTER[KerbalFoundries-Patches] +{ + @MODULE[KSPWheelRotation] + { + @wheelMeshName = WheelPivot + } + @MODULE[KSPWheelSuspension] + { + @suspensionName = SuspensionPivot + } + @MODULE[KSPWheelSteering] + { + @steeringName = SteeringPivot + } + @MODULE[KSPWheelDamage] + { + @wheelName = Wheel + @bustedWheelName = WheelBusted + } +} + +//roverWheelM1 - the doughnut +@PART[roverWheel1]:AFTER[KerbalFoundries-Patches] +{ + @MODULE[KSPWheelRotation] + { + @wheelMeshName = WheelPivot + } + @MODULE[KSPWheelSuspension] + { + @suspensionName = SuspensionPivot + } + @MODULE[KSPWheelSteering] + { + @steeringName = SteeringPivot + } + @MODULE[KSPWheelDamage] + { + @wheelName = Wheel + @bustedWheelName = WheelBusted + } +} + +//roverWheelTR-2L - truck wheels +@PART[wheelMed]:AFTER[KerbalFoundries-Patches] +{ + @MODULE[KSPWheelRotation] + { + @wheelMeshName = WheelPivot + } + @MODULE[KSPWheelSuspension] + { + @suspensionName = SuspensionPivot + } + @MODULE[KSPWheelSteering] + { + @steeringName = SteeringPivot + } + @MODULE[KSPWheelDamage] + { + @wheelName = Wheel + @bustedWheelName = WheelBusted + } +} \ No newline at end of file diff --git a/Distribution/Restock/changelog.txt b/Distribution/Restock/changelog.txt index af883d08..04f20d95 100644 --- a/Distribution/Restock/changelog.txt +++ b/Distribution/Restock/changelog.txt @@ -3,6 +3,7 @@ v1.1.2 - Fixed engine plate compatability with stock vessels by moving boattails to the end of the variant list - Fixed engine plate negative masses when used in KSP 1.8.x by setting the part mass to the 1.9.x values. This comes at the expense of affecting part balance when used in 1.8.x. - Reworked hierarchy of LT-1 and LT-2 landing legs to help address weakness issues (#858) +- Added patch for KerbalFoundries to work with ReStock models v1.1.1 ------