Fix airlock collision (#2265)
* Allow hitscan to go through open doors So the door itself sets physics.Hard as false although that doesn't seem to include hard which I guess makes sense. * Do the firelock thing * Fix saltern Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Atmos;
|
||||
using Content.Server.GameObjects.Components.Doors;
|
||||
using Content.Server.GameObjects.Components.Interactable;
|
||||
using Content.Server.Interfaces;
|
||||
using Content.Shared.GameObjects.Components.Doors;
|
||||
using Content.Shared.GameObjects.Components.Interactable;
|
||||
using Content.Shared.Interfaces;
|
||||
@@ -11,7 +9,6 @@ using Content.Shared.Interfaces.GameObjects.Components;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameObjects.Components;
|
||||
using Robust.Shared.Interfaces.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.GameObjects.Components.Atmos
|
||||
{
|
||||
@@ -41,7 +38,7 @@ namespace Content.Server.GameObjects.Components.Atmos
|
||||
|
||||
if (Owner.TryGetComponent(out IPhysicsComponent physics))
|
||||
{
|
||||
physics.Hard = false;
|
||||
physics.CanCollide = false;
|
||||
}
|
||||
|
||||
AutoClose = false;
|
||||
|
||||
Reference in New Issue
Block a user