From 767c438ea5e447cd3b3f21981fcba72b542a8fa6 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) (modified) * 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 565932d276..71987ea877 100644 --- a/Content.Server/Communications/CommunicationsConsoleSystem.cs +++ b/Content.Server/Communications/CommunicationsConsoleSystem.cs @@ -270,7 +270,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 (author != "()") // DeltaV - complete goidacode to only hide it for blank IDs + 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 6239c5386b..a93b3736a3 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml @@ -739,6 +739,7 @@ canShuttle: false global: true #announce to everyone they're about to fuck shit up sound: /Audio/Announcements/intercept.ogg # DeltaV + announceSentBy: false # The title already says who they are. - type: Computer board: SyndicateCommsComputerCircuitboard - type: PointLight @@ -771,6 +772,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