mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 13:13:03 +00:00
Can open doors without access requirement when handcuffed
This commit is contained in:
@@ -95,14 +95,18 @@
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
/obj/machinery/door/Bumped(atom/AM)
|
/obj/machinery/door/Bumped(atom/AM)
|
||||||
if(p_open || operating) return
|
if(p_open || operating)
|
||||||
|
return
|
||||||
if(ismob(AM))
|
if(ismob(AM))
|
||||||
var/mob/M = 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
|
M.last_bumped = world.time
|
||||||
if(!M.restrained())
|
if(M.restrained() && !check_access(null))
|
||||||
bumpopen(M)
|
|
||||||
return
|
return
|
||||||
|
else
|
||||||
|
bumpopen(M)
|
||||||
|
|
||||||
|
|
||||||
if(istype(AM, /mob/living/bot))
|
if(istype(AM, /mob/living/bot))
|
||||||
var/mob/living/bot/bot = AM
|
var/mob/living/bot/bot = AM
|
||||||
|
|||||||
Reference in New Issue
Block a user