From c242395fa3d3e31c533bc64eab9c0b1bdd052849 Mon Sep 17 00:00:00 2001 From: forest2001 Date: Tue, 1 Aug 2023 19:19:11 +0100 Subject: [PATCH] requested changes --- code/game/objects/items/devices/motion_detector.dm | 14 +++++--------- code/modules/cm_preds/falcon.dm | 1 + code/modules/cm_tech/hologram.dm | 4 +++- .../mob/living/carbon/xenomorph/castes/Queen.dm | 1 + 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/code/game/objects/items/devices/motion_detector.dm b/code/game/objects/items/devices/motion_detector.dm index 64a7d553b40d..ee89b0fad2b1 100644 --- a/code/game/objects/items/devices/motion_detector.dm +++ b/code/game/objects/items/devices/motion_detector.dm @@ -229,17 +229,13 @@ if(human_user) show_blip(human_user, M) - for(var/mob/hologram/queen/eye in GLOB.hologram_list) - if(eye.z != cur_turf.z || !(range_bounds.contains_atom(eye))) continue + for(var/mob/hologram/holo as anything in GLOB.hologram_list) + if(!holo.motion_sensed) + return + if(holo.z != cur_turf.z || !(range_bounds.contains_atom(holo))) continue ping_count++ if(human_user) - show_blip(human_user, eye, "queen_eye") - - for(var/mob/hologram/falcon/drone in GLOB.hologram_list) - if(drone.z != cur_turf.z || !(range_bounds.contains_atom(drone))) continue - ping_count++ - if(human_user) - show_blip(human_user, drone, "queen_eye") + show_blip(human_user, holo, "queen_eye") if(ping_count > 0) playsound(loc, pick('sound/items/detector_ping_1.ogg', 'sound/items/detector_ping_2.ogg', 'sound/items/detector_ping_3.ogg', 'sound/items/detector_ping_4.ogg'), 60, 0, 7, 2) diff --git a/code/modules/cm_preds/falcon.dm b/code/modules/cm_preds/falcon.dm index 19977a7bd84a..4461f9b4f7e7 100644 --- a/code/modules/cm_preds/falcon.dm +++ b/code/modules/cm_preds/falcon.dm @@ -68,6 +68,7 @@ var/obj/item/falcon_drone/parent_drone var/obj/item/clothing/gloves/yautja/owned_bracers desc = "An agile drone used by Yautja to survey the hunting grounds." + motion_sensed = TRUE /mob/hologram/falcon/Initialize(mapload, mob/M, obj/item/falcon_drone/drone, obj/item/clothing/gloves/yautja/bracers) . = ..() diff --git a/code/modules/cm_tech/hologram.dm b/code/modules/cm_tech/hologram.dm index 83cc0937b46e..5c0e986f45b2 100644 --- a/code/modules/cm_tech/hologram.dm +++ b/code/modules/cm_tech/hologram.dm @@ -1,4 +1,4 @@ -GLOBAL_LIST_EMPTY(hologram_list) +GLOBAL_LIST_EMPTY_TYPED(hologram_list, /mob/hologram) /mob/hologram name = "Hologram" @@ -16,6 +16,8 @@ GLOBAL_LIST_EMPTY(hologram_list) var/mob/linked_mob var/datum/action/leave_hologram/leave_button + ///If can be detected on motion detectors. + var/motion_sensed = FALSE /mob/hologram/movement_delay() . = -2 // Very fast speed, so they can navigate through easily, they can't ever have movement delay whilst as a hologram diff --git a/code/modules/mob/living/carbon/xenomorph/castes/Queen.dm b/code/modules/mob/living/carbon/xenomorph/castes/Queen.dm index f3a354b42ad0..53e30d374b2c 100644 --- a/code/modules/mob/living/carbon/xenomorph/castes/Queen.dm +++ b/code/modules/mob/living/carbon/xenomorph/castes/Queen.dm @@ -68,6 +68,7 @@ /mob/hologram/queen name = "Queen Eye" action_icon_state = "queen_exit" + motion_sensed = TRUE color = "#a800a8"