From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Sun, 24 Nov 2024 04:20:00 +0000 (+0300) Subject: Draw muzzle flash below mobs (#33465) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f706170ee135c1b7e77034cdee51eda1146862bf;p=space-station-14.git Draw muzzle flash below mobs (#33465) * Draw muzzle flash below mobs * Better naming --------- Co-authored-by: Winkarst <74284083+Winkarst-cpu@users.noreply.github.co> --- diff --git a/Content.Shared/DrawDepth/DrawDepth.cs b/Content.Shared/DrawDepth/DrawDepth.cs index f7b1f3648a..d0d2daf5d9 100644 --- a/Content.Shared/DrawDepth/DrawDepth.cs +++ b/Content.Shared/DrawDepth/DrawDepth.cs @@ -74,33 +74,38 @@ namespace Content.Shared.DrawDepth /// Items = DrawDepthTag.Default + 3, - Mobs = DrawDepthTag.Default + 4, - - OverMobs = DrawDepthTag.Default + 5, + /// + /// Stuff that should be drawn below mobs, but on top of items. Like muzzle flash. + /// + BelowMobs = DrawDepthTag.Default + 4, + + Mobs = DrawDepthTag.Default + 5, + + OverMobs = DrawDepthTag.Default + 6, - Doors = DrawDepthTag.Default + 6, + Doors = DrawDepthTag.Default + 7, /// /// Blast doors and shutters which go over the usual doors. /// - BlastDoors = DrawDepthTag.Default + 7, + BlastDoors = DrawDepthTag.Default + 8, /// /// Stuff that needs to draw over most things, but not effects, like Kudzu. /// - Overdoors = DrawDepthTag.Default + 8, + Overdoors = DrawDepthTag.Default + 9, /// /// Explosions, fire, melee swings. Whatever. /// - Effects = DrawDepthTag.Default + 9, + Effects = DrawDepthTag.Default + 10, - Ghosts = DrawDepthTag.Default + 10, + Ghosts = DrawDepthTag.Default + 11, /// /// 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. /// - Overlays = DrawDepthTag.Default + 11, + Overlays = DrawDepthTag.Default + 12, } } diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml index 64af32883c..7d11dffbfa 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml @@ -5,7 +5,7 @@ - type: TimedDespawn lifetime: 0.4 - type: Sprite - drawdepth: Effects + drawdepth: BelowMobs layers: - shader: unshaded map: ["enum.EffectLayers.Unshaded"] @@ -983,7 +983,7 @@ - HideContextMenu - type: entity - name: laser bolt + name: laser bolt id: BulletLaser parent: BaseBullet categories: [ HideSpawnMenu ] @@ -1029,7 +1029,7 @@ - type: ProjectileSpread proto: BulletLaser count: 5 #65 heat damage if you hit all your shots, but wide spread - spread: 30 + spread: 30 - type: entity name: narrow laser barrage @@ -1051,4 +1051,4 @@ - type: ProjectileSpread proto: BulletDisablerSmg count: 3 #bit stronger than a disabler if you hit your shots you goober, still not a 2 hit stun though - spread: 9 \ No newline at end of file + spread: 9 \ No newline at end of file