From 0b9fc8b1e59463d46182d02a52fe6974c64b6ae6 Mon Sep 17 00:00:00 2001 From: Ren Erthilo Date: Sun, 15 Apr 2012 20:43:29 +0100 Subject: [PATCH] TG: Some more fixes and tweaks. Ggh. AI can't mess with the turrets at the satellite now. Revision: r2962 Author: vageyenaman --- code/game/machinery/turrets.dm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/turrets.dm b/code/game/machinery/turrets.dm index da40b32d5b7..240e5d22913 100644 --- a/code/game/machinery/turrets.dm +++ b/code/game/machinery/turrets.dm @@ -299,11 +299,13 @@ icon_state = "motion3" anchored = 1 density = 0 - req_access = list(access_ai_upload) var/enabled = 1 var/id = "" var/lethal = 0 var/locked = 1 + var/control_area //can be area name, path or nothing. + var/ailock = 0 // AI cannot use this + req_access = list(access_ai_upload) var/similar_controls var/turrets @@ -351,7 +353,10 @@ user << "\red Access denied." /obj/machinery/turretid/attack_ai(mob/user as mob) - return attack_hand(user) + if(!ailock) + return attack_hand(user) + else + user << "There seems to be a firewall preventing you from accessing this device." /obj/machinery/turretid/attack_hand(mob/user as mob) if ( (get_dist(src, user) > 1 ))