Nerfs Sonic Speed Wheelchair

Porting a few things from CHOMPstation, essentially to make it so that you're not going at Mach 3.
This commit is contained in:
TheFurryFeline
2019-02-06 15:25:17 -05:00
committed by GitHub
parent abd71d0dba
commit 173347f88f
@@ -5,6 +5,7 @@
anchored = 0
buckle_movable = 1
var/move_delay = null
var/driving = 0
var/mob/living/pulling = null
var/bloodiness
@@ -29,6 +30,13 @@
/obj/structure/bed/chair/wheelchair/relaymove(mob/user, direction)
// Redundant check?
var/calculated_move_delay
calculated_move_delay += 2 //TheFurryFeline: nerfs speed so you don't go like Sonic. >W>
if(world.time < move_delay)
return
if(user.stat || user.stunned || user.weakened || user.paralysis || user.lying || user.restrained())
if(user==pulling)
pulling = null
@@ -57,6 +65,11 @@
user << "<span class='warning'>You cannot drive while being pushed.</span>"
return
move_delay = world.time
move_delay += calculated_move_delay
// Let's roll
driving = 1
var/turf/T = null