added check for STATUS_EFFECT_SILENCED when we want to emit emote sound. If /mob/living has this flag, emote wont emit sound. Less ways to spam sounds when you supposed to be silent

This commit is contained in:
Emagged
2023-02-09 12:32:17 +01:00
parent 8e8a151d74
commit bc093ba01f
+4
View File
@@ -593,6 +593,10 @@
return FALSE
if((emote_type & EMOTE_MOUTH) && !can_vocalize_emotes(user))
return FALSE
if(istype(user, /mob/living))
var/mob/living/live_user = user
if(live_user.has_status_effect(STATUS_EFFECT_SILENCED))
return FALSE
return TRUE
/datum/emote/proc/remove_ending_punctuation(msg)