How to block the rotation of the player (without blocking the camera) ?
1 replies, posted
Hi, I am looking for a way to block the rotation of the player but without blocking the camera. As in "Prop hunt", I already searched their code and I did not find their function
video
(block the player's rotation)
It sounds like what you're looking for is a combination of the CalcView and StartCommand hooks.
You'd essentially want to use the StartCommand hook to get the X,Y movement from the CUserCmd, set the X,Y movement to 0, then use the previously obtained movement to modify the camera angle in CalcView.
Sorry, you need to Log In to post a reply to this thread.