From 606b0302261391266ffad15fe0067246c491bd2f Mon Sep 17 00:00:00 2001 From: oranges Date: Sat, 27 May 2017 22:46:27 +0000 Subject: [PATCH] Add AI disconnect The AI can now hangup holocalls --- code/game/machinery/hologram.dm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm index 41cdf87537a..477fe64b036 100644 --- a/code/game/machinery/hologram.dm +++ b/code/game/machinery/hologram.dm @@ -113,6 +113,10 @@ Possible to do for anyone motivated enough: return ..() /obj/machinery/holopad/AltClick(mob/living/carbon/human/user) + if(isAI(user)) + hangup_all_calls() + return + if(!CheckCallClose()) interact(user) @@ -158,6 +162,12 @@ Possible to do for anyone motivated enough: popup.set_title_image(user.browse_rsc_icon(src.icon, src.icon_state)) popup.open() +//Stop ringing the AI!! +/obj/machinery/holopad/proc/hangup_all_calls() + for(var/I in holo_calls) + var/datum/holocall/HC = I + HC.Disconnect(src) + /obj/machinery/holopad/Topic(href, href_list) if(..() || isAI(usr)) return