recoil fix (#19514)

This commit is contained in:
Cameron Lennox
2026-06-07 01:20:46 -04:00
committed by GitHub
parent 9eb34a2543
commit 774e502814
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -96,7 +96,7 @@
/datum/component/remote_view/Destroy(force)
// Clear item
if(host_item)
host_item.zoom = FALSE
host_item.zoom(host_mob)
// Feedback
if(show_message)
host_mob.visible_message(span_filter_notice("[host_item.zoomdevicename ? "[host_mob] looks up from the [host_item.name]" : "[host_mob] lowers the [host_item.name]"]."))
+1
View File
@@ -876,6 +876,7 @@ GLOBAL_LIST_EMPTY(blood_overlays_by_type)
if(!zoom && can_zoom)
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
zoom = FALSE
SEND_SIGNAL(src,COMSIG_REMOTE_VIEW_CLEAR)
/obj/item/proc/pwr_drain()
+2
View File
@@ -606,6 +606,8 @@
to_chat(user, span_warning("You struggle to hold \the [src] steady!"))
if(recoil)
if(recoil > 5)
recoil = 5 //Prevents crashing user client.
shake_camera(user, recoil+1, recoil)
update_icon()