Handcuffs Now Require An Aggressive Grab (#7299)

This commit is contained in:
ParadoxSpace
2020-05-01 18:55:32 +02:00
committed by GitHub
parent ced5f7b70f
commit 3d0d55d9c6
3 changed files with 57 additions and 4 deletions
+13 -2
View File
@@ -34,8 +34,19 @@
place_handcuffs(user, user)
return
//Or just. You know. Don't check for it and place the handcuffs anyways!
place_handcuffs(C, user)
var/can_place
if(istype(user, /mob/living/silicon/robot))
can_place = TRUE
else
for (var/obj/item/grab/G in C.grabbed_by)
if (G.loc == user && G.state >= GRAB_AGGRESSIVE)
can_place = TRUE
break
if(can_place)
place_handcuffs(C, user)
else
to_chat(user, "<span class='danger'>You need to have a firm grip on [C] before you can put \the [src] on!</span>")
/obj/item/handcuffs/proc/place_handcuffs(var/mob/living/carbon/target, var/mob/user)
playsound(src.loc, cuff_sound, 30, 1, -2)