mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +01:00
Handcuffs Now Require An Aggressive Grab (#7299)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user