UnblockableSpeechSystem.cs 542 B

123456789101112131415161718
  1. using Content.Server.Chat.Systems;
  2. using Content.Server.Speech.Components;
  3. namespace Content.Server.Speech.EntitySystems
  4. {
  5. public sealed class UnblockableSpeechSystem : EntitySystem
  6. {
  7. public override void Initialize()
  8. {
  9. SubscribeLocalEvent<UnblockableSpeechComponent, CheckIgnoreSpeechBlockerEvent>(OnCheck);
  10. }
  11. private void OnCheck(EntityUid uid, UnblockableSpeechComponent component, CheckIgnoreSpeechBlockerEvent args)
  12. {
  13. args.IgnoreBlocker = true;
  14. }
  15. }
  16. }