Render small mobs at an appropriate layer (#8238)

This commit is contained in:
themias
2022-05-17 22:26:27 -04:00
committed by GitHub
parent 50e60638a8
commit 3db9591a48
3 changed files with 12 additions and 7 deletions

View File

@@ -23,18 +23,23 @@ namespace Content.Shared.DrawDepth
/// <summary> /// <summary>
/// Things that are beneath regular floors. /// Things that are beneath regular floors.
/// </summary> /// </summary>
BelowFloor = DrawDepthTag.Default - 5, BelowFloor = DrawDepthTag.Default - 6,
/// <summary> /// <summary>
/// Used for entities like carpets. /// Used for entities like carpets.
/// </summary> /// </summary>
FloorTiles = DrawDepthTag.Default - 4, FloorTiles = DrawDepthTag.Default - 5,
/// <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 puddles. 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 - 3, FloorObjects = DrawDepthTag.Default - 4,
/// <summary>
/// Allows small mobs like mice and drones to render under tables and chairs but above puddles and vents
/// </summary>
SmallMobs = DrawDepthTag.Default - 3,
Walls = DrawDepthTag.Default - 2, Walls = DrawDepthTag.Default - 2,

View File

@@ -656,7 +656,7 @@
- type: Speech - type: Speech
speechSounds: Squeak speechSounds: Squeak
- type: Sprite - type: Sprite
drawdepth: FloorObjects drawdepth: SmallMobs
layers: layers:
- map: ["enum.DamageStateVisualLayers.Base"] - map: ["enum.DamageStateVisualLayers.Base"]
state: mouse-0 state: mouse-0
@@ -755,7 +755,7 @@
id: MobMouse1 id: MobMouse1
components: components:
- type: Sprite - type: Sprite
drawdepth: Mobs drawdepth: SmallMobs
layers: layers:
- map: ["enum.DamageStateVisualLayers.Base"] - map: ["enum.DamageStateVisualLayers.Base"]
state: mouse-1 state: mouse-1
@@ -778,7 +778,7 @@
id: MobMouse2 id: MobMouse2
components: components:
- type: Sprite - type: Sprite
drawdepth: Mobs drawdepth: SmallMobs
layers: layers:
- map: ["enum.DamageStateVisualLayers.Base"] - map: ["enum.DamageStateVisualLayers.Base"]
state: mouse-2 state: mouse-2

View File

@@ -119,7 +119,7 @@
types: types:
Heat : 1 #per second, scales with temperature & other constants Heat : 1 #per second, scales with temperature & other constants
- type: Sprite - type: Sprite
drawdepth: Mobs drawdepth: SmallMobs
netsync: false netsync: false
layers: layers:
- state: shell - state: shell