• Best way to prevent player Eye Angles from changing
    7 replies, posted
When players are using an entity I have created, I want their Eye Angle to lock in place. The way I am currently doing it is to save their Eye Angle when they start using the entity, and then I reset their Eye Angle to that in the Use function. This seems inefficient and produces lots of jittering if the player tries to look around. Both the Player/Freeze and Player/Lock functions stop the player from using the entity, so that doesn't work for this situation. The CMoveData/SetAngles function seems promising, but there isn't much info on the wiki so I don't really know what to do with it. What is the best way to prevent player Eye Angles from changing? Thank you for your time.
You can use GM/InputMouseApply to prevent the player from moving with their mouse. You might also want to set the player's eye angles in a Move hook to prevent weapons/external sources from changing the angles.
use setupmove
Thank you very much! I should have seen that myself. Your solution works exactly as I intended!
his solution won't stop cheaters
So? I think he meant other hooks / scripts
!cake Anti
what?? his solution will not stop cheaters from changing it. I was just saying that. If he expects clients to never to be able to change angles or clients to not be able to move from a jail, then it's going to not work on cheats.
Sorry, you need to Log In to post a reply to this thread.