diff --git a/code/game/objects/structures/guillotine.dm b/code/game/objects/structures/guillotine.dm index db2daff0e09..8b6d33d38b4 100644 --- a/code/game/objects/structures/guillotine.dm +++ b/code/game/objects/structures/guillotine.dm @@ -133,7 +133,7 @@ delay_offset++ else H.apply_damage(15 * blade_sharpness, BRUTE, head) - add_attack_logs(user, H, "dropped the blade on non-fatally with [src]") + add_attack_logs(user, H, "non-fatally dropped the blade on with [src]") H.emote("scream") if(blade_sharpness > 1) diff --git a/code/modules/mob/living/carbon/human/emote.dm b/code/modules/mob/living/carbon/human/emote.dm index 97ff899abe6..e9ae44bf433 100644 --- a/code/modules/mob/living/carbon/human/emote.dm +++ b/code/modules/mob/living/carbon/human/emote.dm @@ -102,6 +102,8 @@ on_CD = handle_emote_CD() if("sneeze", "sneezes") on_CD = handle_emote_CD() + if("clap", "claps") + on_CD = handle_emote_CD() //Everything else, including typos of the above emotes else on_CD = 0 //If it doesn't induce the cooldown, we won't check for the cooldown @@ -302,11 +304,30 @@ message = "[src] makes a peculiar noise." m_type = 2 if("clap", "claps") - if(!restrained()) - message = "[src] claps." + if(miming) + message = "[src] claps silently." + m_type = 1 + else m_type = 2 - if(miming) - m_type = 1 + var/obj/item/organ/external/L = get_organ("l_hand") + var/obj/item/organ/external/R = get_organ("r_hand") + + var/left_hand_good = FALSE + var/right_hand_good = FALSE + + if(L && (!(L.status & ORGAN_SPLINTED)) && (!(L.status & ORGAN_BROKEN))) + left_hand_good = TRUE + if(R && (!(R.status & ORGAN_SPLINTED)) && (!(R.status & ORGAN_BROKEN))) + right_hand_good = TRUE + + if(left_hand_good && right_hand_good) + message = "[src] claps." + var/clap = pick('sound/misc/clap1.ogg', 'sound/misc/clap2.ogg', 'sound/misc/clap3.ogg', 'sound/misc/clap4.ogg') + playsound(loc, clap, 50, 1, -1) + + else + to_chat(usr, "You need your hands working in order to clap.") + if("flap", "flaps") if(!restrained()) message = "[src] flaps \his wings." diff --git a/sound/misc/clap1.ogg b/sound/misc/clap1.ogg new file mode 100644 index 00000000000..a9a6cc71f83 Binary files /dev/null and b/sound/misc/clap1.ogg differ diff --git a/sound/misc/clap2.ogg b/sound/misc/clap2.ogg new file mode 100644 index 00000000000..72e26d4a241 Binary files /dev/null and b/sound/misc/clap2.ogg differ diff --git a/sound/misc/clap3.ogg b/sound/misc/clap3.ogg new file mode 100644 index 00000000000..7a72ab9bf3c Binary files /dev/null and b/sound/misc/clap3.ogg differ diff --git a/sound/misc/clap4.ogg b/sound/misc/clap4.ogg new file mode 100644 index 00000000000..cdc533ca771 Binary files /dev/null and b/sound/misc/clap4.ogg differ