From b08cc3d3a1bbca83a910175cbd8f1876b832866c Mon Sep 17 00:00:00 2001 From: Geeves Date: Thu, 1 Aug 2024 17:52:10 +0200 Subject: [PATCH] AI Visible Emotes Fix (#19733) * Fixed AIs not being able to see visible emotes through holopads. This fix worked on my local, but I'd like a test merge just to be sure. --- code/game/machinery/hologram.dm | 3 +++ html/changelogs/geeves-ai_visible_emotes.yml | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 html/changelogs/geeves-ai_visible_emotes.yml diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm index d2b66280c3d..49aad0d3840 100644 --- a/code/game/machinery/hologram.dm +++ b/code/game/machinery/hologram.dm @@ -77,6 +77,8 @@ Possible to do for anyone motivated enough: light_color = long_range ? rgb(225, 173, 125) : rgb(125, 180, 225) + GLOB.listening_objects += src + /obj/machinery/hologram/holopad/proc/get_holopad_id() var/area/A = get_area(src) holopad_id = "[A.name] ([src.x]-[src.y]-[src.z])" @@ -522,6 +524,7 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/ clear_holos(TRUE) SSmachinery.all_holopads -= src linked_pdas.Cut() + GLOB.listening_objects -= src return ..() /obj/effect/overlay/hologram diff --git a/html/changelogs/geeves-ai_visible_emotes.yml b/html/changelogs/geeves-ai_visible_emotes.yml new file mode 100644 index 00000000000..213eebcf39f --- /dev/null +++ b/html/changelogs/geeves-ai_visible_emotes.yml @@ -0,0 +1,6 @@ +author: Geeves + +delete-after: True + +changes: + - bugfix: "Fixed AIs not being able to see visible emotes through holopads." \ No newline at end of file