Fixes mob riding double input exploit

The rider's movement input is now ignored if the mount has moved within the last second.
This commit is contained in:
Verkister
2020-01-12 02:09:56 +02:00
committed by GitHub
parent af973e5bde
commit 8cc8f73ccc

View File

@@ -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))