Add puddle drawdepth (#32369)

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
metalgearsloth
2025-01-27 23:44:16 +11:00
committed by GitHub
parent 79f8ea0572
commit 5733b47f06
8 changed files with 27 additions and 17 deletions

View File

@@ -9,32 +9,42 @@ namespace Content.Shared.DrawDepth
/// <summary> /// <summary>
/// This is for sub-floors, the floors you see after prying off a tile. /// This is for sub-floors, the floors you see after prying off a tile.
/// </summary> /// </summary>
LowFloors = DrawDepthTag.Default - 11, LowFloors = DrawDepthTag.Default - 14,
// various entity types that require different // various entity types that require different
// draw depths, as to avoid hiding // draw depths, as to avoid hiding
#region SubfloorEntities #region SubfloorEntities
ThickPipe = DrawDepthTag.Default - 10, ThickPipe = DrawDepthTag.Default - 13,
ThickWire = DrawDepthTag.Default - 9, ThickWire = DrawDepthTag.Default - 12,
ThinPipe = DrawDepthTag.Default - 8, ThinPipe = DrawDepthTag.Default - 11,
ThinWire = DrawDepthTag.Default - 7, ThinWire = DrawDepthTag.Default - 10,
#endregion #endregion
/// <summary> /// <summary>
/// Things that are beneath regular floors. /// Things that are beneath regular floors.
/// </summary> /// </summary>
BelowFloor = DrawDepthTag.Default - 7, BelowFloor = DrawDepthTag.Default - 9,
/// <summary> /// <summary>
/// Used for entities like carpets. /// Used for entities like carpets.
/// </summary> /// </summary>
FloorTiles = DrawDepthTag.Default - 6, FloorTiles = DrawDepthTag.Default - 8,
/// <summary> /// <summary>
/// Things that are actually right on the floor, like puddles. This does not mean objects like /// Things that are actually right on the floor, like ice crust or atmos devices. This does not mean objects like
/// tables, even though they are technically "on the floor". /// tables, even though they are technically "on the floor".
/// </summary> /// </summary>
FloorObjects = DrawDepthTag.Default - 5, FloorObjects = DrawDepthTag.Default - 7,
/// <summary>
// Discrete drawdepth to avoid z-fighting with other FloorObjects but also above floor entities.
/// </summary>
Puddles = DrawDepthTag.Default - 6,
/// <summary>
// Objects that are on the floor, but should render above puddles. This includes kudzu, holopads, telepads and levers.
/// </summary>
HighFloorObjects = DrawDepthTag.Default - 5,
DeadMobs = DrawDepthTag.Default - 4, DeadMobs = DrawDepthTag.Default - 4,

View File

@@ -101,7 +101,7 @@
layers: layers:
- sprite: Fluids/wet_floor_sparkles.rsi - sprite: Fluids/wet_floor_sparkles.rsi
state: sparkles state: sparkles
drawdepth: FloorObjects drawdepth: Puddles
color: "#FFFFFF80" color: "#FFFFFF80"
- type: entity - type: entity
@@ -120,7 +120,7 @@
layers: layers:
- sprite: Fluids/puddle.rsi - sprite: Fluids/puddle.rsi
state: splat0 state: splat0
drawdepth: FloorObjects drawdepth: Puddles
color: "#FFFFFF80" color: "#FFFFFF80"
- type: Physics - type: Physics
bodyType: Static bodyType: Static

View File

@@ -116,7 +116,7 @@
parent: Kudzu parent: Kudzu
components: components:
- type: Sprite - type: Sprite
drawdepth: FloorObjects drawdepth: HighFloorObjects
sprite: Objects/Misc/kudzuflower.rsi sprite: Objects/Misc/kudzuflower.rsi
state: kudzu_11 state: kudzu_11
- type: Kudzu - type: Kudzu

View File

@@ -7,7 +7,7 @@
- type: Sprite - type: Sprite
noRot: true noRot: true
sprite: Structures/Machines/artifact_analyzer.rsi sprite: Structures/Machines/artifact_analyzer.rsi
drawdepth: FloorObjects drawdepth: HighFloorObjects
layers: layers:
- state: icon - state: icon
- state: unshaded - state: unshaded

View File

@@ -22,7 +22,7 @@
- type: StationAiVision - type: StationAiVision
- type: Sprite - type: Sprite
sprite: Structures/Machines/holopad.rsi sprite: Structures/Machines/holopad.rsi
drawdepth: FloorObjects drawdepth: HighFloorObjects
snapCardinals: true snapCardinals: true
layers: layers:
- state: base - state: base

View File

@@ -152,7 +152,7 @@
- type: Clickable - type: Clickable
- type: InteractionOutline - type: InteractionOutline
- type: Sprite - type: Sprite
drawdepth: FloorObjects drawdepth: HighFloorObjects
sprite: Structures/conveyor.rsi sprite: Structures/conveyor.rsi
layers: layers:
- state: switch-off - state: switch-off

View File

@@ -22,7 +22,7 @@
- MachineMask - MachineMask
- type: Sprite - type: Sprite
sprite: Structures/cargo_telepad.rsi sprite: Structures/cargo_telepad.rsi
drawdepth: FloorObjects drawdepth: HighFloorObjects
layers: layers:
- state: offline - state: offline
map: [ "enum.CargoTelepadLayers.Base" ] map: [ "enum.CargoTelepadLayers.Base" ]

View File

@@ -14,7 +14,7 @@
- type: Sprite - type: Sprite
sprite: Structures/conveyor.rsi sprite: Structures/conveyor.rsi
state: conveyor_started_cw state: conveyor_started_cw
drawdepth: FloorObjects drawdepth: HighFloorObjects
- type: ApcPowerReceiver - type: ApcPowerReceiver
- type: ExtensionCableReceiver - type: ExtensionCableReceiver
- type: Physics - type: Physics