mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 09:03:05 +00:00
25 lines
911 B
Plaintext
25 lines
911 B
Plaintext
/decl/emote/audible/slap
|
|
key = "slap"
|
|
emote_message_1p_target = "You slap TARGET across the face. Ouch!"
|
|
emote_message_1p = "You slap yourself across the face!"
|
|
emote_message_3p_target = "slaps TARGET across the face. Ouch!"
|
|
emote_message_3p = "slaps USER_SELF across the face!"
|
|
emote_sound = 'sound/effects/snap.ogg'
|
|
check_restraints = TRUE
|
|
check_range = 1
|
|
|
|
/decl/emote/audible/slap/New()
|
|
..()
|
|
emote_message_1p_target = SPAN_DANGER(emote_message_1p_target)
|
|
emote_message_1p = SPAN_DANGER(emote_message_1p)
|
|
emote_message_3p_target = SPAN_DANGER(emote_message_3p_target)
|
|
emote_message_3p = SPAN_DANGER(emote_message_3p)
|
|
|
|
/decl/emote/audible/slap/do_extra(var/atom/user, var/atom/target)
|
|
. = ..()
|
|
if(ishuman(target))
|
|
var/mob/living/carbon/human/H = target
|
|
var/obj/item/clothing/mask/smokable/mask = H.wear_mask
|
|
if(istype(mask) && H.unEquip(mask))
|
|
mask.forceMove(get_turf(H))
|