From 8cc8f73cccadcc84b52368e9b7df7c82c2a80cdc Mon Sep 17 00:00:00 2001 From: Verkister Date: Sun, 12 Jan 2020 02:09:56 +0200 Subject: [PATCH] Fixes mob riding double input exploit The rider's movement input is now ignored if the mount has moved within the last second. --- code/modules/mob/mob_movement.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index c4dd1b86b0c..1759df01dd0 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -212,6 +212,10 @@ //drunk driving if(mob.confused && prob(20)) //vehicles tend to keep moving in the same direction direct = turn(direct, pick(90, -90)) + if(istype(mob.buckled, /mob)) //VOREStation Edit to prevent mob riding speed exploit. + var/mob/M = mob.buckled + if(M.move_delay > mob.move_delay - 10) + return return mob.buckled.relaymove(mob,direct) if(istype(mob.machine, /obj/machinery))