From 54b59cdddbb7937836734baa8d1143e6e5d77178 Mon Sep 17 00:00:00 2001 From: Capkirk123 Date: Mon, 2 Sep 2024 11:28:23 -0400 Subject: [PATCH 1/3] Disable ReStock module is ReStock isn't present --- GameData/ROHeatshields/Parts/AdjustableHIAD.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg b/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg index 28370b2..e6391f5 100644 --- a/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg +++ b/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg @@ -166,7 +166,7 @@ PART } MODULE { - name = ModuleAnimateGeneric + name = ModuleAnimateGeneric:NEEDS[ReStock] animationName = Inflate isOneShot = false startEventGUIName = Inflate Heat Shield (ReStock) From 58530c0d5e0c0a051671c873a390668426d84eac Mon Sep 17 00:00:00 2001 From: Capkirk123 Date: Fri, 6 Sep 2024 16:38:17 -0400 Subject: [PATCH 2/3] Only load one model at a time for drag cube reasons --- .../ROHeatshields/Parts/AdjustableHIAD.cfg | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg b/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg index e6391f5..40e2acb 100644 --- a/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg +++ b/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg @@ -124,7 +124,7 @@ PART CORE { variant = Heatshield - model = HIAD-Stock + model:NEEDS[!ReStock] = HIAD-Stock model:NEEDS[ReStock] = HIAD-ReStock } @@ -151,27 +151,27 @@ PART } //ReStock and Squad use different animation names - //So, make two animate modules. It's not pretty, but it works... - MODULE + //only load the appropriate one to avoid drag cube issues I guess + MODULE:NEEDS[!ReStock] { name = ModuleAnimateGeneric animationName = InflatableHS isOneShot = false - startEventGUIName = Inflate Heat Shield (Squad) - endEventGUIName = Deflate Heat Shield (Squad) - actionGUIName = Inflate Heat Shield (Squad) + startEventGUIName = Inflate Heat Shield + endEventGUIName = Deflate Heat Shield + actionGUIName = Inflate Heat Shield allowAnimationWhileShielded = False restrictedNode = top disableAfterPlaying = false } - MODULE + MODULE:NEEDS[ReStock] { - name = ModuleAnimateGeneric:NEEDS[ReStock] + name = ModuleAnimateGeneric animationName = Inflate isOneShot = false - startEventGUIName = Inflate Heat Shield (ReStock) - endEventGUIName = Deflate Heat Shield (ReStock) - actionGUIName = Inflate Heat Shield (ReStock) + startEventGUIName = Inflate Heat Shield + endEventGUIName = Deflate Heat Shield + actionGUIName = Inflate Heat Shield allowAnimationWhileShielded = False restrictedNode = top disableAfterPlaying = false From cd00f8c5c24c2505fef372a36fe679078812b024 Mon Sep 17 00:00:00 2001 From: Capkirk123 Date: Sat, 7 Sep 2024 13:26:33 -0400 Subject: [PATCH 3/3] Fix wrong restricted node and more patches --- GameData/ROHeatshields/Parts/AdjustableHIAD.cfg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg b/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg index 40e2acb..ed9e508 100644 --- a/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg +++ b/GameData/ROHeatshields/Parts/AdjustableHIAD.cfg @@ -115,7 +115,8 @@ PART currentDiameter = 10.0 currentVariant = Heatshield currentNose = Model-None - currentCore = HIAD-Stock + currentCore:NEEDS[!ReStock] = HIAD-Stock + currentCore:NEEDS[ReStock] = HIAD-ReStock currentMount = Model-None currentNoseTexture = default currentCoreTexture = default @@ -161,7 +162,7 @@ PART endEventGUIName = Deflate Heat Shield actionGUIName = Inflate Heat Shield allowAnimationWhileShielded = False - restrictedNode = top + //restrictedNode = bottom //eh, let people do weird stuff with it disableAfterPlaying = false } MODULE:NEEDS[ReStock] @@ -173,7 +174,7 @@ PART endEventGUIName = Deflate Heat Shield actionGUIName = Inflate Heat Shield allowAnimationWhileShielded = False - restrictedNode = top + //restrictedNode = bottom //eh, let people do weird stuff with it disableAfterPlaying = false }