mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 04:48:18 +01:00
Rework of Multi Z vent crawling PR (#2775)
Reworks #2689 Includes: Vent crawling up and down. Quote from original PR: Main feature is that ventcrawling between Z levels now works perfectly. It takes 10 seconds to climb up or down a pipe...
This commit is contained in:
@@ -95,4 +95,24 @@ obj/machinery/atmospherics/trinary/isConnectable(var/obj/machinery/atmospherics/
|
||||
return (target == node || ..())
|
||||
|
||||
/obj/machinery/atmospherics/unary/isConnectable(var/obj/machinery/atmospherics/target)
|
||||
return (target == node || ..())
|
||||
return (target == node || ..())
|
||||
|
||||
/obj/machinery/atmospherics/proc/can_z_crawl(var/mob/living/L, var/direction)
|
||||
return FALSE
|
||||
|
||||
/obj/machinery/atmospherics/pipe/zpipe/can_z_crawl(var/mob/living/L, var/direction)
|
||||
if(L.is_ventcrawling && L.loc == src)
|
||||
if(node2 && check_connect_types(node2,src))
|
||||
if(direction == travel_direction)
|
||||
return TRUE
|
||||
|
||||
/obj/machinery/atmospherics/proc/handle_z_crawl(var/mob/living/L, var/direction)
|
||||
return
|
||||
|
||||
/obj/machinery/atmospherics/pipe/zpipe/handle_z_crawl(var/mob/living/L, var/direction)
|
||||
L << span("notice", "You start climbing [travel_direction_name] the pipe. This will take a while...")
|
||||
playsound(loc, 'sound/machines/ventcrawl.ogg', 100, 1, 3)
|
||||
if(!do_after(L, 100, needhand = 0, act_target = get_turf(src)) || !can_z_crawl(L, direction))
|
||||
L << span("danger", "You gave up on climbing [travel_direction_name] the pipe.")
|
||||
return FALSE
|
||||
return ventcrawl_to(L, node2, null)
|
||||
Reference in New Issue
Block a user