Surveillance camera listening/speaking (#11640)
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
using System.Linq;
|
||||
using Content.Server.Chat.Systems;
|
||||
using Content.Server.DeviceNetwork;
|
||||
using Content.Server.DeviceNetwork.Systems;
|
||||
using Content.Server.Power.Components;
|
||||
using Content.Server.UserInterface;
|
||||
using Content.Server.Wires;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Speech;
|
||||
using Content.Shared.SurveillanceCamera;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Random;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
namespace Content.Server.SurveillanceCamera;
|
||||
|
||||
@@ -370,8 +375,7 @@ public sealed class SurveillanceCameraMonitorSystem : EntitySystem
|
||||
|
||||
if (monitor.ActiveCamera != null)
|
||||
{
|
||||
EntityUid? monitorUid = monitor.Viewers.Count == 0 ? uid : null;
|
||||
_surveillanceCameras.RemoveActiveViewer(monitor.ActiveCamera.Value, player, monitorUid);
|
||||
_surveillanceCameras.RemoveActiveViewer(monitor.ActiveCamera.Value, player);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user