mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-28 11:11:52 +00:00
* local powernet and machine power refactor * some fixes * more tweaks + powerchange() refactor * fixes var edited apcs on meatpackers.dmm * fixes issue with power channels * Reviews * delta fix * Update code/game/machinery/portable_turret.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * removed area power change proc * damn morgues * requested changes * request changes * deconfliction * mapping fixes * some fixes from TM --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
// This item just has an integrated camera console, which the data is "proxied" to
|
|
/obj/item/camera_bug
|
|
name = "camera bug"
|
|
desc = "For illicit snooping through the camera network."
|
|
icon = 'icons/obj/device.dmi'
|
|
icon_state = "camera_bug"
|
|
w_class = WEIGHT_CLASS_TINY
|
|
item_state = "camera_bug"
|
|
throw_speed = 4
|
|
throw_range = 20
|
|
origin_tech = "syndicate=1;engineering=3"
|
|
/// Integrated camera console to serve UI data
|
|
var/obj/machinery/computer/security/camera_bug/integrated_console
|
|
|
|
/obj/machinery/computer/security/camera_bug
|
|
name = "invasive camera utility"
|
|
desc = "How did this get here?! Please report this as a bug to github"
|
|
power_state = NO_POWER_USE
|
|
silent_console = TRUE
|
|
|
|
/obj/item/camera_bug/Initialize(mapload)
|
|
. = ..()
|
|
integrated_console = new(src)
|
|
integrated_console.parent = src
|
|
integrated_console.network = list("SS13")
|
|
|
|
/obj/item/camera_bug/Destroy()
|
|
QDEL_NULL(integrated_console)
|
|
return ..()
|
|
|
|
/obj/item/camera_bug/attack_self(mob/user as mob)
|
|
ui_interact(user)
|
|
|
|
/obj/item/camera_bug/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.inventory_state)
|
|
integrated_console.ui_interact(user, ui_key, ui, force_open, master_ui, state)
|
|
|
|
|
|
/obj/item/camera_bug/ert
|
|
name = "ERT Camera Monitor"
|
|
desc = "A small handheld device used by ERT commanders to view camera feeds remotely."
|
|
|
|
/obj/item/camera_bug/ert/Initialize(mapload)
|
|
. = ..()
|
|
integrated_console.network = list("ERT")
|
|
|