Draw muzzle flash below mobs (#33465)

* Draw muzzle flash below mobs

* Better naming

---------

Co-authored-by: Winkarst <74284083+Winkarst-cpu@users.noreply.github.co>
This commit is contained in:
Winkarst
2024-11-24 07:20:00 +03:00
committed by GitHub
parent ef89d5cc21
commit f706170ee1
2 changed files with 18 additions and 13 deletions

View File

@@ -74,33 +74,38 @@ namespace Content.Shared.DrawDepth
/// </summary>
Items = DrawDepthTag.Default + 3,
Mobs = DrawDepthTag.Default + 4,
OverMobs = DrawDepthTag.Default + 5,
/// <summary>
/// Stuff that should be drawn below mobs, but on top of items. Like muzzle flash.
/// </summary>
BelowMobs = DrawDepthTag.Default + 4,
Doors = DrawDepthTag.Default + 6,
Mobs = DrawDepthTag.Default + 5,
OverMobs = DrawDepthTag.Default + 6,
Doors = DrawDepthTag.Default + 7,
/// <summary>
/// Blast doors and shutters which go over the usual doors.
/// </summary>
BlastDoors = DrawDepthTag.Default + 7,
BlastDoors = DrawDepthTag.Default + 8,
/// <summary>
/// Stuff that needs to draw over most things, but not effects, like Kudzu.
/// </summary>
Overdoors = DrawDepthTag.Default + 8,
Overdoors = DrawDepthTag.Default + 9,
/// <summary>
/// Explosions, fire, melee swings. Whatever.
/// </summary>
Effects = DrawDepthTag.Default + 9,
Effects = DrawDepthTag.Default + 10,
Ghosts = DrawDepthTag.Default + 10,
Ghosts = DrawDepthTag.Default + 11,
/// <summary>
/// Use this selectively if it absolutely needs to be drawn above (almost) everything else. Examples include
/// the pointing arrow, the drag & drop ghost-entity, and some debug tools.
/// </summary>
Overlays = DrawDepthTag.Default + 11,
Overlays = DrawDepthTag.Default + 12,
}
}