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>
/// This is for sub-floors, the floors you see after prying off a tile.
/// </summary>
LowFloors = DrawDepthTag.Default - 11,
LowFloors = DrawDepthTag.Default - 14,
// various entity types that require different
// draw depths, as to avoid hiding
#region SubfloorEntities
ThickPipe = DrawDepthTag.Default - 10,
ThickWire = DrawDepthTag.Default - 9,
ThinPipe = DrawDepthTag.Default - 8,
ThinWire = DrawDepthTag.Default - 7,
ThickPipe = DrawDepthTag.Default - 13,
ThickWire = DrawDepthTag.Default - 12,
ThinPipe = DrawDepthTag.Default - 11,
ThinWire = DrawDepthTag.Default - 10,
#endregion
/// <summary>
/// Things that are beneath regular floors.
/// </summary>
BelowFloor = DrawDepthTag.Default - 7,
BelowFloor = DrawDepthTag.Default - 9,
/// <summary>
/// Used for entities like carpets.
/// </summary>
FloorTiles = DrawDepthTag.Default - 6,
FloorTiles = DrawDepthTag.Default - 8,
/// <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".
/// </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,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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