Having a facehugger on your face muffles your speech (#19145)

* Having a facehugger on your face muffles your speech

* Scoped to living

* Yes.
This commit is contained in:
FloFluoro
2022-10-02 22:13:36 -05:00
committed by GitHub
parent 233657d8be
commit 094ca894ef
5 changed files with 21 additions and 3 deletions
+7
View File
@@ -94,6 +94,10 @@
if(message)
to_chat(src, "<span class='warning'>The muzzle prevents you from vomiting!</span>")
return FALSE
if(is_facehugged())
if(message)
to_chat(src, "<span class='warning'>You try to throw up, but the alien's proboscis obstructs your throat!</span>") //Sorry
return FALSE
if(stun)
Stun(8 SECONDS)
if(nutrition < 100 && !blood)
@@ -848,6 +852,9 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven
/mob/living/carbon/is_muzzled()
return(istype(wear_mask, /obj/item/clothing/mask/muzzle))
/mob/living/carbon/is_facehugged()
return istype(wear_mask, /obj/item/clothing/mask/facehugger)
/mob/living/carbon/resist_buckle()
INVOKE_ASYNC(src, .proc/resist_muzzle)
var/obj/item/I = get_restraining_item()
+3
View File
@@ -798,6 +798,9 @@
/mob/living/proc/get_visible_name()
return name
/mob/living/proc/is_facehugged()
return FALSE
/mob/living/update_gravity(has_gravity)
if(!SSticker)
return
+8
View File
@@ -174,6 +174,10 @@ GLOBAL_LIST_EMPTY(channel_to_radio_key)
muffledspeech_all(message_pieces)
verb = "mumbles"
if(is_facehugged())
muffledspeech_all(message_pieces)
verb = "gurgles"
if(!ignore_speech_problems)
var/list/hsp = handle_speech_problems(message_pieces, verb)
verb = hsp["verb"]
@@ -328,6 +332,10 @@ GLOBAL_LIST_EMPTY(channel_to_radio_key)
to_chat(src, "<span class='danger'>You're muzzled and cannot speak!</span>")
return
if(is_facehugged())
to_chat(src, "<span class='danger'>You can't get a word out with this horrible creature on your face!</span>")
return
var/message = multilingual_to_message(message_pieces)
say_log += "whisper: [message]"
+1 -1
View File
@@ -957,7 +957,7 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
return gender
/mob/proc/is_muzzled()
return 0
return FALSE
/mob/Stat()
..()