From bc7088a6d7c983de381e106f48bfeeb2f1effa5c Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Sun, 1 Mar 2015 19:40:02 -0500 Subject: [PATCH] Added AIeye to new system --- .../mob/living/silicon/ai/freelook/eye.dm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm index 833d08e7cb4..50b60912107 100644 --- a/code/modules/mob/living/silicon/ai/freelook/eye.dm +++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm @@ -14,7 +14,21 @@ status_flags = GODMODE // You can't damage it. mouse_opacity = 0 see_in_dark = 7 - invisibility = INVISIBILITY_AI_EYE + invisibility = SEE_INVISIBLE_OBSERVER + var/ghostimage = null + +/mob/aiEye/New() + ghostimage = image(src.icon,src,src.icon_state) + ghost_darkness_images |= ghostimage //so ghosts can see the blob cursor when they disable darkness + updateallghostimages() + ..() + +/mob/aiEye/Destroy() + if (ghostimage) + ghost_darkness_images -= ghostimage + qdel(ghostimage) + ghostimage = null; + updateallghostimages() // Movement code. Returns 0 to stop air movement from moving it. /mob/aiEye/Move() @@ -25,7 +39,7 @@ set popup_menu = 0 set src = usr.contents return 0 - + /mob/aiEye/pull() set popup_menu = 0 set src = usr.contents