How to know if a player is in first person or thirdperson clientside?
4 replies, posted
Title.
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.
[QUOTE=MakeR;16753809]You can get whether you are in thirdperson or not like this: [lua]GetConVarNumber("thirdperson")[/lua]
It will return 1 if you are and 0 if not.
This obviously is not what you are looking for if you are using calcview to make your own thirdperson.[/QUOTE]
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?
[QUOTE=_Kilburn;16753927]Oh, I didn't know thirdperson was considered as a convar.[/QUOTE]
It isn't, i was totally wrong :(
What about those new hooks? Post/PreDrawLocalPlayer or something. I'm pretty sure I saw them somewhere.
[b]Edit:[/b]
Kind of a hacky way would be to check the distance between GetShootPos and whatever origin is in CalcView.
Sorry, you need to Log In to post a reply to this thread.