Allows dead humans to speak, even if muzzled.

Prevents a fate most cruel, at least when the ghost is still possessing its dead body.
This commit is contained in:
PsiOmega
2015-04-15 09:06:04 +02:00
parent b94366067a
commit 0d0786dfa1
2 changed files with 11 additions and 5 deletions

View File

@@ -3,12 +3,11 @@
if(name != GetVoice())
alt_name = "(as [get_id_name("Unknown")])"
if (istype(src.wear_mask, /obj/item/clothing/mask/muzzle))
src << "<span class='danger'>You're muzzled and cannot speak!</span>"
return
message = sanitize(message)
..(message, alt_name = alt_name) //ohgod we should really be passing a datum here.
..(message, alt_name = alt_name)
/mob/living/carbon/human/is_muzzled()
return istype(src.wear_mask, /obj/item/clothing/mask/muzzle)
/mob/living/carbon/human/proc/forcesay(list/append)
if(stat == CONSCIOUS)

View File

@@ -82,6 +82,9 @@ proc/get_radio_key_from_channel(var/channel)
/mob/living/proc/get_default_language()
return default_language
/mob/living/proc/is_muzzled()
return 0
/mob/living/proc/handle_speech_problems(var/message, var/verb)
var/list/returns[3]
var/speech_problem_flag = 0
@@ -135,6 +138,10 @@ proc/get_radio_key_from_channel(var/channel)
return say_dead(message)
return
if(is_muzzled())
src << "<span class='danger'>You're muzzled and cannot speak!</span>"
return
var/message_mode = parse_message_mode(message, "headset")
switch(copytext(message,1,2))