From d5f0c10ac3d98c493f45aca2c4954acd3b68fea3 Mon Sep 17 00:00:00 2001 From: AnturK Date: Tue, 1 Aug 2017 13:54:57 +0200 Subject: [PATCH] Makes cyborg remote interaction limited. --- code/_onclick/cyborg.dm | 3 +-- code/modules/mob/living/silicon/robot/robot.dm | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/_onclick/cyborg.dm b/code/_onclick/cyborg.dm index 0fe73bad6ef..b6f612bcda8 100644 --- a/code/_onclick/cyborg.dm +++ b/code/_onclick/cyborg.dm @@ -56,8 +56,7 @@ var/obj/item/W = get_active_held_item() - // Cyborgs have no range-checking unless there is item use - if(!W) + if(!W && get_dist(src,A) <= remote_range) A.attack_robot(src) return diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 7a9269d647e..2874a087422 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -93,6 +93,8 @@ /obj/item/clothing/head/sombrero, /obj/item/clothing/head/witchunter_hat) + var/remote_range = 7 //How far can you interact with machines. + can_buckle = TRUE buckle_lying = FALSE can_ride_typecache = list(/mob/living/carbon/human)