Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusLarsson421 committed Sep 10, 2024
1 parent 76b7766 commit 53b5378
Show file tree
Hide file tree
Showing 6 changed files with 224 additions and 10 deletions.
8 changes: 4 additions & 4 deletions _maps/map_files/BoxStation/BoxStation.dmm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions _maps/map_files/KiloStation/KiloStation.dmm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions code/game/machinery/doors/door.dm
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
explosion_block = EXPLOSION_BLOCK_PROC
RegisterSignal(SSsecurity_level, COMSIG_SECURITY_LEVEL_CHANGED, PROC_REF(check_security_level))

//Check for access var edit.
//Check for mapping helper.
//Check for area code.

/obj/machinery/door/examine(mob/user)
. = ..()
if(red_alert_access)
Expand Down
8 changes: 4 additions & 4 deletions code/game/objects/objs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ CREATION_TEST_IGNORE_SELF(/obj)
var/list/unique_reskin_icon //List of icons for said options.

// Access levels, used in modules\jobs\access.dm
var/list/req_access
var/req_access_txt = "0"
var/list/req_one_access
var/req_one_access_txt = "0"
var/list/req_access = list()
var/req_access_txt = null
var/list/req_one_access = list()
var/req_one_access_txt = null
/// Custom fire overlay icon
var/custom_fire_overlay

Expand Down
210 changes: 210 additions & 0 deletions code/modules/mapping/mapping_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,216 @@ CREATION_TEST_IGNORE_SUBTYPES(/obj/effect/mapping_helpers)
else
airlock.abandoned = TRUE

/obj/effect/mapping_helpers/airlock/access
var/access
icon_state = "access_helper"

/obj/effect/mapping_helpers/airlock/access/payload(obj/machinery/door/airlock/airlock)
if(airlock.req_one_access_txt == "null")
airlock.req_one_access += access

//SECURITY
/obj/effect/mapping_helpers/airlock/access/station/security
access = ACCESS_SECURITY
color = "#DE3A3A"
/obj/effect/mapping_helpers/airlock/access/station/security/brig
access = ACCESS_BRIG
/obj/effect/mapping_helpers/airlock/access/station/security/armoury
access = ACCESS_ARMORY
/obj/effect/mapping_helpers/airlock/access/station/security/prison
access = ACCESS_PRISONER
/obj/effect/mapping_helpers/airlock/access/station/security/brig_phys
access = ACCESS_BRIGPHYS
/obj/effect/mapping_helpers/airlock/access/station/security/court
access = ACCESS_COURT
/obj/effect/mapping_helpers/airlock/access/station/security/outpost
access = ACCESS_SEC_DOORS
/obj/effect/mapping_helpers/airlock/access/station/security/mech
access = ACCESS_MECH_SECURITY

//MEDICAL
/obj/effect/mapping_helpers/airlock/access/station/medical
access = ACCESS_MEDICAL
color = "#52B4E9"
/obj/effect/mapping_helpers/airlock/access/station/medical/morgue
access = ACCESS_MORGUE
/obj/effect/mapping_helpers/airlock/access/station/medical/genetics
access = ACCESS_GENETICS
/obj/effect/mapping_helpers/airlock/access/station/medical/chemistry
access = ACCESS_CHEMISTRY
/obj/effect/mapping_helpers/airlock/access/station/medical/virology
access = ACCESS_VIROLOGY
/obj/effect/mapping_helpers/airlock/access/station/medical/surgery
access = ACCESS_SURGERY
/obj/effect/mapping_helpers/airlock/access/station/medical/cloning
access = ACCESS_CLONING
/obj/effect/mapping_helpers/airlock/access/station/medical/mech
access = ACCESS_MECH_MEDICAL

//SCIENCE
/obj/effect/mapping_helpers/airlock/access/station/science
access = ACCESS_TOX
color = "#D381C9"
/obj/effect/mapping_helpers/airlock/access/station/science/storage
access = ACCESS_TOX_STORAGE
/obj/effect/mapping_helpers/airlock/access/station/science/robotics
access = ACCESS_ROBOTICS
/obj/effect/mapping_helpers/airlock/access/station/science/researchh
access = ACCESS_RESEARCH
/obj/effect/mapping_helpers/airlock/access/station/science/exploration
access = ACCESS_EXPLORATION
/obj/effect/mapping_helpers/airlock/access/station/science/xenobiology
access = ACCESS_XENOBIOLOGY
/obj/effect/mapping_helpers/airlock/access/station/science/servers
access = ACCESS_RD_SERVER
/obj/effect/mapping_helpers/airlock/access/station/science/mech
access = ACCESS_MECH_SCIENCE

//ENGINEERING
/obj/effect/mapping_helpers/airlock/access/station/engineering
access = ACCESS_CONSTRUCTION
color = "#EFB341"
/obj/effect/mapping_helpers/airlock/access/station/engineering/engineering
access = ACCESS_ENGINE
/obj/effect/mapping_helpers/airlock/access/station/engineering/tech_storage
access = ACCESS_TECH_STORAGE
/obj/effect/mapping_helpers/airlock/access/station/engineering/atmospherics
access = ACCESS_ATMOSPHERICS
/obj/effect/mapping_helpers/airlock/access/station/engineering/telecomms
access = ACCESS_TCOMSAT
/obj/effect/mapping_helpers/airlock/access/station/engineering/mech
access = ACCESS_MECH_ENGINE
/obj/effect/mapping_helpers/airlock/access/station/engineering/maintenance
access = ACCESS_MAINT_TUNNELS
/obj/effect/mapping_helpers/airlock/access/station/engineering/external_airlocks
access = ACCESS_EXTERNAL_AIRLOCKS

//COMMAND
/obj/effect/mapping_helpers/airlock/access/station/command
access = ACCESS_HEADS
color = "#486091"
/obj/effect/mapping_helpers/airlock/access/station/command/ai_upload
access = ACCESS_AI_UPLOAD
/obj/effect/mapping_helpers/airlock/access/station/command/teleporter
access = ACCESS_TELEPORTER
/obj/effect/mapping_helpers/airlock/access/station/command/eva
access = ACCESS_EVA
/obj/effect/mapping_helpers/airlock/access/station/command/heads/cap
access = ACCESS_CAPTAIN
/obj/effect/mapping_helpers/airlock/access/station/command/heads/cmo
access = ACCESS_CMO
/obj/effect/mapping_helpers/airlock/access/station/command/heads/rd
access = ACCESS_RD
/obj/effect/mapping_helpers/airlock/access/station/command/heads/ce
access = ACCESS_CE
/obj/effect/mapping_helpers/airlock/access/station/command/heads/hop
access = ACCESS_HOP
/obj/effect/mapping_helpers/airlock/access/station/command/heads/hos
access = ACCESS_HOS
/obj/effect/mapping_helpers/airlock/access/station/command/gateway
access = ACCESS_GATEWAY
/obj/effect/mapping_helpers/airlock/access/station/command/mini_sat
access = ACCESS_MINISAT

//SERVICE
/obj/effect/mapping_helpers/airlock/access/station/service
color = "#9FED58"
/obj/effect/mapping_helpers/airlock/access/station/service/chapel
access = ACCESS_CHAPEL_OFFICE
/obj/effect/mapping_helpers/airlock/access/station/service/bar
access = ACCESS_BAR
/obj/effect/mapping_helpers/airlock/access/station/service/janitor
access = ACCESS_JANITOR
/obj/effect/mapping_helpers/airlock/access/station/service/crematorium
access = ACCESS_CREMATORIUM
/obj/effect/mapping_helpers/airlock/access/station/service/kitchen
access = ACCESS_KITCHEN
/obj/effect/mapping_helpers/airlock/access/station/service/hydroponics
access = ACCESS_HYDROPONICS
/obj/effect/mapping_helpers/airlock/access/station/service/library
access = ACCESS_LIBRARY
/obj/effect/mapping_helpers/airlock/access/station/service/lawyer
access = ACCESS_LAWYER
/obj/effect/mapping_helpers/airlock/access/station/service/theater
access = ACCESS_THEATRE

//SUPPLY
/obj/effect/mapping_helpers/airlock/access/station/supply
access = ACCESS_CARGO
color = "#A46106"
/obj/effect/mapping_helpers/airlock/access/station/supply/qm
access = ACCESS_QM
/obj/effect/mapping_helpers/airlock/access/station/supply/mining
access = ACCESS_MINING
/obj/effect/mapping_helpers/airlock/access/station/supply/mail
access = ACCESS_MAILSORTING
/obj/effect/mapping_helpers/airlock/access/station/supply/vault
access = ACCESS_VAULT
/obj/effect/mapping_helpers/airlock/access/station/supply/mining_outpost
access = ACCESS_MINING_STATION
/obj/effect/mapping_helpers/airlock/access/station/supply/aux_base
access = ACCESS_AUX_BASE
/obj/effect/mapping_helpers/airlock/access/station/supply/mech
access = ACCESS_MECH_MINING

//BEGIN CENTCOM ACCESS
/obj/effect/mapping_helpers/airlock/access/admin
access = ACCESS_CENT_GENERAL
color = "#9FED58"
/obj/effect/mapping_helpers/airlock/access/admin/thunder
access = ACCESS_CENT_THUNDER
/obj/effect/mapping_helpers/airlock/access/admin/specops
access = ACCESS_CENT_SPECOPS
/obj/effect/mapping_helpers/airlock/access/admin/medical
access = ACCESS_CENT_MEDICAL
/obj/effect/mapping_helpers/airlock/access/admin/dorms
access = ACCESS_CENT_LIVING
/obj/effect/mapping_helpers/airlock/access/admin/storage
access = ACCESS_CENT_STORAGE
/obj/effect/mapping_helpers/airlock/access/admin/teleporter
access = ACCESS_CENT_TELEPORTER
/obj/effect/mapping_helpers/airlock/access/admin/captain
access = ACCESS_CENT_CAPTAIN
/obj/effect/mapping_helpers/airlock/access/admin/bar
access = ACCESS_CENT_BAR

//Antagonists
/obj/effect/mapping_helpers/airlock/access/antagonists
color = "#DE3A3A"
/obj/effect/mapping_helpers/airlock/access/antagonists/syndicate
access = ACCESS_SYNDICATE
/obj/effect/mapping_helpers/airlock/access/antagonists/syndicate/leader
access = ACCESS_SYNDICATE_LEADER
/obj/effect/mapping_helpers/airlock/access/antagonists/pirates
access = ACCESS_PIRATES
/obj/effect/mapping_helpers/airlock/access/antagonists/bounty_hunters
access = ACCESS_HUNTERS
/obj/effect/mapping_helpers/airlock/access/antagonists/blood_cult/
access = ACCESS_BLOODCULT
/obj/effect/mapping_helpers/airlock/access/antagonists/clock_cult/
access = ACCESS_CLOCKCULT

//Away Missions or Ruins
/obj/effect/mapping_helpers/airlock/access/away
access = ACCESS_AWAY_GENERAL
color = "#D4D4D4"
/obj/effect/mapping_helpers/airlock/access/away/maintenance
access = ACCESS_AWAY_MAINT
/obj/effect/mapping_helpers/airlock/access/away/medical
access = ACCESS_AWAY_MED
/obj/effect/mapping_helpers/airlock/access/away/security
access = ACCESS_AWAY_SEC
/obj/effect/mapping_helpers/airlock/access/away/engineering
access = ACCESS_AWAY_ENGINE
/obj/effect/mapping_helpers/airlock/access/away/generic1
access = ACCESS_AWAY_GENERIC1
/obj/effect/mapping_helpers/airlock/access/away/generic2
access = ACCESS_AWAY_GENERIC2
/obj/effect/mapping_helpers/airlock/access/away/generic3
access = ACCESS_AWAY_GENERIC3
/obj/effect/mapping_helpers/airlock/access/away/generic4
access = ACCESS_AWAY_GENERIC4

//APC helpers
/obj/effect/mapping_helpers/apc

Expand Down
Binary file modified icons/effects/mapping_helpers.dmi
Binary file not shown.

0 comments on commit 53b5378

Please sign in to comment.