Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion code/game/machinery/doors/ministile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
flick("operate", src)
playsound(src,'sound/items/ratchet.ogg',50,0,3)
return TRUE
else if (!isliving(mover))
else if (!isliving(mover) && !istype(mover, /obj/vehicle/ridden/wheelchair))
flick("deny", src)
playsound(src,'sound/machines/deniedbeep.ogg',50,0,3)
return FALSE
Expand All @@ -44,6 +44,11 @@
if(!allowed && mover.pulledby)
allowed = allowed(mover.pulledby)

if(istype(mover, /obj/vehicle/ridden/wheelchair))
for(var/mob/living/rider in mover.buckled_mobs)
if(allowed(rider) && !mover.pulledby) //defer to the above dragging code if we are being dragged
allowed = TRUE

if(get_dir(loc, mover.loc) == dir || allowed || mover==machineclimber) //Make sure looking at appropriate border, loc is first so the turnstyle faces the mover
flick("ministile_operate", src)
playsound(src,'sound/items/ratchet.ogg',50,0,3)
Expand Down
7 changes: 6 additions & 1 deletion code/game/machinery/doors/turnstile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
flick("operate", src)
playsound(src,'sound/items/ratchet.ogg',50,0,3)
return TRUE
else if (!isliving(mover))
else if (!isliving(mover) && !istype(mover, /obj/vehicle/ridden/wheelchair))
flick("deny", src)
playsound(src,'sound/machines/deniedbeep.ogg',50,0,3)
return FALSE
Expand All @@ -44,6 +44,11 @@
if(!allowed && mover.pulledby)
allowed = allowed(mover.pulledby)

if(istype(mover, /obj/vehicle/ridden/wheelchair))
for(var/mob/living/rider in mover.buckled_mobs)
if(allowed(rider) && !mover.pulledby) //defer to the above dragging code if we are being dragged
allowed = TRUE

if(get_dir(loc, mover.loc) == dir || allowed) //Make sure looking at appropriate border, loc is first so the turnstyle faces the mover
flick("operate", src)
playsound(src,'sound/items/ratchet.ogg',50,0,3)
Expand Down