Quieter radio emotes (#18103)

* Fix Radio Emotes

Fixes #14748

* Make emotes audible

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Will "squid.mid" Bohlen
2022-06-29 10:22:07 +01:00
committed by GitHub
co-authored by Luc
parent 09e7f54a43
commit e291a8c779
+6
View File
@@ -95,6 +95,12 @@
if(client.prefs.toggles & PREFTOGGLE_CHAT_GHOSTEARS && (speaker in view(src)))
message = "<b>[message]</b>"
// Check if the language used is innate
for(var/datum/multilingual_say_piece/SP in message_pieces)
if(SP.speaking && SP.speaking.flags & INNATE)
custom_emote(EMOTE_AUDIBLE, message_clean, TRUE)
return
if(!can_hear())
// INNATE is the flag for audible-emote-language, so we don't want to show an "x talks but you cannot hear them" message if it's set
// if(!language || !(language.flags & INNATE))