Some preferred changes

This commit is contained in:
BlackMajor
2022-07-20 22:34:04 +12:00
parent 259d1fd47d
commit 1affb3a089
8 changed files with 78 additions and 45 deletions
+3 -1
View File
@@ -191,11 +191,13 @@
if(message)
message = encode_html_emphasis(message)
/* CHOMPRemove - Not needed if you set your defaults right
var/ourfreq = null
if(isliving(src))
var/mob/living/L = src
if(L.voice_freq > 0 )
ourfreq = L.voice_freq
*/
// Hearing gasp and such every five seconds is not good emotes were not global for a reason.
@@ -205,7 +207,7 @@
if(!T) return
if(client)
playsound(T, pick(emote_sound), 25, TRUE, falloff = 1 , is_global = TRUE, frequency = ourfreq, ignore_walls = FALSE, preference = /datum/client_preference/emote_sounds)
playsound(T, pick(voice_sounds_list), 75, TRUE, falloff = 1 , is_global = TRUE, frequency = voice_freq, ignore_walls = FALSE, preference = /datum/client_preference/say_sounds)
var/list/in_range = get_mobs_and_objs_in_view_fast(T,range,2,remote_ghosts = client ? TRUE : FALSE)
var/list/m_viewers = in_range["mobs"]
var/list/o_viewers = in_range["objs"]