From cf5ca0b79ac4f5ef1085d64d2e3650bd7531c5d5 Mon Sep 17 00:00:00 2001 From: Tofa01 Date: Mon, 27 Feb 2017 01:19:15 +1100 Subject: [PATCH] Stops AI and borgs from interfacing with ferry console --- code/modules/shuttle/ferry.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/shuttle/ferry.dm b/code/modules/shuttle/ferry.dm index 0c3ffd5fa69..525a34e10c8 100644 --- a/code/modules/shuttle/ferry.dm +++ b/code/modules/shuttle/ferry.dm @@ -5,6 +5,15 @@ possible_destinations = "ferry_home;ferry_away" req_access = list(access_cent_general) + var/aiControlDisabled = 1 + +/obj/machinery/computer/shuttle/ferry/proc/canAIControl(mob/user) + return ((aiControlDisabled != 1)); + +/obj/machinery/computer/shuttle/ferry/attack_ai(mob/user) + if(!src.canAIControl(user)) + return + /obj/machinery/computer/shuttle/ferry/request name = "ferry console" circuit = /obj/item/weapon/circuitboard/computer/ferry/request