From ccda80f31dcffbf8e9ec9ddd1dce4fcf15278c5d Mon Sep 17 00:00:00 2001 From: Sailor <109166122+malchanceux@users.noreply.github.com> Date: Tue, 30 May 2023 05:51:31 +0300 Subject: [PATCH] Allow remote signallers to toggle bolt on doors (#16909) --- .../DeviceLinking/Systems/DoorSignalControlSystem.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Server/DeviceLinking/Systems/DoorSignalControlSystem.cs b/Content.Server/DeviceLinking/Systems/DoorSignalControlSystem.cs index 8b522c8d14..be8babd862 100644 --- a/Content.Server/DeviceLinking/Systems/DoorSignalControlSystem.cs +++ b/Content.Server/DeviceLinking/Systems/DoorSignalControlSystem.cs @@ -70,6 +70,11 @@ namespace Content.Server.DeviceLinking.Systems if(TryComp(uid, out var airlockComponent)) _airlockSystem.SetBoltsWithAudio(uid, airlockComponent, true); } + else if (state == SignalState.Momentary) + { + if (TryComp(uid, out var airlockComponent)) + _airlockSystem.SetBoltsWithAudio(uid, airlockComponent, newBolts: !airlockComponent.BoltsDown); + } else { if(TryComp(uid, out var airlockComponent))