This commit is contained in:
Seris02
2020-01-20 13:00:24 +08:00
parent 8da447c678
commit 5524b0fa03
5 changed files with 15 additions and 12 deletions
@@ -8,8 +8,8 @@
var/toggled = FALSE
icon_state = "hijack"
var/eye_color
var/stealthmode = FALSE
var/stealthcooldown = 0
//var/stealthmode = FALSE
//var/stealthcooldown = 0
/obj/item/implant/hijack/activate()
. = ..()
@@ -18,13 +18,13 @@
imp_in.click_intercept = src
imp_in.siliconaccesstoggle = TRUE
to_chat(imp_in,"<span class='notice'>You turn on [src]'s silicon interactions.</span>")
if (ishuman(imp_in) && !stealthmode)
if (ishuman(imp_in)/* && !stealthmode*/)
toggle_eyes(TRUE)
else
imp_in.click_intercept = null
imp_in.siliconaccesstoggle = FALSE
to_chat(imp_in,"<span class='notice'>You turn off [src]'s silicon interactions.</span>")
if (ishuman(imp_in) && !stealthmode)
if (ishuman(imp_in)/* && !stealthmode*/)
toggle_eyes(FALSE)
/obj/item/implant/hijack/proc/toggle_eyes(on)
@@ -58,8 +58,8 @@
/obj/item/implant/hijack/proc/InterceptClickOn(mob/living/user,params,atom/object)
if (user.get_active_held_item() || isitem(object) || !toggled || user.incapacitated())
return
if (stealthmode == FALSE && istype(object,/obj/machinery/power/apc))
hijack_remotely()
//if (stealthmode == FALSE && istype(object,/obj/machinery/power/apc))
// hijack_remotely()
var/area/a = get_area(object)
if (!hasSiliconAccessInArea(imp_in,a))
return
@@ -80,6 +80,7 @@
object.attack_ai(imp_in)
return TRUE
/* for later
/obj/item/implant/hijack/proc/hijack_remotely(/obj/machinery/power/apc/apc)
if (apc.hijacker)
return //can't remotely hijack an already hijacked APC
@@ -89,4 +90,6 @@
apc.update_icon()
cooldown = world.time + 2 MINUTES
toggle_eyes(TRUE)
stealthmode = FALSE
stealthmode = FALSE
*/