mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Buffs the Camera bug by adding hidden cameras (#21618)
* LETS GOOOOOo * desc * steel review * ASYNC MAGIC! * lewcc review * i cant spell * async
This commit is contained in:
@@ -3,14 +3,15 @@
|
||||
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"
|
||||
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
|
||||
var/connections = 0
|
||||
|
||||
/obj/machinery/computer/security/camera_bug
|
||||
name = "invasive camera utility"
|
||||
@@ -22,7 +23,7 @@
|
||||
. = ..()
|
||||
integrated_console = new(src)
|
||||
integrated_console.parent = src
|
||||
integrated_console.network = list("SS13")
|
||||
integrated_console.network = list("SS13", "camera_bug[UID()]")
|
||||
|
||||
/obj/item/camera_bug/Destroy()
|
||||
QDEL_NULL(integrated_console)
|
||||
@@ -43,3 +44,56 @@
|
||||
. = ..()
|
||||
integrated_console.network = list("ERT")
|
||||
|
||||
/obj/item/wall_bug
|
||||
name = "\improper small camera"
|
||||
desc = "A camera with a sticky backside."
|
||||
icon = 'icons/obj/device.dmi'
|
||||
icon_state = "wall_bug"
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
var/obj/machinery/camera/portable/camera
|
||||
var/index = "REPORT THIS TO CODERS"
|
||||
|
||||
/obj/item/wall_bug/Initialize(mapload, obj/item/camera_bug/the_bug)
|
||||
. = ..()
|
||||
link_to_camera(the_bug)
|
||||
AddComponent(/datum/component/sticky)
|
||||
|
||||
/obj/item/wall_bug/Destroy()
|
||||
QDEL_NULL(camera)
|
||||
. = ..()
|
||||
|
||||
/obj/item/wall_bug/examine(mob/user)
|
||||
. = ..()
|
||||
if(in_range(user, src))
|
||||
. += "It has a small label on it reading \"[index]\"."
|
||||
|
||||
/obj/item/wall_bug/proc/link_to_camera(obj/item/camera_bug/camera_bug)
|
||||
if(!istype(camera_bug))
|
||||
return
|
||||
if(camera) // we can't link twice
|
||||
return
|
||||
camera_bug.connections++
|
||||
index = camera_bug.connections
|
||||
|
||||
camera = new /obj/machinery/camera/portable(src)
|
||||
camera.network = list("camera_bug[camera_bug.UID()]")
|
||||
camera.c_tag = "Hidden Camera [index]"
|
||||
|
||||
/obj/item/paper/camera_bug
|
||||
name = "Camera Bug Guide"
|
||||
icon_state = "paper"
|
||||
info = {"<b>Instructions on your new invasive camera utility</b><br>
|
||||
<br>
|
||||
This camera bug can access all default cameras on the station, along with the hidden cameras provided in this kit.<br>
|
||||
<br>
|
||||
The cameras in this kit have a sticky backside, allowing you to attach them to literally anything, even people.<br>
|
||||
<br>
|
||||
You may remove the cameras from said objects by grabbing them with an empty hand.<br>
|
||||
<br>
|
||||
You can view these hidden cameras by looking up "Hidden Camera" on your camera bug.<br>
|
||||
<br>
|
||||
Only the camera bug provided in this kit can see these hidden cameras.<br>
|
||||
<br>
|
||||
Other Camera bugs cannot see your hidden cameras.<br>
|
||||
<br>
|
||||
There is no other way to get these hidden cameras, so make sure to not lose them!<br>"}
|
||||
|
||||
@@ -252,7 +252,7 @@
|
||||
/obj/item/storage/toolbox/syndicate,
|
||||
/obj/item/storage/backpack/clown/syndie,
|
||||
/obj/item/storage/backpack/satchel_flat,
|
||||
/obj/item/camera_bug,
|
||||
/obj/item/storage/box/syndie_kit/camera_bug,
|
||||
/obj/item/storage/belt/military/traitor,
|
||||
/obj/item/clothing/glasses/chameleon/thermal,
|
||||
/obj/item/borg/upgrade/modkit/indoors,
|
||||
|
||||
@@ -374,3 +374,12 @@ To apply, hold the injector a short distance away from the outer thigh before ap
|
||||
new /obj/item/gun/projectile/automatic/pistol(src)
|
||||
new /obj/item/ammo_box/magazine/m10mm(src)
|
||||
new /obj/item/ammo_box/magazine/m10mm(src)
|
||||
|
||||
/obj/item/storage/box/syndie_kit/camera_bug
|
||||
name = "\improper Camera Bug kit"
|
||||
|
||||
/obj/item/storage/box/syndie_kit/camera_bug/populate_contents()
|
||||
var/camera = new /obj/item/camera_bug(src)
|
||||
new /obj/item/paper/camera_bug(src)
|
||||
for(var/i in 1 to 5)
|
||||
new /obj/item/wall_bug(src, camera)
|
||||
|
||||
Reference in New Issue
Block a user