Keep windoors open if they are clicked (#11180)
This commit is contained in:
@@ -50,6 +50,13 @@ namespace Content.Server.Doors.Components
|
||||
[DataField("openPanelVisible")]
|
||||
public bool OpenPanelVisible = false;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the airlock should stay open if the airlock was clicked.
|
||||
/// If the airlock was bumped into it will still auto close.
|
||||
/// </summary>
|
||||
[DataField("keepOpenIfClicked")]
|
||||
public bool KeepOpenIfClicked = false;
|
||||
|
||||
private CancellationTokenSource _powerWiresPulsedTimerCancel = new();
|
||||
private bool _powerWiresPulsed;
|
||||
|
||||
@@ -105,6 +112,12 @@ namespace Content.Server.Doors.Components
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Whether the airlock should auto close. This value is reset every time the airlock closes.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool AutoClose = true;
|
||||
|
||||
/// <summary>
|
||||
/// Delay until an open door automatically closes.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user