From b2c8ce509fb2a96fe0b2ed9e99e0d229d045d58d Mon Sep 17 00:00:00 2001 From: John Doe Date: Tue, 5 Sep 2023 15:37:09 -0700 Subject: [PATCH] you can no longer haunt an m56 --- code/modules/cm_marines/smartgun_mount.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/modules/cm_marines/smartgun_mount.dm b/code/modules/cm_marines/smartgun_mount.dm index bdbbe83bda53..f1fec25a2a2e 100644 --- a/code/modules/cm_marines/smartgun_mount.dm +++ b/code/modules/cm_marines/smartgun_mount.dm @@ -654,10 +654,10 @@ update_health(severity) return -/obj/structure/machinery/m56d_hmg/proc/exit_interaction(mob/user) +/obj/structure/machinery/m56d_hmg/proc/exit_interaction() SIGNAL_HANDLER - user.unset_interaction() + operator.unset_interaction() /obj/structure/machinery/m56d_hmg/proc/update_damage_state() var/health_percent = round(health/health_max * 100) @@ -848,8 +848,7 @@ to_chat(usr, SPAN_NOTICE("You are too far from the handles to man [src]!")) /obj/structure/machinery/m56d_hmg/on_set_interaction(mob/user) - RegisterSignal(user, COMSIG_MOB_RESISTED, PROC_REF(exit_interaction)) - RegisterSignal(user, COMSIG_MOB_MG_EXIT, PROC_REF(exit_interaction)) + RegisterSignal(user, list(COMSIG_MOB_MG_EXIT, COMSIG_MOB_RESISTED, COMSIG_MOB_DEATH, COMSIG_MOB_KNOCKED_DOWN), PROC_REF(exit_interaction)) flags_atom |= RELAY_CLICK user.status_flags |= IMMOBILE_ACTION user.visible_message(SPAN_NOTICE("[user] mans \the [src]."),SPAN_NOTICE("You man \the [src], locked and loaded!"))