]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cryotube draw-depth (#37240)
authorArchee <archee3@hotmail.co.uk>
Wed, 7 May 2025 02:01:09 +0000 (03:01 +0100)
committerGitHub <noreply@github.com>
Wed, 7 May 2025 02:01:09 +0000 (22:01 -0400)
* removes changing draw depth when occupied

* changes collision to square

* small texture changes
fixes slight perspective size when comparing side columns to the direct column facing the camera
removes the baked in pipe exit (the yml's sprite adds it anyway)

Content.Client/Medical/Cryogenics/CryoPodSystem.cs
Resources/Prototypes/Entities/Structures/Machines/Medical/cryo_pod.yml
Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-off.png
Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-on.png
Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-open.png

index a9f3c76b48f41b181008fff8e4bb0b6471b51df6..4e924684712fbf90ae3ee28b527a51bd4c6eaff6 100644 (file)
@@ -3,11 +3,10 @@ using Content.Shared.Emag.Systems;
 using Content.Shared.Medical.Cryogenics;
 using Content.Shared.Verbs;
 using Robust.Client.GameObjects;
-using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
 
 namespace Content.Client.Medical.Cryogenics;
 
-public sealed class CryoPodSystem: SharedCryoPodSystem
+public sealed class CryoPodSystem : SharedCryoPodSystem
 {
     [Dependency] private readonly SharedAppearanceSystem _appearance = default!;
 
@@ -63,11 +62,9 @@ public sealed class CryoPodSystem: SharedCryoPodSystem
         {
             args.Sprite.LayerSetState(CryoPodVisualLayers.Base, "pod-open");
             args.Sprite.LayerSetVisible(CryoPodVisualLayers.Cover, false);
-            args.Sprite.DrawDepth = (int) DrawDepth.Objects;
         }
         else
         {
-            args.Sprite.DrawDepth = (int) DrawDepth.Mobs;
             args.Sprite.LayerSetState(CryoPodVisualLayers.Base, isOn ? "pod-on" : "pod-off");
             args.Sprite.LayerSetState(CryoPodVisualLayers.Cover, isOn ? "cover-on" : "cover-off");
             args.Sprite.LayerSetVisible(CryoPodVisualLayers.Cover, true);
index 00b60c56ba71bc8e471af082f4eb6fdc21775549..bdfbc39678f780a6e02aa9c9f4defbe3beda8b44 100644 (file)
@@ -30,7 +30,7 @@
       fix1:
         shape:
           !type:PhysShapeAabb
-          bounds: "-0.5,-0.5,0.5,0.90"
+          bounds: "-0.5,-0.5,0.5,0.5"
         density: 200
         mask:
           - MachineMask
index c3194e04516b094d33e58d5de75b2859958aeab5..eca594f1cdf1b711139143c9ca8de0a45e42c94f 100644 (file)
Binary files a/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-off.png and b/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-off.png differ
index 2411bd3dabb92f65bf1c4780f0818eb760c126eb..aed28a5be2edf305ef7f2e983535208c42af87b1 100644 (file)
Binary files a/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-on.png and b/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-on.png differ
index cd84d7b3d6b3ce6a000d6e3c174239ac06cf9974..3f344181e3968ca4469477db88d2267d49307bc7 100644 (file)
Binary files a/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-open.png and b/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-open.png differ