Skip to content

Commit 4863e97

Browse files
author
Robin "sumghai" Chang
committed
Umbilical animate on decouple / fix rescale bug
1 parent d074924 commit 4863e97

2 files changed

Lines changed: 26 additions & 104 deletions

File tree

GameData/SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/AvionicsRing.cfg

Lines changed: 12 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@ PART
66

77
MODEL
88
{
9-
model = SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/AvionicsRing
10-
scale = 0.8, 0.8, 0.8
9+
model = SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/AvionicsRing
10+
scale = 1.25, 1.25, 1.25
1111
}
12-
12+
1313
MODEL
1414
{
15-
model = SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/SM_Umbilical
16-
scale = 0.8, 0.8, 0.8
17-
position = 0.0, 0.175, -0.96493
15+
model = SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/SM_Umbilical
16+
scale = 1.25, 1.25, 1.25
17+
position = 0.0, 0.21875, -1.2061625
1818
}
19-
20-
node_stack_top = 0.0, 0.069, 0.0, 0.0, 1.0, 0.0
19+
20+
rescaleFactor = 1.0
21+
22+
node_stack_top = 0.0, 0.08625, 0.0, 0.0, 1.0, 0.0
2123
node_stack_bottom = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0
2224

2325
TechRequired = specializedControl
@@ -46,8 +48,6 @@ PART
4648
4749
stageOffset = 1
4850
childStageOffset = 1
49-
50-
//vesselType = Debris
5151
5252
fx_gasBurst_white = 0.0, 0.875, 0.0, 0.0, 1.0, 0.0, decouple
5353
sound_decoupler_fire = decouple
@@ -81,48 +81,10 @@ PART
8181
8282
MODULE
8383
{
84-
name = ModuleGenerator
85-
isAlwaysActive = false
86-
activateGUIName = Turn on Fuel Cell
87-
shutdownGUIName = Turn off Fuel Cell
88-
INPUT_RESOURCE
89-
{
90-
name = LiquidFuel
91-
rate = 0.009
92-
}
93-
INPUT_RESOURCE
94-
{
95-
name = Oxidizer
96-
rate = 0.011
97-
}
98-
OUTPUT_RESOURCE
99-
{
100-
name = ElectricCharge
101-
rate = 10
102-
}
103-
}
104-
105-
MODULE
106-
{
107-
name = ModuleDecouple
84+
name = ModuleAnimatedDecoupler
10885
ejectionForce = 200
10986
explosiveNodeID = top
11087
staged = false
88+
animationName = SDHI_Umbilical
11189
}
112-
113-
// Test animation
114-
// Replace with "play on decouple" capability
115-
116-
MODULE
117-
{
118-
name = FSanimateGeneric
119-
animationName = SDHI_Umbilical
120-
startEventGUIName = [TEST] Detach Umbilical
121-
endEventGUIName = [TEST] Reattach Umbilical
122-
toggleActionName = Toggle Umbilical
123-
customAnimationSpeed = 3.0
124-
moduleID = 0
125-
startDeployed = false
126-
playAnimationOnEditorSpawn = false
127-
}
12890
}

GameData/SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/ServiceModule.cfg

Lines changed: 14 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@ PART
33
name = SDHI_2.5_ServiceModule
44
module = Part
55
author = sumghai
6-
7-
6+
87
MODEL
98
{
10-
model = SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/ServiceModule
11-
scale = 0.8, 0.8, 0.8
9+
model = SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/ServiceModule
10+
scale = 1.25, 1.25, 1.25
1211
}
13-
12+
1413
MODEL
1514
{
16-
model = SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/SM_Umbilical
17-
scale = 0.8, 0.8, 0.8
18-
position = 0.0, 0.45, -0.96493
15+
model = SDHI/Service Module System/Parts/SDHI_2.5_ServiceModule/SM_Umbilical
16+
scale = 1.25, 1.25, 1.25
17+
position = 0.0, 0.5625, -1.206125
1918
}
20-
21-
node_stack_top = 0.0, 0.344, 0.0, 0.0, 1.0, 0.0
22-
node_stack_bottom = 0.0, -0.675, 0.0, 0.0, 1.0, 0.0
19+
20+
rescaleFactor = 1.0
21+
22+
node_stack_top = 0.0, 0.43, 0.0, 0.0, 1.0, 0.0
23+
node_stack_bottom = 0.0, -0.84375, 0.0, 0.0, 1.0, 0.0
2324

2425
TechRequired = heavierRocketry
2526
entryCost = 7500
@@ -47,8 +48,6 @@ PART
4748

4849
stageOffset = 1
4950
childStageOffset = 1
50-
51-
//vesselType = Debris
5251

5352
fx_gasBurst_white = 0.0, 0.875, 0.0, 0.0, 1.0, 0.0, decouple
5453
sound_decoupler_fire = decouple
@@ -103,49 +102,10 @@ PART
103102

104103
MODULE
105104
{
106-
name = ModuleGenerator
107-
isAlwaysActive = false
108-
activateGUIName = Turn on Fuel Cell
109-
shutdownGUIName = Turn off Fuel Cell
110-
INPUT_RESOURCE
111-
{
112-
name = LiquidFuel
113-
rate = 0.009
114-
}
115-
INPUT_RESOURCE
116-
{
117-
name = Oxidizer
118-
rate = 0.011
119-
}
120-
OUTPUT_RESOURCE
121-
{
122-
name = ElectricCharge
123-
rate = 10
124-
}
125-
}
126-
127-
MODULE
128-
{
129-
name = ModuleDecouple
105+
name = ModuleAnimatedDecoupler
130106
ejectionForce = 200
131107
explosiveNodeID = top
132108
staged = false
109+
animationName = SDHI_Umbilical
133110
}
134-
135-
136-
// Test animation
137-
// Replace with "play on decouple" capability
138-
139-
MODULE
140-
{
141-
name = FSanimateGeneric
142-
animationName = SDHI_Umbilical
143-
startEventGUIName = [TEST] Detach Umbilical
144-
endEventGUIName = [TEST] Reattach Umbilical
145-
toggleActionName = Toggle Umbilical
146-
customAnimationSpeed = 3.0
147-
moduleID = 0
148-
startDeployed = false
149-
playAnimationOnEditorSpawn = false
150-
}
151111
}

0 commit comments

Comments
 (0)