/// <summary> /// Dispatches an announcement to all. /// </summary> /// <param name="message">The contents of the message</param> /// <param name="sender">The sender (Communications Console in Communications Console Announcement)</param> /// <param name="playSound">Play the announcement sound</param> /// <param name="colorOverride">Optional color for the announcement message</param> public void DispatchGlobalAnnouncement(string message, string sender = "Central Command", bool playSound = true, SoundSpecifier?announcementSound = null, Color?colorOverride = null) { var messageWrap = Loc.GetString("chat-manager-sender-announcement-wrap-message", ("sender", sender)); _chatManager.ChatMessageToAll(ChatChannel.Radio, message, messageWrap, colorOverride); if (playSound) { SoundSystem.Play(announcementSound?.GetSound() ?? DefaultAnnouncementSound, Filter.Broadcast(), AudioParams.Default.WithVolume(-2f)); } _adminLogger.Add(LogType.Chat, LogImpact.Low, $"Global station announcement from {sender}: {message}"); }