From 59994a565694b44ea14d99bd166502bc988fc25a Mon Sep 17 00:00:00 2001 From: Yoshax Date: Mon, 21 Nov 2016 01:27:15 +0000 Subject: [PATCH] Can open doors without access requirement when handcuffed --- code/game/machinery/doors/door.dm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index 2fea971119..185de7f06d 100644 --- a/code/game/machinery/doors/door.dm +++ b/code/game/machinery/doors/door.dm @@ -95,14 +95,18 @@ return 1 /obj/machinery/door/Bumped(atom/AM) - if(p_open || operating) return + if(p_open || operating) + return if(ismob(AM)) var/mob/M = AM - if(world.time - M.last_bumped <= 10) return //Can bump-open one airlock per second. This is to prevent shock spam. + if(world.time - M.last_bumped <= 10) + return //Can bump-open one airlock per second. This is to prevent shock spam. M.last_bumped = world.time - if(!M.restrained()) + if(M.restrained() && !check_access(null)) + return + else bumpopen(M) - return + if(istype(AM, /mob/living/bot)) var/mob/living/bot/bot = AM