mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[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:
committed by
GitHub
parent
b9db7ed21f
commit
7d57273375
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user