mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-24 08:37:10 +01:00
3/3 is world structs and the fun that comes with that this pr has: - transitions - new multiz system - lookup optimizations - misc updates --------- Co-authored-by: silicons <no@you.cat>
31 lines
875 B
Plaintext
31 lines
875 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"
|
|
set src = usr.loc
|
|
var/turf/T = loc
|
|
if(!istype(T))
|
|
return
|
|
var/obj/machinery/atmospherics/target = check_ventcrawl(T.above())
|
|
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"
|
|
set src = usr.loc
|
|
var/turf/T = loc
|
|
if(!istype(T))
|
|
return
|
|
var/obj/machinery/atmospherics/target = check_ventcrawl(T.below())
|
|
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
|