From 1b36d6fe9d360279a649dcebe081cd5cb529429b Mon Sep 17 00:00:00 2001 From: Dawid Bla <46636558+DawBla@users.noreply.github.com> Date: Wed, 10 May 2023 01:54:43 +0200 Subject: [PATCH] Stop puddles and soap from blocking doors (#16258) --- Content.Shared/Doors/Systems/SharedDoorSystem.cs | 6 +++++- Resources/Prototypes/Entities/Effects/puddle.yml | 1 - .../Entities/Objects/Specific/Janitorial/soap.yml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Content.Shared/Doors/Systems/SharedDoorSystem.cs b/Content.Shared/Doors/Systems/SharedDoorSystem.cs index b4828d5e79..396f90da5d 100644 --- a/Content.Shared/Doors/Systems/SharedDoorSystem.cs +++ b/Content.Shared/Doors/Systems/SharedDoorSystem.cs @@ -5,11 +5,11 @@ using Content.Shared.DoAfter; using Content.Shared.Doors.Components; using Content.Shared.Hands.Components; using Content.Shared.Interaction; +using Content.Shared.Physics; using Content.Shared.Stunnable; using Content.Shared.Tag; using Robust.Shared.Audio; using Robust.Shared.GameStates; -using Robust.Shared.Physics; using Robust.Shared.Physics.Components; using Robust.Shared.Physics.Events; using Robust.Shared.Physics.Systems; @@ -446,6 +446,10 @@ public abstract class SharedDoorSystem : EntitySystem if (!otherPhysics.CanCollide) continue; + //If the colliding entity is a slippable item ignore it by the airlock + if (otherPhysics.CollisionLayer == (int) CollisionGroup.SlipLayer && otherPhysics.CollisionMask == (int) CollisionGroup.ItemMask) + continue; + if ((physics.CollisionMask & otherPhysics.CollisionLayer) == 0 && (otherPhysics.CollisionMask & physics.CollisionLayer) == 0) continue; diff --git a/Resources/Prototypes/Entities/Effects/puddle.yml b/Resources/Prototypes/Entities/Effects/puddle.yml index a638cc580f..cecfb2f941 100644 --- a/Resources/Prototypes/Entities/Effects/puddle.yml +++ b/Resources/Prototypes/Entities/Effects/puddle.yml @@ -85,7 +85,6 @@ layers: - sprite: Fluids/puddle.rsi state: splat0 - netsync: false drawdepth: FloorObjects color: "#FFFFFF80" - type: Physics diff --git a/Resources/Prototypes/Entities/Objects/Specific/Janitorial/soap.yml b/Resources/Prototypes/Entities/Objects/Specific/Janitorial/soap.yml index 280bca3aba..fae2eb9781 100644 --- a/Resources/Prototypes/Entities/Objects/Specific/Janitorial/soap.yml +++ b/Resources/Prototypes/Entities/Objects/Specific/Janitorial/soap.yml @@ -27,9 +27,9 @@ shape: !type:PhysShapeAabb bounds: "-0.4,-0.3,0.4,0.3" - hard: false layer: - SlipLayer + hard: false fix1: shape: !type:PhysShapeAabb -- 2.51.2