From fc52165c9b4e33298e3f7f8dd36826ce7615878b Mon Sep 17 00:00:00 2001 From: Simon <63975668+Simyon264@users.noreply.github.com> Date: Sun, 18 May 2025 11:18:18 +0200 Subject: [PATCH] Make Nukie and Wizard Comms Console not announce who it was sent by (#37567) * Make Nukie and Wizard Comms Console not announce who it was sent by. * Add doc-comment to field --- .../Communications/CommunicationsConsoleComponent.cs | 7 +++++++ .../Communications/CommunicationsConsoleSystem.cs | 4 +++- .../Entities/Structures/Machines/Computers/computers.yml | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Content.Server/Communications/CommunicationsConsoleComponent.cs b/Content.Server/Communications/CommunicationsConsoleComponent.cs index 56c8e9504b..0dad4d83f6 100644 --- a/Content.Server/Communications/CommunicationsConsoleComponent.cs +++ b/Content.Server/Communications/CommunicationsConsoleComponent.cs @@ -67,5 +67,12 @@ namespace Content.Server.Communications /// [DataField] public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Announcements/announce.ogg"); + + /// + /// Hides the sender identity (If they even have one). + /// In practise this removes the "Sent by ScugMcWawa (Slugcat Captain)" at the bottom of the announcement. + /// + [DataField] + public bool AnnounceSentBy = true; } } diff --git a/Content.Server/Communications/CommunicationsConsoleSystem.cs b/Content.Server/Communications/CommunicationsConsoleSystem.cs index fc489c1823..09dec3e23d 100644 --- a/Content.Server/Communications/CommunicationsConsoleSystem.cs +++ b/Content.Server/Communications/CommunicationsConsoleSystem.cs @@ -259,7 +259,9 @@ namespace Content.Server.Communications Loc.TryGetString(comp.Title, out var title); title ??= comp.Title; - msg += "\n" + Loc.GetString("comms-console-announcement-sent-by") + " " + author; + if (comp.AnnounceSentBy) + msg += "\n" + Loc.GetString("comms-console-announcement-sent-by") + " " + author; + if (comp.Global) { _chatSystem.DispatchGlobalAnnouncement(msg, title, announcementSound: comp.Sound, colorOverride: comp.Color); diff --git a/Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml b/Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml index 9420c4d10f..ca9b5fabba 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml @@ -709,6 +709,7 @@ color: "#ff0000" canShuttle: false global: true #announce to everyone they're about to fuck shit up + announceSentBy: false # The title already says who they are. sound: /Audio/Announcements/war.ogg - type: Computer board: SyndicateCommsComputerCircuitboard @@ -742,6 +743,7 @@ color: "#ff00ff" canShuttle: false global: true #announce to everyone they're about to fuck shit up + announceSentBy: false sound: /Audio/Announcements/war.ogg - type: Computer board: WizardCommsComputerCircuitboard -- 2.51.2