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:
metalgearsloth
2020-10-15 22:37:55 +11:00
committed by GitHub
parent edc01b20a5
commit be096f7ebf
3 changed files with 95 additions and 215 deletions

View File

@@ -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;