Remove hatches from CC airlocks (#3255)

changes:

CC airlocks & airlocks spawned on an admin Z now start without drone hatches.
This commit is contained in:
Lohikar
2017-08-09 12:35:05 -05:00
committed by Erki
parent c3c31c85ea
commit a43e757f16

View File

@@ -145,6 +145,7 @@
icon = 'icons/obj/doors/Doorele.dmi'
opacity = 0
hatch_colour = "#606061"
hashatch = FALSE
/obj/machinery/door/airlock/centcom/attackby(obj/item/I, mob/user)
if (operating)
@@ -209,12 +210,13 @@
hatch_colour = "#5b5b5b"
var/hatch_colour_bolted = "#695a5a"
update_icon()//Special hatch colour setting for this one snowflakey door that changes color when bolted
/obj/machinery/door/airlock/hatch/update_icon()//Special hatch colour setting for this one snowflakey door that changes color when bolted
if (hashatch)
if(density && locked && lights && src.arePowerSystemsOn())
hatch_image.color = hatch_colour_bolted
else
hatch_image.color = hatch_colour
..()
..()
/obj/machinery/door/airlock/maintenance_hatch
name = "Maintenance Hatch"
@@ -1138,6 +1140,12 @@ About the new airlock wires panel:
return ..(M)
/obj/machinery/door/airlock/Initialize(mapload, obj/structure/door_assembly/assembly = null)
var/on_admin_z = FALSE
//wires & hatch - this needs to be done up here so the hatch isn't generated by the parent Initialize().
if(loc && (z in config.admin_levels))
on_admin_z = TRUE
hashatch = FALSE
. = ..()
//if assembly is given, create the new door from the assembly
@@ -1165,9 +1173,8 @@ About the new airlock wires panel:
//get the dir from the assembly
set_dir(assembly.dir)
//wires
if(loc && (z in config.admin_levels))
secured_wires = 1
if (on_admin_z)
secured_wires = TRUE
if (secured_wires)
wires = new/datum/wires/airlock/secure(src)