Raised This Month: $ Target: $400
 0% 

[Solved][Help] How to lock player's view (angles)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 01-12-2014 , 01:21   [Solved][Help] How to lock player's view (angles)
Reply With Quote #1

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

Last edited by dias; 01-12-2014 at 05:56.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 01-12-2014 , 05:21   Re: [Help] How to lock player's view (angles)
Reply With Quote #2

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.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-12-2014 , 05:25   Re: [Help] How to lock player's view (angles)
Reply With Quote #3

Look at there for example : http://forums.alliedmods.net/showthread.php?p=958497
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 01-12-2014 , 05:35   Re: [Help] How to lock player's view (angles)
Reply With Quote #4

So it's good to do it by setting pev_angles in PreThink although it can't be done perfectly

Last edited by dias; 01-12-2014 at 05:39.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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