mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
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:
@@ -212,6 +212,10 @@
|
|||||||
//drunk driving
|
//drunk driving
|
||||||
if(mob.confused && prob(20)) //vehicles tend to keep moving in the same direction
|
if(mob.confused && prob(20)) //vehicles tend to keep moving in the same direction
|
||||||
direct = turn(direct, pick(90, -90))
|
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)
|
return mob.buckled.relaymove(mob,direct)
|
||||||
|
|
||||||
if(istype(mob.machine, /obj/machinery))
|
if(istype(mob.machine, /obj/machinery))
|
||||||
|
|||||||
Reference in New Issue
Block a user