mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-31 11:47:09 +01:00
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request converts global vars to regular defines <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> ## Why It's Good For The Game <!-- Argue for the merits of your changes and how they benefit the game, especially if they are controversial and/or far reaching. If you can't actually explain WHY what you are doing will improve the game, then it probably isn't good for the game in the first place. --> ## Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly mark your PRs to prevent unnecessary GBP loss. You can read up on GBP and it's effects on PRs in the tgstation guides for contributors. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> 🆑 code: radiocode now uses defines, you cant tweak it from world.variables anymore (or whatever that is) /🆑 <!-- Both 🆑's are required for the changelog to work! You can put your name to the right of the first 🆑 if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
153 lines
4.7 KiB
Plaintext
153 lines
4.7 KiB
Plaintext
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:31
|
|
/obj/machinery/computer/security
|
|
name = "security camera monitor"
|
|
desc = "Used to access the various cameras on the station."
|
|
|
|
icon_keyboard = "security_key"
|
|
icon_screen = "cameras"
|
|
light_color = "#a91515"
|
|
circuit = /obj/item/circuitboard/security
|
|
|
|
var/list/network = list()
|
|
|
|
var/datum/tgui_module_old/camera/camera
|
|
|
|
/obj/machinery/computer/security/Initialize(mapload)
|
|
. = ..()
|
|
if(!LAZYLEN(network))
|
|
network = get_default_networks()
|
|
camera = new(src, network)
|
|
|
|
/obj/machinery/computer/security/proc/get_default_networks()
|
|
. = (LEGACY_MAP_DATUM).station_networks.Copy()
|
|
|
|
/obj/machinery/computer/security/Destroy()
|
|
QDEL_NULL(camera)
|
|
return ..()
|
|
|
|
/obj/machinery/computer/security/ui_interact(mob/user, datum/tgui/ui = null)
|
|
camera.ui_interact(user, ui)
|
|
|
|
/obj/machinery/computer/security/attack_hand(mob/user, datum/event_args/actor/clickchain/e_args)
|
|
add_fingerprint(user)
|
|
if(machine_stat & (BROKEN|NOPOWER))
|
|
return
|
|
ui_interact(user)
|
|
|
|
/obj/machinery/computer/security/attack_robot(mob/user)
|
|
if(isrobot(user))
|
|
var/mob/living/silicon/robot/R = user
|
|
if(!R.shell)
|
|
return attack_hand(user)
|
|
..()
|
|
|
|
/obj/machinery/computer/security/attack_ai(mob/user)
|
|
if(isAI(user))
|
|
to_chat(user, "<span class='notice'>You realise its kind of stupid to access a camera console when you have the entire camera network at your metaphorical fingertips</span>")
|
|
return
|
|
attack_hand(user)
|
|
|
|
/obj/machinery/computer/security/proc/set_network(list/new_network)
|
|
network = new_network
|
|
camera.network = network
|
|
camera.access_based = FALSE
|
|
|
|
//Camera control: arrow keys.
|
|
/obj/machinery/computer/security/telescreen
|
|
name = "Telescreen"
|
|
desc = "Used for watching an empty arena."
|
|
icon_state = "wallframe"
|
|
layer = ABOVE_WINDOW_LAYER
|
|
icon_keyboard = null
|
|
icon_screen = null
|
|
light_range_on = 0
|
|
network = list(NETWORK_THUNDER)
|
|
density = 0
|
|
circuit = null
|
|
depth_projected = FALSE
|
|
|
|
/obj/machinery/computer/security/telescreen/entertainment
|
|
name = "entertainment monitor"
|
|
desc = "Damn, why do they never have anything interesting on these things?"
|
|
icon = 'icons/obj/status_display.dmi'
|
|
icon_screen = "entertainment"
|
|
light_color = "#FFEEDB"
|
|
light_range_on = 2
|
|
network = list(NETWORK_THUNDER)
|
|
circuit = /obj/item/circuitboard/security/telescreen/entertainment
|
|
var/obj/item/radio/radio = null
|
|
|
|
/obj/machinery/computer/security/telescreen/entertainment/Initialize(mapload)
|
|
. = ..()
|
|
radio = new(src)
|
|
radio.listening = TRUE
|
|
radio.broadcasting = FALSE
|
|
radio.set_frequency(FREQ_ENTERTAINMENT)
|
|
radio.canhear_range = 7 // Same as default sight range.
|
|
power_change()
|
|
|
|
/obj/machinery/computer/security/telescreen/entertainment/power_change()
|
|
..()
|
|
if(radio)
|
|
if(machine_stat & NOPOWER)
|
|
radio.on = FALSE
|
|
else
|
|
radio.on = TRUE
|
|
|
|
/obj/machinery/computer/security/wooden_tv
|
|
name = "security camera monitor"
|
|
desc = "An old TV hooked into the station's camera network."
|
|
icon_state = "television"
|
|
icon_keyboard = null
|
|
icon_screen = "detective_tv"
|
|
circuit = /obj/item/circuitboard/security/tv
|
|
light_color = "#3848B3"
|
|
light_power_on = 0.5
|
|
|
|
/obj/machinery/computer/security/mining
|
|
name = "outpost camera monitor"
|
|
desc = "Used to watch over mining operations."
|
|
icon_keyboard = "mining_key"
|
|
icon_screen = "mining"
|
|
network = list("Mining Outpost")
|
|
circuit = /obj/item/circuitboard/security/mining
|
|
light_color = "#F9BBFC"
|
|
|
|
/obj/machinery/computer/security/engineering
|
|
name = "engineering camera monitor"
|
|
desc = "Used to monitor fires and breaches."
|
|
icon_keyboard = "power_key"
|
|
icon_screen = "engie_cams"
|
|
circuit = /obj/item/circuitboard/security/engineering
|
|
light_color = "#FAC54B"
|
|
|
|
/obj/machinery/computer/security/engineering/get_default_networks()
|
|
. = engineering_networks.Copy()
|
|
|
|
/obj/machinery/computer/security/nuclear
|
|
name = "head mounted camera monitor"
|
|
desc = "Used to access the built-in cameras in helmets."
|
|
icon_state = "syndicam"
|
|
network = list(NETWORK_MERCENARY)
|
|
circuit = null
|
|
req_access = list(150)
|
|
|
|
|
|
/obj/machinery/camera/network/research/xenobio
|
|
network = list(NETWORK_RESEARCH, NETWORK_XENOBIO)
|
|
/obj/machinery/computer/security/xenobio
|
|
name = "xenobiology camera monitor"
|
|
desc = "Used to access the xenobiology cell cameras."
|
|
icon_keyboard = "mining_key"
|
|
icon_screen = "mining"
|
|
network = list(NETWORK_XENOBIO)
|
|
circuit = /obj/item/circuitboard/security/xenobio
|
|
light_color = "#F9BBFC"
|
|
|
|
/obj/item/circuitboard/security/xenobio
|
|
// name = T_BOARD("xenobiology camera monitor") // Macro is loaded after this, dont want to mess with changing its location so just gonna manually name this one
|
|
name = "xenobiology camera monitor tech board"
|
|
build_path = /obj/machinery/computer/security/xenobio
|
|
network = list(NETWORK_XENOBIO)
|
|
req_access = list()
|