[READY] NTNet airlocks

This commit is contained in:
ACCount
2018-03-09 02:39:17 +03:00
committed by CitadelStationBot
parent 7bb63b0a21
commit f0cf4ad29d
14 changed files with 235 additions and 98 deletions
+2 -4
View File
@@ -48,17 +48,15 @@
return
if(!A.requiresID() || A.check_access(null))
if(A.density)
A.open()
INVOKE_ASYNC(A, /obj/machinery/door/airlock.proc/open)
else
A.close()
INVOKE_ASYNC(A, /obj/machinery/door/airlock.proc/close)
if(WIRE_BOLTS) // Pulse to toggle bolts (but only raise if power is on).
if(!A.locked)
A.bolt()
A.audible_message("<span class='italics'>You hear a click from the bottom of the door.</span>", null, 1)
else
if(A.hasPower())
A.unbolt()
A.audible_message("<span class='italics'>You hear a click from the bottom of the door.</span>", null, 1)
A.update_icon()
if(WIRE_IDSCAN) // Pulse to disable emergency access and flash red lights.
if(A.hasPower() && A.density)