From 024c8fbdc7fd8073f09984698dd04c34a3450f0f Mon Sep 17 00:00:00 2001 From: Arendian <137322659+Arendian@users.noreply.github.com> Date: Sat, 1 Jul 2023 21:19:03 +0200 Subject: [PATCH] Makes shutters close on certain objects (#17782) --- Content.Shared/Doors/Systems/SharedDoorSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Doors/Systems/SharedDoorSystem.cs b/Content.Shared/Doors/Systems/SharedDoorSystem.cs index 66499ba2bf..0b4bd21f4a 100644 --- a/Content.Shared/Doors/Systems/SharedDoorSystem.cs +++ b/Content.Shared/Doors/Systems/SharedDoorSystem.cs @@ -445,7 +445,9 @@ public abstract class SharedDoorSystem : EntitySystem if (otherPhysics == physics) continue; - if (!otherPhysics.CanCollide) + //TODO: Make only shutters ignore these objects upon colliding instead of all airlocks + // Excludes Glasslayer for windows, GlassAirlockLayer for windoors, TableLayer for tables + if (!otherPhysics.CanCollide || otherPhysics.CollisionLayer == (int) CollisionGroup.GlassLayer || otherPhysics.CollisionLayer == (int) CollisionGroup.GlassAirlockLayer || otherPhysics.CollisionLayer == (int) CollisionGroup.TableLayer) continue; //If the colliding entity is a slippable item ignore it by the airlock