diff --git a/code/modules/mob/living/carbon/xenomorph/castes/Facehugger.dm b/code/modules/mob/living/carbon/xenomorph/castes/Facehugger.dm index d98e60fe2177..b5f8bdd17213 100644 --- a/code/modules/mob/living/carbon/xenomorph/castes/Facehugger.dm +++ b/code/modules/mob/living/carbon/xenomorph/castes/Facehugger.dm @@ -222,6 +222,20 @@ if(act == "me") return ..() + switch(stat) + if(UNCONSCIOUS) + to_chat(src, SPAN_WARNING("You cannot emote while unconscious!")) + return FALSE + if(DEAD) + to_chat(src, SPAN_WARNING("You cannot emote while dead!")) + return FALSE + if(client) + if(client.prefs.muted & MUTE_IC) + to_chat(src, SPAN_DANGER("You cannot emote (muted).")) + return FALSE + if(!client.attempt_talking()) + return FALSE + // Otherwise, ""roar""! playsound(loc, "alien_roar_larva", 15) return TRUE diff --git a/code/modules/mob/living/carbon/xenomorph/castes/Larva.dm b/code/modules/mob/living/carbon/xenomorph/castes/Larva.dm index c06b8c43839d..a3e856c7fc67 100644 --- a/code/modules/mob/living/carbon/xenomorph/castes/Larva.dm +++ b/code/modules/mob/living/carbon/xenomorph/castes/Larva.dm @@ -160,6 +160,20 @@ if(act == "me") return ..() + switch(stat) + if(UNCONSCIOUS) + to_chat(src, SPAN_WARNING("You cannot emote while unconscious!")) + return FALSE + if(DEAD) + to_chat(src, SPAN_WARNING("You cannot emote while dead!")) + return FALSE + if(client) + if(client.prefs.muted & MUTE_IC) + to_chat(src, SPAN_DANGER("You cannot emote (muted).")) + return FALSE + if(!client.attempt_talking()) + return FALSE + // Otherwise, ""roar""! playsound(loc, "alien_roar_larva", 15) return TRUE