EMP disables suit sensors (#24869)

* EMP disables suit sensors

* update to supersede and not disable

* Revert "update to supersede and not disable"

This reverts commit 337028c31af1c0fa2b1838bcf5d6759bfd7ed97c.

* separate logic out into just emp events
This commit is contained in:
themias
2024-02-03 19:50:23 -05:00
committed by GitHub
parent 257909fd97
commit 09dd92ce61
2 changed files with 35 additions and 0 deletions

View File

@@ -72,4 +72,17 @@ public sealed partial class SuitSensorComponent : Component
/// </summary>
[DataField("server")]
public string? ConnectedServer = null;
/// <summary>
/// The previous mode of the suit. This is used to restore the state when an EMP effect ends.
/// </summary>
[DataField, ViewVariables]
public SuitSensorMode PreviousMode = SuitSensorMode.SensorOff;
/// <summary>
/// The previous locked status of the controls. This is used to restore the state when an EMP effect ends.
/// This keeps prisoner jumpsuits/internal implants from becoming unlocked after an EMP.
/// </summary>
[DataField, ViewVariables]
public bool PreviousControlsLocked = false;
}