Adds a delay to wheelchairs

This commit is contained in:
Jon
2018-10-22 19:25:12 +01:00
parent 46b8f0eab0
commit bb91b92119
@@ -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,14 @@
/obj/structure/bed/chair/wheelchair/relaymove(mob/user, direction)
// Redundant check?
var/calculated_move_delay
calculated_move_delay += 2 //WHEELCHAIRS ARENT FUCKING SONIC CHAIRS.
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 +66,9 @@
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