Skip to content

Commit

Permalink
Merge pull request #18 from KSP-RO/needs
Browse files Browse the repository at this point in the history
Only load one HIAD model at a time
  • Loading branch information
Capkirk123 authored Sep 15, 2024
2 parents 38aadd0 + cd00f8c commit 70da244
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions GameData/ROHeatshields/Parts/AdjustableHIAD.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -124,7 +125,7 @@ PART
CORE
{
variant = Heatshield
model = HIAD-Stock
model:NEEDS[!ReStock] = HIAD-Stock
model:NEEDS[ReStock] = HIAD-ReStock
}

Expand All @@ -151,29 +152,29 @@ 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
//restrictedNode = bottom //eh, let people do weird stuff with it
disableAfterPlaying = false
}
MODULE
MODULE: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
//restrictedNode = bottom //eh, let people do weird stuff with it
disableAfterPlaying = false
}

Expand Down

0 comments on commit 70da244

Please sign in to comment.