mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 23:52:12 +00:00
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:
@@ -145,6 +145,7 @@
|
|||||||
icon = 'icons/obj/doors/Doorele.dmi'
|
icon = 'icons/obj/doors/Doorele.dmi'
|
||||||
opacity = 0
|
opacity = 0
|
||||||
hatch_colour = "#606061"
|
hatch_colour = "#606061"
|
||||||
|
hashatch = FALSE
|
||||||
|
|
||||||
/obj/machinery/door/airlock/centcom/attackby(obj/item/I, mob/user)
|
/obj/machinery/door/airlock/centcom/attackby(obj/item/I, mob/user)
|
||||||
if (operating)
|
if (operating)
|
||||||
@@ -209,12 +210,13 @@
|
|||||||
hatch_colour = "#5b5b5b"
|
hatch_colour = "#5b5b5b"
|
||||||
var/hatch_colour_bolted = "#695a5a"
|
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())
|
if(density && locked && lights && src.arePowerSystemsOn())
|
||||||
hatch_image.color = hatch_colour_bolted
|
hatch_image.color = hatch_colour_bolted
|
||||||
else
|
else
|
||||||
hatch_image.color = hatch_colour
|
hatch_image.color = hatch_colour
|
||||||
..()
|
..()
|
||||||
|
|
||||||
/obj/machinery/door/airlock/maintenance_hatch
|
/obj/machinery/door/airlock/maintenance_hatch
|
||||||
name = "Maintenance Hatch"
|
name = "Maintenance Hatch"
|
||||||
@@ -1138,6 +1140,12 @@ About the new airlock wires panel:
|
|||||||
return ..(M)
|
return ..(M)
|
||||||
|
|
||||||
/obj/machinery/door/airlock/Initialize(mapload, obj/structure/door_assembly/assembly = null)
|
/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
|
//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
|
//get the dir from the assembly
|
||||||
set_dir(assembly.dir)
|
set_dir(assembly.dir)
|
||||||
|
|
||||||
//wires
|
if (on_admin_z)
|
||||||
if(loc && (z in config.admin_levels))
|
secured_wires = TRUE
|
||||||
secured_wires = 1
|
|
||||||
|
|
||||||
if (secured_wires)
|
if (secured_wires)
|
||||||
wires = new/datum/wires/airlock/secure(src)
|
wires = new/datum/wires/airlock/secure(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user