Files
CHOMPStation2/code/modules/ventcrawl/ventcrawl_multiz.dm
CHOMPStation2StaffMirrorBot f72f2f8c89 [MIRROR] Server maint subsystem (#9408)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2024-11-04 22:00:41 +01:00

25 lines
813 B
Plaintext

/obj/machinery/atmospherics/pipe/zpipe/up/verb/ventcrawl_move_up()
set name = "Ventcrawl Upwards"
set desc = "Climb up through a pipe."
set category = "Abilities.General"
set src = usr.loc
var/obj/machinery/atmospherics/target = check_ventcrawl(GetAbove(loc))
if(target) ventcrawl_to(usr, target, UP)
/obj/machinery/atmospherics/pipe/zpipe/down/verb/ventcrawl_move_down()
set name = "Ventcrawl Downwards"
set desc = "Climb down through a pipe."
set category = "Abilities.General"
set src = usr.loc
var/obj/machinery/atmospherics/target = check_ventcrawl(GetBelow(loc))
if(target) ventcrawl_to(usr, target, DOWN)
/obj/machinery/atmospherics/pipe/zpipe/proc/check_ventcrawl(var/turf/target)
if(!istype(target))
return
if(node1 in target)
return node1
if(node2 in target)
return node2
return