diff --git a/code/modules/mob/living/carbon/carbon_procs.dm b/code/modules/mob/living/carbon/carbon_procs.dm index 2aa971636a4..23f6ed283ba 100644 --- a/code/modules/mob/living/carbon/carbon_procs.dm +++ b/code/modules/mob/living/carbon/carbon_procs.dm @@ -286,16 +286,24 @@ return // BEGIN HUGCODE - N3X playsound(get_turf(src), 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1) - if(M.zone_selected == "head") - M.visible_message(\ - "[M] pats [src] on the head.",\ - "You pat [src] on the head.",\ - ) - return - M.visible_message(\ - "[M] gives [src] a [pick("hug","warm embrace")].",\ - "You hug [src].",\ + + switch(M.zone_selected) + if("head") + M.visible_message( + "[M] pats [src] on the head.", + "You pat [src] on the head.", + ) + return + if("l_hand", "r_hand") + M.emote("handshake") + return + + M.visible_message( + "[M] gives [src] a [pick("hug","warm embrace")].", + "You hug [src].", ) + + if(ishuman(src)) var/mob/living/carbon/human/H = src if(H.wear_suit)