From e2a416d3b5926a873a6d547ac2eec953e6d2a90b Mon Sep 17 00:00:00 2001 From: TheGamerdk <5618080+TheGamerdk@users.noreply.github.com> Date: Wed, 16 Aug 2023 12:35:51 +0200 Subject: [PATCH] maybe this works. --- code/modules/cm_marines/overwatch.dm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/code/modules/cm_marines/overwatch.dm b/code/modules/cm_marines/overwatch.dm index 6d13c04e4118..4ebb53b0db5f 100644 --- a/code/modules/cm_marines/overwatch.dm +++ b/code/modules/cm_marines/overwatch.dm @@ -70,6 +70,8 @@ to_chat(user, SPAN_WARNING("You don't have the training to use [src].")) return + user.set_interaction(src) + tgui_interact(user) /obj/structure/machinery/computer/overwatch/get_examine_text(mob/user) @@ -95,7 +97,7 @@ return data /obj/structure/machinery/computer/overwatch/tgui_interact(mob/user, datum/tgui/ui) - user.set_interaction(src) + if(!tacmap.map_holder) var/level = SSmapping.levels_by_trait(tacmap.targeted_ztrait) if(!level[1]) @@ -326,7 +328,9 @@ var/mob/user = usr - user.set_interaction(src) + if((user.contents.Find(src) || (in_range(src, user) && istype(loc, /turf))) || (ishighersilicon(user))) + user.set_interaction(src) + switch(action) if("pick_squad") if(current_squad) @@ -859,9 +863,6 @@ /obj/structure/machinery/computer/overwatch/almayer/broken name = "Broken Overwatch Console" -/obj/structure/machinery/computer/overwatch/almayer/broken/process() - return PROCESS_KILL - /obj/structure/machinery/computer/overwatch/clf faction = FACTION_CLF /obj/structure/machinery/computer/overwatch/upp