How to know if a player is in first person or thirdperson clientside?

Player:GetViewEntity doesn’t seem to exist clientside, and I’ve always been wondering how to know whenever the local player is visible or not. I know it’s retarded, but I still can’t find out how to do that.

-snip- That was a load of crap.

Oh, I didn’t know thirdperson was considered as a convar.
Anyway, yeah, I want it to work no matter what, this includes the thirdperson command, cameras, and CalcView.

Isn’t there an easy way to tell if an entity is being drawn or not?

It isn’t, i was totally wrong :frowning:

What about those new hooks? Post/PreDrawLocalPlayer or something. I’m pretty sure I saw them somewhere.


Kind of a hacky way would be to check the distance between GetShootPos and whatever origin is in CalcView.