mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
Remote view fix again (#19488)
* lets get the foundations right * collapsing * more cleanup * coordinator * more cleanup * put those in a better place * awa * these live in config now * that too * cleanup * changed over * cleanup * more cleanup * oop * Cleanup * deargod * sanity achieved * cleanup stuff * cleared duplicated hud code * documenting * clarify --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -874,7 +874,7 @@ GLOBAL_LIST_EMPTY(blood_overlays_by_type)
|
||||
can_zoom = FALSE
|
||||
|
||||
if(!zoom && can_zoom)
|
||||
M.AddComponent(/datum/component/remote_view/item_zoom, focused_on = M, vconfig_path = /datum/remote_view_config/zoomed_item, our_item = src, viewsize = viewsize, tileoffset = tileoffset, show_visible_messages = TRUE)
|
||||
M.AddComponent(/datum/component/remote_view, focused_on = M, vconfig_path = /datum/remote_view_config/zoomed_item, managing_item = src, viewsize = viewsize, tileoffset = tileoffset, show_visible_messages = TRUE)
|
||||
return
|
||||
SEND_SIGNAL(src,COMSIG_REMOTE_VIEW_CLEAR)
|
||||
|
||||
|
||||
@@ -104,6 +104,7 @@
|
||||
GLOB.paikeys |= new_pai.ckey
|
||||
setPersonality(new_pai)
|
||||
new_pai.apply_preferences(new_pai.client)
|
||||
new_pai.reset_perspective() // Update client view to card
|
||||
return new_pai
|
||||
|
||||
/obj/item/paicard/tgui_interact(mob/user, datum/tgui/ui)
|
||||
|
||||
@@ -212,7 +212,7 @@
|
||||
unpair(selected_camera)
|
||||
selected_camera = null
|
||||
return
|
||||
user.AddComponent(/datum/component/remote_view/item_zoom, focused_on = selected_camera, vconfig_path = /datum/remote_view_config/camera_standard, our_item = src, viewsize = null, tileoffset = 0, show_visible_messages = TRUE)
|
||||
user.AddComponent(/datum/component/remote_view, focused_on = selected_camera, vconfig_path = /datum/remote_view_config/camera_standard, managing_item = src, viewsize = null, tileoffset = 0, show_visible_messages = TRUE)
|
||||
|
||||
/obj/item/bug_monitor/proc/can_use_cam(mob/user)
|
||||
if(!cameras.len)
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
M.forceMove(loc) // Might be in a belly
|
||||
M.sdisabilities &= ~MUTE
|
||||
M.take_overall_damage((M.health - health - 100),0) //any new damage the statue incurred is transfered to the mob
|
||||
M.reset_perspective() // Fixes a blackscreen flicker
|
||||
|
||||
/obj/structure/closet/statue/open()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user