Fix pipe connectors' appearance by making pipes screenlocked.
This is not an ideal solution because as an outsider, pipes will look wrong on rotated stations, however there's no way to fix this properly right now as far as I can see soooo...
This commit is contained in:
@@ -77,11 +77,8 @@ namespace Content.Client.Atmos.Visualizers
|
||||
|
||||
foreach (Layer layerKey in Enum.GetValues(typeof(Layer)))
|
||||
{
|
||||
var dir = ((PipeDirection) layerKey).RotatePipeDirection(xform.WorldRotation);
|
||||
var layerVisible = state.ConnectedDirections.HasDirection(dir);
|
||||
|
||||
var layer = sprite.LayerMapGet(layerKey);
|
||||
sprite.LayerSetVisible(layer, layerVisible && subfloor);
|
||||
sprite.LayerSetVisible(layer, state.ConnectedDirections.HasDirection(((PipeDirection)layerKey)) && subfloor);
|
||||
sprite.LayerSetColor(layer, color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
sprite: Structures/Piping/Atmospherics/pipe.rsi
|
||||
drawdepth: BelowFloor
|
||||
netsync: false
|
||||
noRot: true # TODO: This is a hack so pipe connectors don't look wrong.
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: PipeConnectorVisualizer
|
||||
|
||||
Reference in New Issue
Block a user