Add multipart machines system (#35969)

This commit is contained in:
BarryNorfolk
2025-06-02 16:02:41 +02:00
committed by GitHub
parent 9a38d66df2
commit b2d0f7ed28
32 changed files with 987 additions and 331 deletions

View File

@@ -0,0 +1,18 @@
# Spawn on client side when users examine a multipart machine
# If a sprite is given then the default component's value will be overriden
- type: entity
id: MultipartMachineGhost
categories: [ HideSpawnMenu ]
components:
- type: MultipartMachineGhost
- type: Sprite
sprite: Markers/cross.rsi
layers:
- state: green
color: "#FFFFFF80"
- type: TimedDespawn
lifetime: 5
- type: Clickable
- type: Tag
tags:
- HideContextMenu

View File

@@ -43,7 +43,6 @@
map: [ "enum.ParticleAcceleratorVisualLayers.Unlit" ]
shader: unshaded
visible: false
- type: ParticleAcceleratorPart
- type: ParticleAcceleratorPartVisuals
stateBase: unlit
- type: Construction

View File

@@ -27,6 +27,50 @@
layoutId: ParticleAccelerator
- type: AccessReader
access: [["Engineering"]]
- type: MultipartMachine
parts:
enum.AcceleratorParts.EndCap:
component: ParticleAcceleratorEndCap
offset: 1, -1
rotation: -90
ghostProto: ParticleAcceleratorEndCap
graph: ParticleAcceleratorEndCap
expectedNode: completed
enum.AcceleratorParts.FuelChamber:
component: ParticleAcceleratorFuelChamber
offset: 0, -1
rotation: -90
ghostProto: ParticleAcceleratorFuelChamber
graph: ParticleAcceleratorFuelChamber
expectedNode: completed
enum.AcceleratorParts.PowerBox:
component: ParticleAcceleratorPowerBox
offset: -1, -1
rotation: -90
ghostProto: ParticleAcceleratorPowerBox
graph: ParticleAcceleratorPowerBox
expectedNode: completed
enum.AcceleratorParts.PortEmitter:
component: ParticleAcceleratorEmitter
offset: -2, -2
rotation: -90
ghostProto: ParticleAcceleratorEmitterPort
graph: ParticleAcceleratorEmitterPort
expectedNode: completed
enum.AcceleratorParts.ForeEmitter:
component: ParticleAcceleratorEmitter
offset: -2, -1
rotation: -90
ghostProto: ParticleAcceleratorEmitterFore
graph: ParticleAcceleratorEmitterFore
expectedNode: completed
enum.AcceleratorParts.StarboardEmitter:
component: ParticleAcceleratorEmitter
offset: -2, 0
rotation: -90
ghostProto: ParticleAcceleratorEmitterStarboard
graph: ParticleAcceleratorEmitterStarboard
expectedNode: completed
# Unfinished

View File

@@ -10,6 +10,7 @@
emitterType: Port
- type: Construction
graph: ParticleAcceleratorEmitterPort
- type: MultipartMachinePart
- type: entity
parent: ParticleAcceleratorFinishedPart
@@ -23,6 +24,7 @@
emitterType: Fore
- type: Construction
graph: ParticleAcceleratorEmitterFore
- type: MultipartMachinePart
- type: entity
parent: ParticleAcceleratorFinishedPart
@@ -36,6 +38,7 @@
emitterType: Starboard
- type: Construction
graph: ParticleAcceleratorEmitterStarboard
- type: MultipartMachinePart
# Unfinished
@@ -50,6 +53,7 @@
sprite: Structures/Power/Generation/PA/emitter_port.rsi
- type: Construction
graph: ParticleAcceleratorEmitterPort
- type: MultipartMachinePart
- type: entity
parent: ParticleAcceleratorUnfinishedBase
@@ -62,6 +66,7 @@
sprite: Structures/Power/Generation/PA/emitter_fore.rsi
- type: Construction
graph: ParticleAcceleratorEmitterFore
- type: MultipartMachinePart
- type: entity
parent: ParticleAcceleratorUnfinishedBase
@@ -74,3 +79,4 @@
sprite: Structures/Power/Generation/PA/emitter_starboard.rsi
- type: Construction
graph: ParticleAcceleratorEmitterStarboard
- type: MultipartMachinePart

View File

@@ -12,6 +12,7 @@
- type: ParticleAcceleratorEndCap
- type: Construction
graph: ParticleAcceleratorEndCap
- type: MultipartMachinePart
# Unfinished
@@ -26,3 +27,4 @@
sprite: Structures/Power/Generation/PA/end_cap.rsi
- type: Construction
graph: ParticleAcceleratorEndCap
- type: MultipartMachinePart

View File

@@ -9,6 +9,7 @@
- type: ParticleAcceleratorFuelChamber
- type: Construction
graph: ParticleAcceleratorFuelChamber
- type: MultipartMachinePart
# Unfinished
@@ -23,3 +24,4 @@
sprite: Structures/Power/Generation/PA/fuel_chamber.rsi
- type: Construction
graph: ParticleAcceleratorFuelChamber
- type: MultipartMachinePart

View File

@@ -17,6 +17,7 @@
nodeGroupID: MVPower
- type: Construction
graph: ParticleAcceleratorPowerBox
- type: MultipartMachinePart
- type: entity
parent: ParticleAcceleratorUnfinishedBase
@@ -29,3 +30,4 @@
sprite: Structures/Power/Generation/PA/power_box.rsi
- type: Construction
graph: ParticleAcceleratorPowerBox
- type: MultipartMachinePart