Added positional logging for speech.

This commit is contained in:
Aurx
2014-12-22 16:28:40 -08:00
parent 5a0475b127
commit b48f146997
9 changed files with 16 additions and 17 deletions

View File

@@ -69,7 +69,7 @@
blob_talk(message) blob_talk(message)
/mob/camera/blob/proc/blob_talk(message) /mob/camera/blob/proc/blob_talk(message)
log_say("[key_name(src)] : [message]") log_say("[key_name(src)] (@[src.x],[src.y],[src.z]): [message]")
message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN)) message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN))

View File

@@ -133,7 +133,7 @@ var/shuttle_call/shuttle_calls[0]
if(!input || !(usr in view(1,src))) if(!input || !(usr in view(1,src)))
return return
captain_announce(input)//This should really tell who is, IE HoP, CE, HoS, RD, Captain captain_announce(input)//This should really tell who is, IE HoP, CE, HoS, RD, Captain
log_say("[key_name(usr)] has made a captain announcement: [input]") log_say("[key_name(usr)] (@[usr.x],[usr.y],[usr.z]) has made a captain announcement: [input]")
message_admins("[key_name_admin(usr)] has made a captain announcement.", 1) message_admins("[key_name_admin(usr)] has made a captain announcement.", 1)
message_cooldown = 1 message_cooldown = 1
spawn(600)//One minute cooldown spawn(600)//One minute cooldown
@@ -213,7 +213,7 @@ var/shuttle_call/shuttle_calls[0]
return return
Centcomm_announce(input, usr) Centcomm_announce(input, usr)
usr << "\blue Message transmitted." usr << "\blue Message transmitted."
log_say("[key_name(usr)] has made an IA Centcomm announcement: [input]") log_say("[key_name(usr)] (@[usr.x],[usr.y],[usr.z]) has sent a bluespace message to Centcomm: [input]")
centcomm_message_cooldown = 1 centcomm_message_cooldown = 1
spawn(300)//10 minute cooldown spawn(300)//10 minute cooldown
centcomm_message_cooldown = 0 centcomm_message_cooldown = 0
@@ -231,7 +231,7 @@ var/shuttle_call/shuttle_calls[0]
return return
Syndicate_announce(input, usr) Syndicate_announce(input, usr)
usr << "\blue Message transmitted." usr << "\blue Message transmitted."
log_say("[key_name(usr)] has made a Syndicate announcement: [input]") log_say("[key_name(usr)] (@[usr.x],[usr.y],[usr.z]) has sent a bluespace message to the syndicate: [input]")
centcomm_message_cooldown = 1 centcomm_message_cooldown = 1
spawn(300)//10 minute cooldown spawn(300)//10 minute cooldown
centcomm_message_cooldown = 0 centcomm_message_cooldown = 0

View File

@@ -7,7 +7,7 @@
if (!message) if (!message)
return return
log_say("Ghost/[src.key] : [message]") log_say("Ghost/[src.key] (@[src.x],[src.y],[src.z]): [message]")
if (src.client) if (src.client)
if(src.client.prefs.muted & MUTE_DEADCHAT) if(src.client.prefs.muted & MUTE_DEADCHAT)

View File

@@ -51,7 +51,7 @@ Doesn't work on other aliens/AI.*/
adjustToxLoss(-10) adjustToxLoss(-10)
var/msg = sanitize(input("Message:", "Alien Whisper") as text|null) var/msg = sanitize(input("Message:", "Alien Whisper") as text|null)
if(msg) if(msg)
log_say("AlienWhisper: [key_name(src)]->[M.key] : [msg]") log_say("AlienWhisper: [key_name(src)](@[src.x],[src.y],[src.z])->[M.key] (@[M.x],[M.y],[M.z]): [msg]")
M << "<span class='alien'>You hear a strange, alien voice in your head... \italic [msg]</span>" M << "<span class='alien'>You hear a strange, alien voice in your head... \italic [msg]</span>"
src << "<span class='alien'>You said: [msg] to [M]</span>" src << "<span class='alien'>You said: [msg] to [M]</span>"
return return

View File

@@ -31,7 +31,7 @@
/mob/living/proc/alien_talk(var/message) /mob/living/proc/alien_talk(var/message)
log_say("[key_name(src)] : [message]") log_say("[key_name(src)] (@[src.x],[src.y],[src.z]): [message]")
message = trim(message) message = trim(message)
if (!message) if (!message)

View File

@@ -315,7 +315,7 @@ var/list/department_radio_keys = list(
if("changeling") if("changeling")
if(mind && mind.changeling) if(mind && mind.changeling)
log_say("[key_name(src)] ([mind.changeling.changelingID]): [message]") log_say("[key_name(src)] ([mind.changeling.changelingID])(@[src.x],[src.y],[src.z]): [message]")
for(var/mob/Changeling in mob_list) for(var/mob/Changeling in mob_list)
if(istype(Changeling, /mob/living/silicon)) continue //WHY IS THIS NEEDED? if(istype(Changeling, /mob/living/silicon)) continue //WHY IS THIS NEEDED?
if((Changeling.mind && Changeling.mind.changeling) || istype(Changeling, /mob/dead/observer)) if((Changeling.mind && Changeling.mind.changeling) || istype(Changeling, /mob/dead/observer))
@@ -435,7 +435,7 @@ var/list/department_radio_keys = list(
if("changeling") if("changeling")
if(mind && mind.changeling) if(mind && mind.changeling)
log_say("[key_name(src)] ([mind.changeling.changelingID]): [message]") log_say("[key_name(src)] ([mind.changeling.changelingID])(@[src.x],[src.y],[src.z]): [message]")
for(var/mob/Changeling in mob_list) for(var/mob/Changeling in mob_list)
if(istype(Changeling, /mob/living/silicon)) continue //WHY IS THIS NEEDED? if(istype(Changeling, /mob/living/silicon)) continue //WHY IS THIS NEEDED?
if((Changeling.mind && Changeling.mind.changeling) || istype(Changeling, /mob/dead/observer)) if((Changeling.mind && Changeling.mind.changeling) || istype(Changeling, /mob/dead/observer))
@@ -620,7 +620,7 @@ var/list/department_radio_keys = list(
if(O.listening_to_players) if(O.listening_to_players)
O.catchMessage(message, src) O.catchMessage(message, src)
log_say("[name]/[key] : [message]") log_say("[name]/[key] (@[x],[y],[z]): [message]")
/mob/proc/addSpeechBubble(image/speech_bubble) /mob/proc/addSpeechBubble(image/speech_bubble)
if(client) if(client)

View File

@@ -26,7 +26,7 @@
return "states, \"[text]\""; return "states, \"[text]\"";
/mob/living/silicon/robot/mommi/proc/mommi_talk(var/message) /mob/living/silicon/robot/mommi/proc/mommi_talk(var/message)
log_say("[key_name(src)] : [message]") log_say("[key_name(src)] (@[src.x],[src.y],[src.z])(MoMMItalk): [message]")
message = trim(message) message = trim(message)

View File

@@ -77,14 +77,13 @@
//For holopads only. Usable by AI. //For holopads only. Usable by AI.
/mob/living/silicon/ai/proc/holopad_talk(var/message) /mob/living/silicon/ai/proc/holopad_talk(var/message)
log_say("[key_name(src)] : [message]")
message = trim(message) message = trim(message)
if (!message) if (!message)
return return
var/obj/machinery/hologram/holopad/T = src.current var/obj/machinery/hologram/holopad/T = src.current
log_say("[key_name(src)] (holopad@[T.x],[T.y],[T.z]): [message]")
if(istype(T) && T.hologram && T.master == src)//If there is a hologram and its master is the user. if(istype(T) && T.hologram && T.master == src)//If there is a hologram and its master is the user.
var/message_a = say_quote(message) var/message_a = say_quote(message)
@@ -110,7 +109,7 @@
/mob/living/proc/robot_talk(var/message) /mob/living/proc/robot_talk(var/message)
log_say("[key_name(src)] : [message]") log_say("[key_name(src)] (@[src.x],[src.y],[src.z])(binary): [message]")
message = trim(message) message = trim(message)

View File

@@ -17,7 +17,7 @@
src << "You whisper silently, \"[message]\"" src << "You whisper silently, \"[message]\""
B.host << "The captive mind of [src] whispers, \"[message]\"" B.host << "The captive mind of [src] whispers, \"[message]\""
log_say("THOUGHTSPEECH: [key_name(src)] -> [key_name(B)]: [message]") log_say("THOUGHTSPEECH: [key_name(src)](@[src.x],[src.y],[src.z]) -> [key_name(B)](@[B.x],[B.y],[B.z]): [message]")
for(var/mob/M in player_list) for(var/mob/M in player_list)
if(istype(M, /mob/new_player)) if(istype(M, /mob/new_player))
@@ -220,7 +220,7 @@ var/global/borer_chem_types = typesof(/datum/borer_chem) - /datum/borer_chem
src << "You drop words into [host]'s mind: \"[message]\"" src << "You drop words into [host]'s mind: \"[message]\""
host << "Your own thoughts speak: \"[message]\"" host << "Your own thoughts speak: \"[message]\""
log_say("THOUGHTSPEECH: [truename] ([key_name(src)]) -> [host] ([key_name(host)]): [message]") log_say("THOUGHTSPEECH: [truename] ([key_name(src)])(@[src.x],[src.y],[src.z]) -> [host] ([key_name(host)])(@[host.x],[host.y],[host.z]): [message]")
for(var/mob/M in player_list) for(var/mob/M in player_list)
if(istype(M, /mob/new_player)) if(istype(M, /mob/new_player))
@@ -258,7 +258,7 @@ var/global/borer_chem_types = typesof(/datum/borer_chem) - /datum/borer_chem
return return
message = copytext(message,2) message = copytext(message,2)
log_say("CORTICAL: [key_name(src)]: [message]") log_say("CORTICAL: [key_name(src)](@[src.x],[src.y],[src.z]): [message]")
for(var/mob/M in mob_list) for(var/mob/M in mob_list)
if(istype(M, /mob/new_player)) if(istype(M, /mob/new_player))