TG: Some more fixes and tweaks. Ggh.

AI can't mess with the turrets at the satellite now.
Revision: r2962
Author: 	 vageyenaman
This commit is contained in:
Ren Erthilo
2012-04-15 20:43:29 +01:00
parent 7a111e992d
commit 0b9fc8b1e5
+7 -2
View File
@@ -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 << "<span class='notice'>There seems to be a firewall preventing you from accessing this device.</span>"
/obj/machinery/turretid/attack_hand(mob/user as mob)
if ( (get_dist(src, user) > 1 ))