mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 22:28:44 +01:00
[MIRROR] Fixing client eye (#11812)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Will
Cameron Lennox
parent
b9db7ed21f
commit
7d57273375
@@ -216,6 +216,9 @@
|
||||
throw_range = 20
|
||||
|
||||
/obj/item/camera_bug/attack_self(mob/user as mob)
|
||||
if(in_use)
|
||||
return
|
||||
|
||||
var/list/cameras = new/list()
|
||||
for (var/obj/machinery/camera/C in cameranet.cameras)
|
||||
if (C.bugged && C.status)
|
||||
@@ -229,7 +232,10 @@
|
||||
for (var/obj/machinery/camera/C in cameras)
|
||||
friendly_cameras.Add(C.c_tag)
|
||||
|
||||
in_use = TRUE
|
||||
var/target = tgui_input_list(user, "Select the camera to observe", "Select Camera", friendly_cameras)
|
||||
in_use = FALSE
|
||||
|
||||
if (!target)
|
||||
return
|
||||
for (var/obj/machinery/camera/C in cameras)
|
||||
@@ -238,7 +244,7 @@
|
||||
break
|
||||
if (user.stat == 2) return
|
||||
|
||||
user.client.eye = target
|
||||
user.AddComponent(/datum/component/remote_view/item_zoom, focused_on = target, our_item = src, viewsize = null, tileoffset = 0, show_visible_messages = FALSE)
|
||||
|
||||
/*
|
||||
/obj/item/cigarpacket
|
||||
|
||||
Reference in New Issue
Block a user