mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 23:49:21 +01:00
Relaymove Moved To Remote Views (#18714)
* Remote view setting datums * remote view handles relayed move * setting up checks * many fixes * small fixes * default relay behavior * use camera settings * coordinated for overmap shuttle * lock this down * not needed * not needed * inaccurate doc * small fixes * various set machine calls no longer needed * runtime * health hud moved to signal controls * overriding huds * allow signal based huds entirely * uav health icon * fix * oops that's important * more return types * mmis view fix * not needed * protect against instantly deleted ghosts * all of these need remote on enter * these too * order
This commit is contained in:
@@ -306,10 +306,10 @@
|
||||
if(remote_comp?.looking_at_target_already(loc))
|
||||
return FALSE
|
||||
if(isitem(loc) || isbelly(loc)) // Requires more careful handling than structures because they are held by mobs
|
||||
AddComponent(/datum/component/remote_view/mob_holding_item, loc)
|
||||
AddComponent(/datum/component/remote_view/mob_holding_item, focused_on = loc, vconfig_path = null)
|
||||
return TRUE
|
||||
if(loc.flags & REMOTEVIEW_ON_ENTER) // Handle atoms that begin a remote view upon entering them.
|
||||
AddComponent(/datum/component/remote_view, loc)
|
||||
AddComponent(/datum/component/remote_view, focused_on = loc, vconfig_path = null)
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
@@ -564,7 +564,7 @@
|
||||
var/mob/mob_eye = targets[eye_name]
|
||||
|
||||
if(client && mob_eye)
|
||||
AddComponent(/datum/component/remote_view, focused_on = mob_eye)
|
||||
AddComponent(/datum/component/remote_view, focused_on = mob_eye, vconfig_path = null)
|
||||
if(is_admin)
|
||||
client.adminobs = TRUE
|
||||
if(mob_eye == client.mob || !is_remote_viewing())
|
||||
@@ -573,7 +573,6 @@
|
||||
/mob/verb/cancel_camera()
|
||||
set name = "Cancel Camera View"
|
||||
set category = "OOC.Game"
|
||||
unset_machine()
|
||||
reset_perspective()
|
||||
|
||||
/mob/Topic(href, href_list)
|
||||
|
||||
Reference in New Issue
Block a user