From: Archee Date: Wed, 7 May 2025 02:01:09 +0000 (+0100) Subject: Cryotube draw-depth (#37240) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=012eeb31586ad330d9b1e24384a8ba5cf489627d;p=space-station-14.git Cryotube draw-depth (#37240) * 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) --- diff --git a/Content.Client/Medical/Cryogenics/CryoPodSystem.cs b/Content.Client/Medical/Cryogenics/CryoPodSystem.cs index a9f3c76b48..4e92468471 100644 --- a/Content.Client/Medical/Cryogenics/CryoPodSystem.cs +++ b/Content.Client/Medical/Cryogenics/CryoPodSystem.cs @@ -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); diff --git a/Resources/Prototypes/Entities/Structures/Machines/Medical/cryo_pod.yml b/Resources/Prototypes/Entities/Structures/Machines/Medical/cryo_pod.yml index 00b60c56ba..bdfbc39678 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/Medical/cryo_pod.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/Medical/cryo_pod.yml @@ -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 diff --git a/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-off.png b/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-off.png index c3194e0451..eca594f1cd 100644 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 diff --git a/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-on.png b/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-on.png index 2411bd3dab..aed28a5be2 100644 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 diff --git a/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-open.png b/Resources/Textures/Structures/Machines/Medical/cryopod.rsi/pod-open.png index cd84d7b3d6..3f344181e3 100644 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