Adds ability for the AI to toggle movement of its hologram.

This commit is contained in:
Neerti
2015-04-14 08:34:02 -04:00
parent 89acd29a04
commit fb4543c179
3 changed files with 23 additions and 9 deletions
+2 -1
View File
@@ -19,7 +19,8 @@
//Holopad
if(ai.holo)
ai.holo.move_hologram(ai)
if(ai.hologram_follow)
ai.holo.move_hologram(ai)
return 1
// AI MOVEMENT
+12 -1
View File
@@ -22,7 +22,8 @@ var/list/ai_verbs_default = list(
/mob/living/silicon/ai/proc/sensor_mode,
/mob/living/silicon/ai/proc/show_laws_verb,
/mob/living/silicon/ai/proc/toggle_acceleration,
/mob/living/silicon/ai/proc/toggle_camera_light
/mob/living/silicon/ai/proc/toggle_camera_light,
/mob/living/silicon/ai/proc/toggle_hologram_movement
)
//Not sure why this is necessary...
@@ -76,6 +77,7 @@ var/list/ai_verbs_default = list(
var/datum/trackable/track = null
var/last_announcement = ""
var/datum/announcement/priority/announcement
var/hologram_follow = 1 //This is used for the AI eye, to determine if a holopad's hologram should follow it or not.
/mob/living/silicon/ai/proc/add_ai_verbs()
src.verbs |= ai_verbs_default
@@ -664,6 +666,15 @@ var/list/ai_verbs_default = list(
set desc = "Augment visual feed with internal sensor overlays"
toggle_sensor_mode()
/mob/living/silicon/ai/proc/toggle_hologram_movement()
set name = "Toggle Hologram Movement"
set category = "AI Commands"
set desc = "Toggles hologram movement based on moving with your virtual eye."
hologram_follow = !hologram_follow
usr << "Your hologram will [hologram_follow ? "follow" : "no longer follow"] you now."
/mob/living/silicon/ai/proc/check_unable(var/flags = 0)
if(stat == DEAD)
usr << "\red You are dead!"