[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:
CHOMPStation2StaffMirrorBot
2025-10-12 19:44:25 -07:00
committed by GitHub
parent b9db7ed21f
commit 7d57273375
95 changed files with 762 additions and 710 deletions

View File

@@ -875,6 +875,20 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
holder.particle_test = new /datum/particle_editor(in_atom)
holder.particle_test.tgui_interact(mob)
/client/proc/set_eye(new_eye)
if(new_eye == eye)
return
var/atom/old_eye = eye
eye = new_eye
SEND_SIGNAL(src, COMSIG_CLIENT_SET_EYE, old_eye, new_eye)
/mob/proc/is_remote_viewing()
if(!client || !client.mob || !client.eye)
return FALSE
if(isturf(client.mob.loc) && get_turf(client.eye) == get_turf(client.mob))
return FALSE
return (client.eye != client.mob)
#undef ADMINSWARNED_AT
#undef CURRENT_MINUTE
#undef CURRENT_SECOND