AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved][Help] How to lock player's view (angles) (https://forums.alliedmods.net/showthread.php?t=233251)

dias 01-12-2014 01:21

[Solved][Help] How to lock player's view (angles)
 
Like the title, how to lock the player's angles... So then if they move their mouse, nothing happen in the screen, and they only aim at certain point

hornet 01-12-2014 05:21

Re: [Help] How to lock player's view (angles)
 
It can't be done perfectly since moving your mouse is client side, but it's still achievable.
You would need to register PreThink() , and set pev_angles and pev_fixangle. And another case where you would unregister the forward where possible.

ConnorMcLeod 01-12-2014 05:25

Re: [Help] How to lock player's view (angles)
 
Look at there for example : http://forums.alliedmods.net/showthread.php?p=958497

dias 01-12-2014 05:35

Re: [Help] How to lock player's view (angles)
 
So it's good to do it by setting pev_angles in PreThink although it can't be done perfectly


All times are GMT -4. The time now is 10:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.