AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   complete freeze (https://forums.alliedmods.net/showthread.php?t=217417)

Menethil 06-02-2013 13:29

complete freeze
 
how can i freeze and players screen so when he move mouse nothing happens. maybe so
ething with yaw and pitch?

hornet 06-04-2013 04:12

Re: complete freeze
 
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.

Menethil 06-05-2013 12:54

Re: complete freeze
 
seted both to {0.0,0.0,0.0} And doesent seems to work at all

claudiuhks 06-05-2013 13:32

Re: complete freeze
 
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 


hornet 06-05-2013 15:11

Re: complete freeze
 
Quote:

Originally Posted by claudiuhks (Post 1965178)
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.

Menethil 06-06-2013 11:19

Re: complete freeze
 
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

TheDS1337 06-06-2013 11:31

Re: complete freeze
 
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;

Menethil 06-06-2013 12:33

Re: complete freeze
 
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


All times are GMT -4. The time now is 16:15.

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