add signal valve (#14830)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-03-25 23:16:27 +00:00
committed by GitHub
parent 27e5fe5767
commit 3cd30c408b
8 changed files with 168 additions and 2 deletions

View File

@@ -181,6 +181,60 @@
sound:
path: /Audio/Ambience/Objects/gas_hiss.ogg
- type: entity
parent: GasBinaryBase
id: SignalControlledValve
name: signal valve
description: A pipe with a valve that can be controlled with signals.
placement:
mode: SnapgridCenter
components:
- type: Sprite
netsync: false
sprite: Structures/Piping/Atmospherics/pump.rsi
layers:
- sprite: Structures/Piping/Atmospherics/pipe.rsi
state: pipeStraight
map: [ "enum.PipeVisualLayers.Pipe" ]
- state: pumpSignalValve
map: [ "enum.SubfloorLayers.FirstLayer", "enabled" ]
- type: Appearance
- type: GenericVisualizer
visuals:
enum.FilterVisuals.Enabled:
enabled:
True: { state: pumpSignalValveOn }
False: { state: pumpSignalValve }
- type: PipeColorVisuals
- type: GasValve
- type: SignalControlledValve
- type: SignalReceiver
inputs:
Open: []
Close: []
Toggle: []
- type: NodeContainer
nodes:
inlet:
!type:PipeNode
nodeGroupID: Pipe
pipeDirection: North
volume: 100
outlet:
!type:PipeNode
nodeGroupID: Pipe
pipeDirection: South
volume: 100
- type: Construction
graph: GasBinary
node: signalvalve
- type: AmbientSound
enabled: false
volume: -9
range: 5
sound:
path: /Audio/Ambience/Objects/gas_hiss.ogg
- type: entity
parent: GasBinaryBase
id: GasPort

View File

@@ -28,6 +28,12 @@
amount: 2
doAfter: 1
- to: signalvalve
steps:
- material: Steel
amount: 2
doAfter: 1
- to: port
steps:
- material: Steel
@@ -104,6 +110,22 @@
- tool: Welding
doAfter: 1
- node: signalvalve
entity: SignalControlledValve
edges:
- to: start
conditions:
- !type:EntityAnchored
anchored: false
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:DeleteEntity
steps:
- tool: Welding
doAfter: 1
- node: port
entity: GasPort
edges:

View File

@@ -547,6 +547,27 @@
conditions:
- !type:TileNotBlocked {}
- type: construction
id: SignalControlledValve
name: signal valve
description: Valve controlled by signal inputs.
graph: GasBinary
startNode: start
targetNode: signalvalve
category: construction-category-utilities
placementMode: SnapgridCenter
canBuildInImpassable: false
icon:
sprite: Structures/Piping/Atmospherics/pump.rsi
state: pumpSignalValve
layers:
- sprite: Structures/Piping/Atmospherics/pipe.rsi
state: pipeStraight
- sprite: Structures/Piping/Atmospherics/pump.rsi
state: pumpSignalValve
conditions:
- !type:TileNotBlocked {}
- type: construction
id: GasPort
name: connector port
@@ -655,4 +676,4 @@
canRotate: true
canBuildInImpassable: true
conditions:
- !type:WallmountCondition {}
- !type:WallmountCondition {}