From c71863dd5d1432d6584056ff1225e6dab2faae88 Mon Sep 17 00:00:00 2001 From: Neerti Date: Mon, 25 Jul 2016 03:51:45 -0400 Subject: [PATCH] Adds Slowdown for Pulling Heavy Items Makes dragging items which would have slowed you down if worn or carried slow you down when dragged, fixing an exploit where one could move faster by dragging something instead of carrying or wearing it. --- code/modules/mob/living/carbon/human/human_movement.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm index d1a6fab000e..ae9dd9a5061 100644 --- a/code/modules/mob/living/carbon/human/human_movement.dm +++ b/code/modules/mob/living/carbon/human/human_movement.dm @@ -35,6 +35,11 @@ for(var/obj/item/I in list(r_hand, l_hand) ) tally += max(I.slowdown, 0) + // Dragging heavy objects will also slow you down, similar to above. + if(pulling && istype(pulling, /obj/item)) + var/obj/item/pulled = pulling + tally += max(pulled.slowdown, 0) + if(istype(buckled, /obj/structure/bed/chair/wheelchair)) for(var/organ_name in list(BP_L_HAND, BP_R_HAND, BP_L_ARM, BP_R_ARM)) var/obj/item/organ/external/E = get_organ(organ_name)