mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Allows wheelchair occupants to drive if the driving mob is incapacitated
This commit is contained in:
@@ -18,12 +18,17 @@
|
|||||||
buckled_mob.dir = dir
|
buckled_mob.dir = dir
|
||||||
|
|
||||||
/obj/structure/stool/bed/chair/wheelchair/relaymove(mob/user, direction)
|
/obj/structure/stool/bed/chair/wheelchair/relaymove(mob/user, direction)
|
||||||
|
// Redundant check?
|
||||||
if(user.stat || user.stunned || user.weakened || user.paralysis || user.lying || user.restrained())
|
if(user.stat || user.stunned || user.weakened || user.paralysis || user.lying || user.restrained())
|
||||||
if(user==pulling)
|
if(user==pulling)
|
||||||
pulling = null
|
pulling = null
|
||||||
user.pulledby = null
|
user.pulledby = null
|
||||||
user << "\red You lost your grip!"
|
user << "\red You lost your grip!"
|
||||||
return
|
return
|
||||||
|
if(buckled_mob && pulling && user == buckled_mob)
|
||||||
|
if(pulling.stat || pulling.stunned || pulling.weakened || pulling.paralysis || pulling.lying || pulling.restrained())
|
||||||
|
pulling.pulledby = null
|
||||||
|
pulling = null
|
||||||
if(user.pulling && (user == pulling))
|
if(user.pulling && (user == pulling))
|
||||||
pulling = null
|
pulling = null
|
||||||
user.pulledby = null
|
user.pulledby = null
|
||||||
@@ -136,12 +141,12 @@
|
|||||||
if(propelled || (pulling && (pulling.a_intent == "hurt")))
|
if(propelled || (pulling && (pulling.a_intent == "hurt")))
|
||||||
var/mob/living/occupant = buckled_mob
|
var/mob/living/occupant = buckled_mob
|
||||||
unbuckle()
|
unbuckle()
|
||||||
|
|
||||||
if (pulling && (pulling.a_intent == "hurt"))
|
if (pulling && (pulling.a_intent == "hurt"))
|
||||||
occupant.throw_at(A, 3, 3, pulling)
|
occupant.throw_at(A, 3, 3, pulling)
|
||||||
else if (propelled)
|
else if (propelled)
|
||||||
occupant.throw_at(A, 3, propelled)
|
occupant.throw_at(A, 3, propelled)
|
||||||
|
|
||||||
occupant.apply_effect(6, STUN, 0)
|
occupant.apply_effect(6, STUN, 0)
|
||||||
occupant.apply_effect(6, WEAKEN, 0)
|
occupant.apply_effect(6, WEAKEN, 0)
|
||||||
occupant.apply_effect(6, STUTTER, 0)
|
occupant.apply_effect(6, STUTTER, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user