Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only load one HIAD model at a time #18

Merged
merged 3 commits into from
Sep 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading