Camera Update+Camera Bugs

This commit is contained in:
Fox-McCloud
2015-02-28 04:01:14 -05:00
parent 8ac9e69043
commit 62462c876f
12 changed files with 596 additions and 369 deletions
-36
View File
@@ -479,42 +479,6 @@
icon_state = "power_mod"
desc = "Charging circuits for power cells."
/obj/item/device/camera_bug
name = "camera bug"
desc = "Tiny electronic device meant to bug cameras for viewing later."
icon = 'icons/obj/device.dmi'
icon_state = "implant_evil"
w_class = 1.0
item_state = ""
throw_speed = 4
throw_range = 20
/obj/item/weapon/camera_bug/attack_self(mob/usr as mob)
var/list/cameras = new/list()
for (var/obj/machinery/camera/C in cameranet.cameras)
if (C.bugged && C.status)
cameras.Add(C)
if (length(cameras) == 0)
usr << "\red No bugged functioning cameras found."
return
var/list/friendly_cameras = new/list()
for (var/obj/machinery/camera/C in cameras)
friendly_cameras.Add(C.c_tag)
var/target = input("Select the camera to observe", null) as null|anything in friendly_cameras
if (!target)
return
for (var/obj/machinery/camera/C in cameras)
if (C.c_tag == target)
target = C
break
if (usr.stat == 2) return
usr.client.eye = target
/obj/item/weapon/hatchet
name = "hatchet"
desc = "A very sharp axe blade upon a short fibremetal handle. It has a long history of chopping things, but now it is used for chopping wood."