OOP pipe-crawling procs

You can now weld scrubbers, which stops their airflow and also crawling
through them. There is now a proc for if a mob can ventcrawl through a pipe.
This commit is contained in:
ComicIronic
2015-04-20 14:44:52 -07:00
committed by Tigercat2000
parent 65ea7e07d9
commit b96f5ea7ef
5 changed files with 50 additions and 13 deletions
+8 -5
View File
@@ -271,19 +271,22 @@ mob/living
var/obj/machinery/atmospherics/unary/vent_found
if(clicked_on && Adjacent(clicked_on))
var/obj/machinery/atmospherics/unary/vent_pump/v = clicked_on
if(!istype(v) || !v.welded)
vent_found = clicked_on
vent_found = clicked_on
if(!istype(vent_found) || !vent_found.can_crawl_through())
vent_found = null
if(!vent_found)
for(var/obj/machinery/atmospherics/machine in range(1,src))
if(is_type_in_list(machine, ventcrawl_machinery))
vent_found = machine
var/obj/machinery/atmospherics/unary/vent_pump/v = machine
if(istype(v) && v.welded)
if(!vent_found.can_crawl_through())
vent_found = null
if(vent_found)
break
if(vent_found)
if(vent_found.network && (vent_found.network.normal_members.len || vent_found.network.line_members.len))