[Feat] TTS borgs & announcements (#342)

* tts for borgs

* tts for announcements
This commit is contained in:
HitPanda
2023-08-28 18:55:56 +03:00
committed by Aviu00
parent af38299925
commit 60aadc8919
7 changed files with 117 additions and 59 deletions

View File

@@ -9,6 +9,7 @@ using Content.Server.RoundEnd;
using Content.Server.Shuttles.Systems;
using Content.Server.Station.Components;
using Content.Server.Station.Systems;
using Content.Server.White.TTS;
using Content.Shared.Access.Components;
using Content.Shared.Access.Systems;
using Content.Shared.CCVar;
@@ -287,6 +288,11 @@ namespace Content.Server.Communications
}
_chatSystem.DispatchStationAnnouncement(uid, msg, title, colorOverride: comp.Color);
//WD-start
var ttsEv = new TTSAnnouncementEvent(message.Message, comp.TtsVoiceId, uid, comp.Global);
RaiseLocalEvent(ttsEv);
//WD-end
if (message.Session.AttachedEntity != null)
_adminLogger.Add(LogType.Chat, LogImpact.Low, $"{ToPrettyString(message.Session.AttachedEntity.Value):player} has sent the following station announcement: {msg}");
}