NTIRC Communicators (#11658)

This commit is contained in:
Geeves
2021-04-28 16:56:16 +02:00
committed by GitHub
parent 044fb79497
commit 1dd5b25354
7 changed files with 41 additions and 10 deletions
@@ -102,6 +102,7 @@
for(var/obj/item/computer_hardware/CH in src.get_all_components())
uninstall_component(null, CH)
qdel(CH)
listening_objects -= src
STOP_PROCESSING(SSprocessing, src)
QDEL_NULL(listener)
return ..()
@@ -319,3 +319,11 @@
/obj/item/modular_computer/GetID()
if(card_slot)
return card_slot.stored_card
/obj/item/modular_computer/hear_talk(mob/M, text, verb, datum/language/speaking)
if(Adjacent(M))
var/datum/computer_file/program/chat_client/P = hard_drive.find_file_by_name("ntnrc_client")
if(!P || (P.program_state == PROGRAM_STATE_KILLED && P.service_state == PROGRAM_STATE_KILLED))
return
if(P.focused_conv)
P.focused_conv.cl_send(P, text, M)