AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Freezing a player ["Pause" Style] (https://forums.alliedmods.net/showthread.php?t=59673)

Deviance 08-18-2007 12:02

Freezing a player ["Pause" Style]
 
What i want to do is so a player can't move at all, even the aim.
Now, i know how to make the player stop moving, but i dunno how to freeze the aim.

Any ideas? :|

Toster v2.1 08-18-2007 13:36

Re: Freezing a player ["Pause" Style]
 
you could get his aiming origin and keep setting it back with prethink

Alka 08-18-2007 14:00

Re: Freezing a player ["Pause" Style]
 
Fakemeta: :P

Code:

set_pev(player, pev_flags, pev(player, pev_flags) | FL_FROZEN);

Deviance 08-18-2007 14:32

Re: Freezing a player ["Pause" Style]
 
Quote:

Originally Posted by Toster v2.1 (Post 520112)
you could get his aiming origin and keep setting it back with prethink

That's a very hacky method, i really dont want to use it.

Quote:

Originally Posted by Alka (Post 520125)
Fakemeta: :P

Code:

set_pev(player, pev_flags, pev(player, pev_flags) | FL_FROZEN);

I tested it, it freezed me in place but it didn't freeze my aim.

[X]-RayCat 08-18-2007 15:21

Re: Freezing a player ["Pause" Style]
 
Quote:

Originally Posted by Alka (Post 520125)
Fakemeta: :P

Code:

set_pev(player, pev_flags, pev(player, pev_flags) | FL_FROZEN);

AFAIK speed/jump is freezed with that function.

Alka 08-18-2007 15:22

Re: Freezing a player ["Pause" Style]
 
Yeah but not the aim! =\ Deviance that wants.


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

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