mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-09 21:43:28 +00:00
might fix aghost and adds tts devices
This commit is contained in:
@@ -26,3 +26,14 @@
|
||||
if(message)
|
||||
var/obj/item/text_to_speech/O = src
|
||||
audible_message("[icon2html(thing = O, target = world)] \The [O.name] states, \"[message]\"")
|
||||
src.animatechatmsg(message, usr)
|
||||
|
||||
/obj/item/text_to_speech/proc/animatechatmsg(var/message, /mob/usr, var/datum/language/speaking = null)
|
||||
usr.say_overhead(message)
|
||||
var/list/speech_bubble_hearers = list()
|
||||
var/italics = 0
|
||||
for(var/mob/M in get_mobs_in_view(7, src))
|
||||
if(M.client)
|
||||
speech_bubble_hearers += M.client
|
||||
if(length(speech_bubble_hearers))
|
||||
INVOKE_ASYNC(src, /atom/movable/proc/animate_chat, message, speaking, italics, speech_bubble_hearers, 30)
|
||||
|
||||
@@ -377,10 +377,11 @@ proc/get_radio_key_from_channel(var/channel)
|
||||
listening_obj |= results["objs"]
|
||||
above = above.shadow
|
||||
if(!used_radios.len)
|
||||
if(!whispering)
|
||||
usr.say_overhead(say_emphasis(message), speaking)
|
||||
if(whispering)
|
||||
usr.say_overhead(stars(message), speaking)
|
||||
if(!isobserver(usr) || !IsAdminGhost(usr))
|
||||
if(!whispering)
|
||||
usr.say_overhead(say_emphasis(message), speaking)
|
||||
if(whispering)
|
||||
return
|
||||
|
||||
//Main 'say' and 'whisper' message delivery
|
||||
for(var/mob/M in listening)
|
||||
|
||||
Reference in New Issue
Block a user