mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
// RCON REMOTE CONTROL CONSOLE
|
|
//
|
|
// Last Change 1.1.2015 by Atlantis
|
|
//
|
|
// Allows remote operation of electrical systems on station (SMESs and Breaker Boxes)
|
|
|
|
/obj/machinery/computer/rcon
|
|
name = "\improper RCON console"
|
|
desc = "Console used to remotely control machinery on the station."
|
|
icon = 'icons/obj/computer.dmi'
|
|
icon_state = "ai-fixer"
|
|
light_color = "#a97faa"
|
|
circuit = /obj/item/weapon/circuitboard/rcon_console
|
|
req_one_access = list(access_engine)
|
|
var/current_tag = null
|
|
var/obj/nano_module/rcon/rcon
|
|
|
|
/obj/machinery/computer/rcon/New()
|
|
..()
|
|
rcon = new(src)
|
|
|
|
// Proc: attack_hand()
|
|
// Parameters: 1 (user - Person which clicked this computer)
|
|
// Description: Opens UI of this machine.
|
|
/obj/machinery/computer/rcon/attack_hand(var/mob/user as mob)
|
|
..()
|
|
ui_interact(user)
|
|
|
|
// Proc: ui_interact()
|
|
// Parameters: 4 (standard NanoUI parameters)
|
|
// Description: Uses dark magic (NanoUI) to render this machine's UI
|
|
/obj/machinery/computer/rcon/ui_interact(mob/user, ui_key = "rcon", var/datum/nanoui/ui = null, var/force_open = 1)
|
|
rcon.ui_interact(user, ui_key, ui, force_open)
|