this is just an idea just so you know and idk if it'd work but anyway
make it so your player is invisible and detour some functions to hide some stuff
calcview into the targets GetShootPos
if it detects the player you're spectating is out of your visleaf/is dormant or whatever teleport you above him or something like that
don't judge if this is a shitty idea pls k thx