Files
Monara 15210446c0 Atlas map bugfix catchup (#6185)
## About The Pull Request

Many mapfixes including but not limited to:
  Gravity in security prep
  Scrubbers/vents in security EVA
  Relabeling core ejection buttons in Engineering
Medical tint control fixes, and glass/electrochromic doors and windows
at reception
Surgery now has tintable windows/doors, and a surgery sign all linked to
the same button(s)
  Nebula Gas Tradeport has its landing zones fixed (hopefully)
  Backup bodycams for sec/exploration
Body/helmet cameras placed into all security/exploration lockers (some
only getting bodycams due to limited access to helmets)
Access fix for exploration bodycams. All exploration roles can view
cameras from tablets/laptops as long as they have pilot access.
  +more

## Why It's Good For The Game

Bugfixes and QOL additions.
2023-12-12 06:08:09 -08:00

83 lines
3.0 KiB
Plaintext

// Returns which access is relevant to passed network. Used by the program.
/proc/get_camera_access(var/network)
if(!network)
return 0
. = (LEGACY_MAP_DATUM).get_network_access(network)
if(.)
return
switch(network)
if(NETWORK_THUNDER)
return 0
if(NETWORK_ENGINE,NETWORK_ALARM_ATMOS,NETWORK_ALARM_FIRE,NETWORK_ALARM_POWER)
return ACCESS_ENGINEERING_MAIN
if(NETWORK_CIRCUITS)
return ACCESS_SCIENCE_MAIN
if(NETWORK_ERT)
return ACCESS_CENTCOM_ERT
if(network in (LEGACY_MAP_DATUM).station_networks)
return ACCESS_SECURITY_MAIN // Default for all other station networks
else
return 999 //Inaccessible if not a station network and not mentioned above
/datum/computer_file/program/camera_monitor
filename = "cammon"
filedesc = "Camera Monitoring"
tguimodule_path = /datum/tgui_module_old/camera/ntos
program_icon_state = "cameras"
program_key_state = "generic_key"
program_menu_icon = "search"
extended_desc = "This program allows remote access to the camera system. Most camera networks may have additional access requirements."
size = 12
available_on_ntnet = 1
requires_ntnet = 1
// ERT Variant of the program
/datum/computer_file/program/camera_monitor/ert
filename = "ntcammon"
filedesc = "Advanced Camera Monitoring"
extended_desc = "This program allows remote access to the camera system. Some camera networks may have additional access requirements. This version has an integrated database with additional encrypted keys."
size = 14
tguimodule_path = /datum/tgui_module_old/camera/ntos/ert
available_on_ntnet = 0
//Helmet Cameras
/datum/computer_file/program/camera_monitor/helmet
filename = "helmetcammon"
filedesc = "Helmet Camera Monitoring"
tguimodule_path = /datum/tgui_module_old/camera/ntos/helmet
program_icon_state = "cameras"
program_key_state = "generic_key"
program_menu_icon = "search"
extended_desc = "This program allows remote access to all civilian helmet cameras."
size = 8
available_on_ntnet = 1
requires_ntnet = 1
/datum/computer_file/program/camera_monitor/sechelmet
filename = "sechelmetcammon"
filedesc = "Security Helmet Camera Monitoring"
tguimodule_path = /datum/tgui_module_old/camera/ntos/security_helmet
program_icon_state = "cameras"
program_key_state = "generic_key"
program_menu_icon = "search"
extended_desc = "This program allows remote access to all civilian helmet cameras. This camera network requires Security clearance."
size = 8
available_on_ntnet = 1
requires_ntnet = 1
required_access = ACCESS_SECURITY_EQUIPMENT
/datum/computer_file/program/camera_monitor/explohelmet
filename = "explohelmetcammon"
filedesc = "Exploration Helmet Camera Monitoring"
tguimodule_path = /datum/tgui_module_old/camera/ntos/exploration_helmet
program_icon_state = "cameras"
program_key_state = "generic_key"
program_menu_icon = "search"
extended_desc = "This program allows remote access to all civilian helmet cameras. This camera network requires Exploration clearance."
size = 8
available_on_ntnet = 1
requires_ntnet = 1
required_access = ACCESS_GENERAL_PILOT