Loudspeaker
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Content.Server.Chat.Systems;
|
||||
using Content.Server.VoiceMask;
|
||||
using Content.Shared.Interaction.Components;
|
||||
using Content.Server._White.HopSpeaker;
|
||||
|
||||
namespace Content.Server.Chat;
|
||||
|
||||
@@ -14,11 +15,17 @@ public sealed class FunnyFontsChatSystem : EntitySystem
|
||||
|
||||
private void OnEntitySpeak(SpeechTransformedEvent ev)
|
||||
{
|
||||
if(TryComp(ev.Sender, out VoiceMaskComponent? mask) && mask.Enabled) return;
|
||||
if (TryComp(ev.Sender, out VoiceMaskComponent? mask) && mask.Enabled) return;
|
||||
|
||||
if (TryComp<ClumsyComponent>(ev.Sender, out _))
|
||||
{
|
||||
ev.Message = $"[font=\"ComicSansMS\"]{ev.Message}[/font]";
|
||||
}
|
||||
// WD EDIT START
|
||||
if (TryComp<PapersSpeechComponent>(ev.Sender, out _))
|
||||
{
|
||||
ev.Message = $"[font=\"BureaucracyPixel\"]{ev.Message}[/font]";
|
||||
}
|
||||
// WD EDIT END
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user