Hackable intercoms (#23984)

* Enable wire interface for intercom

* Implement BlockListening component and system

* Implement ListenWireAction

* Added cooldown/overload to mic wire pulse

* Properly persist voicemask settings when user already has one.

* Addressed requested changes

* Added wire panel open/closed visuals
This commit is contained in:
Tayrtahn
2024-01-14 00:37:28 -05:00
committed by GitHub
parent 22c0b4425d
commit 2d6d2aba0b
11 changed files with 186 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using Content.Server.Speech.Components;
namespace Content.Server.Speech.EntitySystems;
public sealed class BlockListeningSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<BlockListeningComponent, ListenAttemptEvent>(OnListenAttempt);
}
private void OnListenAttempt(EntityUid uid, BlockListeningComponent component, ListenAttemptEvent args)
{
args.Cancel();
}
}