mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
Merge pull request #3711 from Tastyfish/cartdoors
Allows wheelchairs, janicarts, and ambulances to open doors
This commit is contained in:
@@ -91,6 +91,10 @@
|
||||
move_delay = 0
|
||||
else
|
||||
user << "<span class='notice'>You'll need the keys in one of your hands to drive this [callme].</span>"
|
||||
|
||||
/obj/structure/stool/bed/chair/janicart/Bump(atom/A)
|
||||
if(buckled_mob && istype(A, /obj/machinery/door))
|
||||
A.Bumped(buckled_mob)
|
||||
|
||||
/obj/structure/stool/bed/chair/janicart/user_buckle_mob(mob/living/M, mob/user)
|
||||
if(user.incapacitated()) //user can't move the mob on the janicart's turf if incapacitated
|
||||
|
||||
@@ -72,6 +72,9 @@
|
||||
..()
|
||||
if(!buckled_mob) return
|
||||
|
||||
if(istype(A, /obj/machinery/door))
|
||||
A.Bumped(buckled_mob)
|
||||
|
||||
if(propelled)
|
||||
var/mob/living/occupant = buckled_mob
|
||||
unbuckle_mob()
|
||||
@@ -150,7 +153,7 @@
|
||||
else
|
||||
. = 1
|
||||
|
||||
/obj/structure/stool/bed/chair/wheelchair/handle_rotation()
|
||||
/obj/structure/stool/bed/chair/wheelchair/bike/handle_rotation()
|
||||
overlays = null
|
||||
var/image/O = image(icon = 'icons/vehicles/motorcycle.dmi', icon_state = "motorcycle_overlay_4d", layer = FLY_LAYER, dir = src.dir)
|
||||
overlays += O
|
||||
|
||||
Reference in New Issue
Block a user