Disable automatic on-touch activation of external airlocks (#2385)
* Disable automatic on-touch activation of external airlocks It's a total pain to reliably get inside a two-door airlock without tripping the firelocks, and that's if you're *intending* to use it properly... People keep draining the entryway air on the sandbox servers (so people have to crowbar the firelocks open, and this reduces available air) * Disable automatic on-touch activation of external airlocks: Change auto_open to autoOpen * Change auto to bump Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -80,6 +80,10 @@ namespace Content.Server.GameObjects.Components.Doors
|
|||||||
|
|
||||||
public bool Occludes => _occludes;
|
public bool Occludes => _occludes;
|
||||||
|
|
||||||
|
[ViewVariables(VVAccess.ReadWrite)] private bool _bumpOpen;
|
||||||
|
|
||||||
|
public bool BumpOpen => _bumpOpen;
|
||||||
|
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
public bool IsWeldedShut
|
public bool IsWeldedShut
|
||||||
{
|
{
|
||||||
@@ -112,6 +116,7 @@ namespace Content.Server.GameObjects.Components.Doors
|
|||||||
base.ExposeData(serializer);
|
base.ExposeData(serializer);
|
||||||
|
|
||||||
serializer.DataField(ref _occludes, "occludes", true);
|
serializer.DataField(ref _occludes, "occludes", true);
|
||||||
|
serializer.DataField(ref _bumpOpen, "bumpOpen", true);
|
||||||
serializer.DataField(ref _isWeldedShut, "welded", false);
|
serializer.DataField(ref _isWeldedShut, "welded", false);
|
||||||
serializer.DataField(ref _canCrush, "canCrush", true);
|
serializer.DataField(ref _canCrush, "canCrush", true);
|
||||||
}
|
}
|
||||||
@@ -147,6 +152,11 @@ namespace Content.Server.GameObjects.Components.Doors
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!_bumpOpen)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Disabled because it makes it suck hard to walk through double doors.
|
// Disabled because it makes it suck hard to walk through double doors.
|
||||||
|
|
||||||
if (entity.HasComponent<IBody>())
|
if (entity.HasComponent<IBody>())
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
parent: Airlock
|
parent: Airlock
|
||||||
id: AirlockExternal
|
id: AirlockExternal
|
||||||
suffix: External
|
suffix: External
|
||||||
|
description: "It opens, it closes, it might crush you, and there might be only space behind it.\nHas to be manually activated."
|
||||||
components:
|
components:
|
||||||
|
- type: Airlock
|
||||||
|
bumpOpen: false
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Constructible/Structures/Doors/airlock_external.rsi
|
sprite: Constructible/Structures/Doors/airlock_external.rsi
|
||||||
- type: Appearance
|
- type: Appearance
|
||||||
|
|||||||
Reference in New Issue
Block a user