AI Detector can now only detect AI, not Abductors, Xenobio consoles or Shuttles (#15535)

* Update navigation_computer.dm

* V7

* Update navigation_computer.dm

* All instances

* Added explainers

Seems this is done some places, seems nice and easier to understand with em

* Updated name

* Change Variable name

Changed as per advise of Fox
This commit is contained in:
Kepplerx
2021-07-08 23:18:15 +01:00
committed by GitHub
parent e835205f50
commit 1d04a9ec74
6 changed files with 12 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@
. = ..()
var/obj/machinery/hologram/holopad/H = origin
H.move_hologram(eye_user, loc)
ai_detector_visible = FALSE // Holocalls dont trigger the Ai Detector
//this datum manages it's own references
@@ -101,6 +101,8 @@
/mob/camera/aiEye/remote
name = "Inactive Camera Eye"
// Abductors dont trigger the Ai Detector
ai_detector_visible = FALSE
var/sprint = 10
var/cooldown = 0
var/acceleration = 1
@@ -83,6 +83,9 @@
if(chunk)
if(chunk.seenby.len)
for(var/mob/camera/aiEye/A in chunk.seenby)
//Checks if the A is to be detected or not
if(!A.ai_detector_visible)
continue
var/turf/detect_turf = get_turf(A)
if(get_dist(our_turf, detect_turf) < rangealert)
detect_state = PROXIMITY_ON_SCREEN
@@ -16,6 +16,8 @@
var/relay_speech = FALSE
var/use_static = TRUE
var/static_visibility_range = 16
// Decides if it is shown by AI Detector or not
var/ai_detector_visible = TRUE
// Use this when setting the aiEye's location.
@@ -4,6 +4,8 @@
icon = 'icons/obj/abductor.dmi'
icon_state = "camera_target"
var/allowed_area = null
// The Xenobio Console does not trigger the AI Detector
ai_detector_visible = FALSE
/mob/camera/aiEye/remote/xenobio/New(loc)
var/area/A = get_area(loc)
@@ -264,6 +264,8 @@
visible_icon = FALSE
use_static = FALSE
simulated = FALSE
// The Shuttle Docker does not trigger the AI Detector
ai_detector_visible = FALSE
var/list/placement_images = list()
var/list/placed_images = list()