This commit is contained in:
rhailrake
2023-05-24 17:41:22 +06:00
committed by Aviu00
parent 514c7d0513
commit 2dd362fb65
7 changed files with 82 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ using Content.Server.Speech.EntitySystems;
using Content.Server.Station.Components;
using Content.Server.Station.Systems;
using Content.Server.UtkaIntegration;
using Content.Server.White.Other.Speech;
using Content.Shared.ActionBlocker;
using Content.Shared.Administration;
using Content.Shared.CCVar;
@@ -431,6 +432,17 @@ public sealed partial class ChatSystem : SharedChatSystem
var wrappedMessage = Loc.GetString("chat-manager-entity-say-wrap-message",
("entityName", name), ("message", message));
//WD-EDIT
if (TryComp<VoiceOfGodComponent>(source, out var comp))
{
wrappedMessage = Loc.GetString(comp.ChatLoc,
("entityName", name),
("message", FormattedMessage.EscapeText(message)),
("color", comp.ChatColor)
);
}
//WD-EDIT
SendInVoiceRange(ChatChannel.Local, message, wrappedMessage, source, range);
var ev = new EntitySpokeEvent(source, message, originalMessage, null, null);