-Put in a control_disabled check for AIs operating cameras and calling/recalling the shuttle. Meaning they can't do any of those if they are carded without wireless.

-Moved the AI shuttle calling proc from communications.dm to ai.dm

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4516 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
sieve32@gmail.com
2012-08-22 18:31:58 +00:00
parent b4c859c800
commit f3b3cb368a
3 changed files with 31 additions and 20 deletions
+30
View File
@@ -199,11 +199,41 @@
src << browse(dat, "window=airoster")
onclose(src, "airoster")
/mob/living/silicon/ai/proc/ai_call_shuttle()
set category = "AI Commands"
set name = "Call Emergency Shuttle"
if(usr.stat == 2)
usr << "You can't call the shuttle because you are dead!"
return
if(istype(usr,/mob/living/silicon/ai))
var/mob/living/silicon/ai/AI = usr
if(AI.control_disabled)
usr << "Wireless control is disabled!"
return
var/confirm = alert("Are you sure you want to call the shuttle?", "Confirm Shuttle Call", "Yes", "No")
if(confirm == "Yes")
call_shuttle_proc(src)
// hack to display shuttle timer
if(emergency_shuttle.online)
var/obj/machinery/computer/communications/C = locate() in world
if(C)
C.post_status("shuttle")
return
/mob/living/silicon/ai/proc/ai_cancel_call()
set category = "AI Commands"
if(usr.stat == 2)
usr << "You can't send the shuttle back because you are dead!"
return
if(istype(usr,/mob/living/silicon/ai))
var/mob/living/silicon/ai/AI = usr
if(AI.control_disabled)
usr << "Wireless control is disabled!"
return
cancel_call_proc(src)
return
@@ -7,6 +7,7 @@
/client/proc/AIMove(n,direct,var/mob/living/silicon/ai/user)
if(!user) return
if(user.control_disabled) return
var/min_dist = 1e8
var/obj/machinery/camera/closest = null