Raised This Month: $ Target: $400
 0% 

complete freeze


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Menethil
Senior Member
Join Date: Aug 2011
Old 06-02-2013 , 13:29   complete freeze
Reply With Quote #1

how can i freeze and players screen so when he move mouse nothing happens. maybe so
ething with yaw and pitch?
Menethil is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-04-2013 , 04:12   Re: complete freeze
Reply With Quote #2

You would have to set client's v_angle to 0.0 0.0 0.0 and pev_fixangle in prethink. However players will still be able to move their mouse slightly since it is client side, but the server will lock their angle back to what you set.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Menethil
Senior Member
Join Date: Aug 2011
Old 06-05-2013 , 12:54   Re: complete freeze
Reply With Quote #3

seted both to {0.0,0.0,0.0} And doesent seems to work at all
Menethil is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-05-2013 , 13:32   Re: complete freeze
Reply With Quote #4

I don't know what to say, try this:

PHP Code:
set_pevClientpev_flagspevClientpev_flags ) | FL_FROZEN ); // freeze
set_pevClientpev_flagspevClientpev_flags ) &= ~FL_FROZEN ); // unfreeze 
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-05-2013 , 15:11   Re: complete freeze
Reply With Quote #5

Quote:
Originally Posted by claudiuhks View Post
I don't know what to say, try this:

PHP Code:
set_pevClientpev_flagspevClientpev_flags ) | FL_FROZEN ); // freeze
set_pevClientpev_flagspevClientpev_flags ) &= ~FL_FROZEN ); // unfreeze 
Not what he asked for.

@Menethil post what you tried.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Menethil
Senior Member
Join Date: Aug 2011
Old 06-06-2013 , 11:19   Re: complete freeze
Reply With Quote #6

Player prethink
{
set_pev(Index, pev_v_angle, {0.0,0.0,0.0})
set_pev(index, pev_fixangle, {0.0,0.0,0.0})
}
i tryed many ways, but no luck.
if i spawn something to to follow my angle will stay locked to where i spawn, but i want to block mouse movement.
im on phone, may be typos
Menethil is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-06-2013 , 11:31   Re: complete freeze
Reply With Quote #7

Code:
set_pev( Index, pev_velocity, { 0.0, 0.0, 0.0 } ); set_pev( Index, pev_maxspeed, 0.0 );
btw, you can add something like that
Code:
if( pev( Index, pev_button ) )         return FMRES_SUPERCEDE;

Last edited by TheDS1337; 06-06-2013 at 11:42.
TheDS1337 is offline
Menethil
Senior Member
Join Date: Aug 2011
Old 06-06-2013 , 12:33   Re: complete freeze
Reply With Quote #8

i need to block players screen. damn ... the image to be locked in place , to cant look around, i want to freeze them in place, image too, not only movement.
i just still need the mouse part, i tryed with yaw, but no luck with pitch
Menethil is offline
Reply


Thread Tools
Display Modes

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 16:15.


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