Fix airlocks being opened by anything that bumps into them.

- Adds DoorBumpOpener component.
This commit is contained in:
Vera Aguilera Puerto
2021-10-01 13:47:38 +02:00
parent e3139ef41b
commit 883cbf40b2
8 changed files with 29 additions and 5 deletions

View File

@@ -45,6 +45,11 @@ namespace Content.Server.Doors
private void HandleCollide(EntityUid uid, ServerDoorComponent component, StartCollideEvent args)
{
if (!args.OtherFixture.Body.Owner.HasComponent<DoorBumpOpenerComponent>())
{
return;
}
if (component.State != SharedDoorComponent.DoorState.Closed)
{
return;