Hl2 Camera coding

maveryck21

Newbie
Joined
Mar 7, 2005
Messages
122
Reaction score
0
Hi there,

I have a doubt about coding the hl2 player camera.

The camera angle is limited on the Pitch axis but is there any way to create limits on the Yaw axis?

I want the player to be able to only twist the head 90 degrees each side.

How can I do this?

Thanks for any help
 
well i know that there is a function in c_baseplayer called calcineyeview or something like that. it basically applies the angle to the player's view you might want to look into that.
 
Back
Top