namespace Content.Shared.Speech { public sealed class SpeechSystem : EntitySystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnSpeakAttempt); } private void OnSpeakAttempt(SpeakAttemptEvent args) { if (!TryComp(args.Uid, out SharedSpeechComponent? speech) || !speech.Enabled) args.Cancel(); } } }