mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-22 11:36:38 +01:00
Adds a delay to wheelchairs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user