mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
Access Tuner
This commit is contained in:
@@ -113,6 +113,28 @@
|
||||
icon_state = "gangtool-blue"
|
||||
region_access = REGION_CENTCOMM
|
||||
|
||||
/obj/item/door_remote/omni/access_tuner
|
||||
name = "access tuner"
|
||||
desc = "A device illegally interfacing with doors."
|
||||
icon_state = "hacktool"
|
||||
item_state = "hacktool"
|
||||
var/hack_speed = 30
|
||||
var/busy = FALSE
|
||||
|
||||
/obj/item/door_remote/omni/access_tuner/afterattack(obj/machinery/door/airlock/D, mob/user)
|
||||
if(!istype(D))
|
||||
return
|
||||
if(busy)
|
||||
to_chat(user, "<span class='warning'>[src] is alreading interfacing with a door!</span>")
|
||||
return
|
||||
icon_state = "hacktool-g"
|
||||
busy = TRUE
|
||||
to_chat(user, "<span class='notice'>[src] is attempting to interface with [D]...</span>")
|
||||
if(do_after(user, hack_speed, target = D))
|
||||
. = ..()
|
||||
busy = FALSE
|
||||
icon_state = "hacktool"
|
||||
|
||||
#undef WAND_OPEN
|
||||
#undef WAND_BOLT
|
||||
#undef WAND_EMERGENCY
|
||||
|
||||
Reference in New Issue
Block a user