Fixes reset propagation for atmospheric alarm receivers, adds CVar for fire alarm all access (#11020)

* adds a check for if a firelock is powered before auto-opening

* fixes issue where resets would not propagate properly

* adds cvar bound for fire alarm access (defaults to all access)
This commit is contained in:
Flipp Syder
2022-09-05 18:15:50 -07:00
committed by GitHub
parent 8114d9d614
commit 8cbcf2d640
4 changed files with 37 additions and 15 deletions

View File

@@ -31,7 +31,7 @@ namespace Content.Server.Doors.Systems
private void OnBeforeDoorOpened(EntityUid uid, FirelockComponent component, BeforeDoorOpenedEvent args)
{
if (component.IsHoldingFire() || component.IsHoldingPressure())
if (!this.IsPowered(uid, EntityManager) || component.IsHoldingFire() || component.IsHoldingPressure())
args.Cancel();
}