mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-09 14:15:22 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user