From 3d4fe982778af9af35286b4d3b7dffaa85afdabc Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Sun, 18 Mar 2018 18:18:28 -0400 Subject: [PATCH] POLARIS: Allow crawling through vertical pipes --- code/modules/multiz/movement.dm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/modules/multiz/movement.dm b/code/modules/multiz/movement.dm index caef5069345..42a501459f8 100644 --- a/code/modules/multiz/movement.dm +++ b/code/modules/multiz/movement.dm @@ -84,6 +84,16 @@ /mob/proc/can_ztravel() return 0 +/mob/living/zMove(direction) + //Sort of a lame hack to allow ztravel through zpipes. Should be improved. + if(is_ventcrawling && istype(loc,/obj/machinery/atmospherics/pipe/zpipe)) + var/obj/machinery/atmospherics/pipe/zpipe/currentpipe = loc + if(istype(currentpipe.node1,/obj/machinery/atmospherics/pipe/zpipe)) + currentpipe.ventcrawl_to(src, currentpipe.node1, direction) + else if(istype(currentpipe.node2,/obj/machinery/atmospherics/pipe/zpipe)) + currentpipe.ventcrawl_to(src, currentpipe.node2, direction) + return ..() + /mob/observer/can_ztravel() return 1