Files
Paradise/code/game/objects/items/devices/camera_bug.dm
HMBGERDO fa89a07452 Disabling sounds on using Camera Bug (#18724)
* Disabling sounds on using Camera Bug

* Update code/game/machinery/computer/camera.dm

Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>

Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
2022-08-08 00:10:29 +01:00

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"
use_power = 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")