| 123456789101112131415161718 |
- 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();
- }
- }
|