Adds explicit draw depth to certain entities (#5489)

* Adds explicit draw depth to certain entities

* a little documentation update
This commit is contained in:
Flipp Syder
2021-11-25 17:28:13 -08:00
committed by GitHub
parent 1638498273
commit f98057615f
4 changed files with 23 additions and 14 deletions

View File

@@ -9,11 +9,19 @@ namespace Content.Shared.DrawDepth
/// <summary>
/// This is for sub-floors, the floors you see after prying off a tile.
/// </summary>
LowFloors = DrawDepthTag.Default - 6,
LowFloors = DrawDepthTag.Default - 10,
// various entity types that require different
// draw depths, as to avoid hiding
#region SubfloorEntities
ThickPipe = DrawDepthTag.Default - 9,
ThickWire = DrawDepthTag.Default - 8,
ThinPipe = DrawDepthTag.Default - 7,
ThinWire = DrawDepthTag.Default - 6,
#endregion
/// <summary>
/// Things that are beneath regular floors, such as wires or pipes. vents/scrubbers also use this to ensure
/// that they appear below carpets.
/// Things that are beneath regular floors.
/// </summary>
BelowFloor = DrawDepthTag.Default - 5,

View File

@@ -51,7 +51,7 @@
acts: ["Destruction"]
- type: Sprite
sprite: Structures/Piping/Atmospherics/pipe.rsi
drawdepth: BelowFloor
drawdepth: ThinPipe
netsync: false
- type: Appearance
visuals:

View File

@@ -46,7 +46,7 @@
description: A huge pipe segment used for constructing disposal systems
components:
- type: Sprite
drawdepth: BelowFloor
drawdepth: ThickPipe
sprite: Structures/Piping/disposal.rsi
state: conpipe-s
- type: DisposalTransit
@@ -70,7 +70,7 @@
description: A pipe that tags entities for routing
components:
- type: Sprite
drawdepth: BelowFloor
drawdepth: ThickPipe
sprite: Structures/Piping/disposal.rsi
state: conpipe-tagger
- type: DisposalTagger
@@ -98,7 +98,7 @@
description: A pipe trunk used as an entry point for disposal systems
components:
- type: Sprite
drawdepth: BelowFloor
drawdepth: ThickPipe
sprite: Structures/Piping/disposal.rsi
state: conpipe-t
- type: DisposalEntry
@@ -122,7 +122,7 @@
description: A three-way router. Entities with matching tags get routed to the side
components:
- type: Sprite
drawdepth: BelowFloor
drawdepth: ThickPipe
sprite: Structures/Piping/disposal.rsi
state: conpipe-j1s
- type: DisposalRouter
@@ -155,7 +155,7 @@
suffix: flipped
components:
- type: Sprite
drawdepth: BelowFloor
drawdepth: ThickPipe
sprite: Structures/Piping/disposal.rsi
state: conpipe-j2s
- type: DisposalRouter
@@ -185,7 +185,7 @@
description: A three-way junction. The arrow indicates where items exit
components:
- type: Sprite
drawdepth: BelowFloor
drawdepth: ThickPipe
sprite: Structures/Piping/disposal.rsi
state: conpipe-j1
- type: DisposalJunction
@@ -214,7 +214,7 @@
suffix: flipped
components:
- type: Sprite
drawdepth: BelowFloor
drawdepth: ThickPipe
sprite: Structures/Piping/disposal.rsi
state: conpipe-j2
- type: DisposalJunction
@@ -244,7 +244,7 @@
description: A three-way junction with another exit point.
components:
- type: Sprite
drawdepth: BelowFloor
drawdepth: ThickPipe
sprite: Structures/Piping/disposal.rsi
state: conpipe-y
- type: DisposalJunction
@@ -272,7 +272,7 @@
description: A tube bent at a 90 degree angle.
components:
- type: Sprite
drawdepth: BelowFloor
drawdepth: ThickPipe
sprite: Structures/Piping/disposal.rsi
state: conpipe-c
- type: DisposalBend

View File

@@ -17,7 +17,7 @@
anchored: true
- type: Sprite
netsync: false
drawdepth: BelowFloor
drawdepth: ThinWire
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
@@ -48,6 +48,7 @@
- type: Sprite
sprite: Structures/Power/Cables/hv_cable.rsi
state: hvcable_0
drawdepth: ThickWire
- type: Icon
sprite: Structures/Power/Cables/hv_cable.rsi
state: hvcable_4