From 4161f712dfd131ec6bd370700e71d5bfaf71c33e Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 17 Jul 2024 17:34:46 +0200 Subject: [PATCH] [MIRROR] Stopping orbiting now automatically breaks you out of autoobserve (#28889) * Stopping orbiting now automatically breaks you out of autoobserve (#84987) ## About The Pull Request If you move off someone you automatically stop autoobserve (stop viewing their UI and seeing from their perspective) ## Why It's Good For The Game Only way to stop autoobserve right now is via orbit UI, and following in chat does not break you out of it either. And if you have closed your orbit window, you need to open it from ghost tab as you no longer have a button for it, which can be annoying. ## Changelog :cl: qol: Stopping orbiting now automatically breaks you out of autoobserve /:cl: * Stopping orbiting now automatically breaks you out of autoobserve --------- Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> --- code/modules/mob/dead/observer/observer.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 54678d2399c..7f38332aa7a 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -520,6 +520,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp . = ..() //restart our floating animation after orbit is done. pixel_y = base_pixel_y + // if we were autoobserving, reset perspective + if (!isnull(client) && !isnull(client.eye)) + reset_perspective(null) /mob/dead/observer/verb/jumptomob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak set category = "Ghost"