Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
2019 Mapping Update #3
Browse files Browse the repository at this point in the history
Added firedoor spawners, as well as icons for the access spawners.
  • Loading branch information
ZeWaka committed May 23, 2019
1 parent 3192d1e commit 73bce6a
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 1 deletion.
75 changes: 74 additions & 1 deletion code/obj/access_spawn.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/obj/access_spawn
name = "access spawn"
desc = "Sets access of machines on the same turf as it to its access, then destroys itself."
icon = 'icons/effects/mapeditor.dmi'
icon_state = "access_spawn"

New()
..()
Expand All @@ -21,191 +23,262 @@
M.req_access += src.req_access
//todo : autoname doors here too. var editing is illegal!

#define MEDICAL "#3daff7"
#define SECURITY "#f73d3d"
#define MORGUE_BLACK "#002135"
#define TOXINS "#a3f73d"
#define RESEARCH "#b23df7"
#define ENGINEERING "#f7af3d"
#define CARGO "#f7e43d"
#define MAINT "#e5ff32"
#define COMMAND "#00783c"

/obj/access_spawn/security
name = "security access spawn"
req_access = list(access_security)
color = SECURITY

/obj/access_spawn/forensics
name = "forensics access spawn"
req_access = list(access_forensics_lockers)
color = SECURITY

/obj/access_spawn/brig
name = "brig access spawn"
req_access = list(access_brig)
color = SECURITY

/obj/access_spawn/medical
name = "medical access spawn"
req_access = list(access_medical)
color = MEDICAL

/obj/access_spawn/morgue
name = "morgue access spawn"
req_access = list(access_morgue)
color = MORGUE_BLACK

/obj/access_spawn/tox
name = "tox access spawn"
req_access = list(access_tox)
color = TOXINS

/obj/access_spawn/tox_storage
name = "tox access spawn"
req_access = list(access_tox_storage)
color = TOXINS

/obj/access_spawn/medlab
name = "medlab access spawn"
req_access = list(access_medlab)
color = MEDICAL

/obj/access_spawn/research_director
name = "RD access spawn"
req_access = list(access_research_director)
color = RESEARCH

/obj/access_spawn/maint
name = "maint access spawn"
req_access = list(access_maint_tunnels)
color = MAINT

/obj/access_spawn/emergency_storage
name = "emergency storage access spawn"
req_access = list(access_emergency_storage)
color = MAINT

/obj/access_spawn/emergency_storage
name = "emergency storage access spawn"
req_access = list(access_emergency_storage)
color = MAINT

/obj/access_spawn/ai_upload
name = "ai upload access spawn"
req_access = list(access_ai_upload)
color = COMMAND

/obj/access_spawn/teleporter
name = "teleporter access spawn"
req_access = list(access_teleporter)
color = COMMAND

/obj/access_spawn/eva
name = "eva access spawn"
req_access = list(access_eva)
color = COMMAND

/obj/access_spawn/heads
name = "heads access spawn"
req_access = list(access_heads)
color = COMMAND

/obj/access_spawn/captain
name = "captain access spawn"
req_access = list(access_captain)
color = COMMAND

/obj/access_spawn/medical_director
name = "MD access spawn"
req_access = list(access_medical_director)
color = MEDICAL

/obj/access_spawn/head_of_personnel
name = "HOP access spawn"
req_access = list(access_head_of_personnel)
color = COMMAND

/obj/access_spawn/chapel_office
name = "chapel office access spawn"
req_access = list(access_chapel_office)
color = MAINT

/obj/access_spawn/tech_storage
name = "tech storage access spawn"
req_access = list(access_tech_storage)
color = MAINT

/obj/access_spawn/research
name = "research access spawn"
req_access = list(access_research)
color = RESEARCH

/obj/access_spawn/bar
name = "bar access spawn"
req_access = list(access_bar)
color = MAINT

/obj/access_spawn/janitor
name = "janitor access spawn"
req_access = list(access_janitor)
color = MAINT

/obj/access_spawn/crematorium
name = "crematorium access spawn"
req_access = list(access_crematorium)
color = MAINT

/obj/access_spawn/kitchen
name = "kitchen access spawn"
req_access = list(access_kitchen)
color = MAINT

/obj/access_spawn/robotics
name = "robotics access spawn"
req_access = list(access_robotics)
color = MEDICAL

/obj/access_spawn/hangar
name = "hangar access spawn"
req_access = list(access_hangar)
color = CARGO

/obj/access_spawn/cargo
name = "cargo access spawn"
req_access = list(access_cargo)
color = CARGO

/obj/access_spawn/chemistry
name = "chem access spawn"
req_access = list(access_chemistry)
color = RESEARCH

/obj/access_spawn/hydro
name = "hydro access spawn"
req_access = list(access_hydro)
color = MAINT

/obj/access_spawn/hos
name = "HOS access spawn"
req_access = list(access_maxsec)
color = SECURITY

/obj/access_spawn/sec_lockers
name = "security weapons access spawn"
req_access = list(access_securitylockers)
color = SECURITY

/obj/access_spawn/carry_permit
name = "carry permit access spawn"
req_access = list(access_carrypermit)
color = SECURITY

/obj/access_spawn/engineering
name = "engineering access spawn"
req_access = list(access_engineering)
color = ENGINEERING

/obj/access_spawn/engineering_storage
name = "engineering storage access spawn"
req_access = list(access_engineering_storage)
color = ENGINEERING

/obj/access_spawn/engineering_eva
name = "engineering EVA access spawn"
req_access = list(access_engineering_eva)
color = ENGINEERING

/obj/access_spawn/engineering_power
name = "engineering power access spawn"
req_access = list(access_engineering_power)
color = ENGINEERING

/obj/access_spawn/engineering_engine
name = "engineering engine access spawn"
req_access = list(access_engineering_engine)
color = ENGINEERING

/obj/access_spawn/engineering_power
name = "engineering power access spawn"
req_access = list(access_engineering_power)
color = ENGINEERING

/obj/access_spawn/engineering_mechanic
name = "engineering mechanics access spawn"
req_access = list(access_engineering_mechanic)
color = ENGINEERING

/obj/access_spawn/engineering_atmos
name = "engineering atmos access spawn"
req_access = list(access_engineering_atmos)
color = ENGINEERING

/obj/access_spawn/engineering_control
name = "engineering control access spawn"
req_access = list(access_engineering_control)
color = ENGINEERING

/obj/access_spawn/engineering_chief
name = "CE access spawn"
req_access = list(access_engineering_chief)
color = ENGINEERING

/obj/access_spawn/mining_shuttle
name = "mining_shuttle access spawn"
req_access = list(access_mining_shuttle)
color = CARGO

/obj/access_spawn/mining
name = "mining EVA access spawn"
req_access = list(access_mining)
color = CARGO

/obj/access_spawn/mining_outpost
name = "mining_outpost access spawn"
req_access = list(access_mining_outpost)
color = CARGO

/obj/access_spawn/syndie_shuttle
name = "syndie_shuttle access spawn"
req_access = list(access_syndicate_shuttle)
req_access = list(access_syndicate_shuttle)
color = SECURITY

#undef MEDICAL
#undef SECURITY
#undef MORGUE_BLACK
#undef TOXINS
#undef RESEARCH
#undef ENGINEERING
#undef CARGO
#undef MAINT
#undef COMMAND
21 changes: 21 additions & 0 deletions code/obj/machinery/door/firedoor.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
/var/const/OPEN = 1
/var/const/CLOSED = 2

/obj/firedoor_spawn
name = "firedoor spawn"
desc = "Place this over a door to spawn a firedoor underneath. Sets direction, too!"
icon = 'icons/obj/doors/Doorfire.dmi'
icon_state = "f_spawn"

New()
..()
spawn(1)
src.setup()
spawn(10)
qdel(src)

proc/setup()
for (var/obj/machinery/door/D in src.loc)
var/obj/machinery/door/firedoor/pyro/P = new/obj/machinery/door/firedoor/pyro(src.loc)
P.loc = src.loc
P.dir = D.dir
P.layer = D.layer + 0.01
break

/obj/machinery/door/firedoor
name = "Firelock"
desc = "Thick, fire-proof doors that prevent the spread of fire, they can only be pried open unless the fire alarm is cleared."
Expand Down
Binary file added icons/effects/mapeditor.dmi
Binary file not shown.
Binary file modified icons/obj/doors/Doorfire.dmi
Binary file not shown.

0 comments on commit 73bce6a

Please sign in to comment.