mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
53 lines
1.7 KiB
Plaintext
53 lines
1.7 KiB
Plaintext
// Returns which access is relevant to passed network. Used by the program.
|
|
/proc/get_camera_access(var/network)
|
|
if(!network)
|
|
return 0
|
|
. = using_map.get_network_access(network)
|
|
if(.)
|
|
return
|
|
|
|
switch(network)
|
|
if(NETWORK_THUNDER)
|
|
return 0
|
|
if(NETWORK_ENGINE,NETWORK_ENGINEERING,NETWORK_ALARM_ATMOS,NETWORK_ALARM_FIRE,NETWORK_ALARM_POWER)
|
|
return access_engine
|
|
if(NETWORK_CIRCUITS)
|
|
return access_research
|
|
if(NETWORK_MINE)
|
|
return access_qm
|
|
if(NETWORK_ERT)
|
|
return access_cent_specops
|
|
//VOREStation Add Start
|
|
if(NETWORK_TALON_SHIP)
|
|
return access_talon
|
|
if(NETWORK_TALON_HELMETS)
|
|
return access_talon
|
|
//VOREStation Add End
|
|
|
|
if(network in using_map.station_networks)
|
|
return access_security // 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/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
|
|
category = PROG_MONITOR
|
|
|
|
// 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/camera/ntos/ert
|
|
available_on_ntnet = 0
|