Raised This Month: $ Target: $400
 0% 

[REQ] Block Player Moves / Look around


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MrMaCEEE
Senior Member
Join Date: Apr 2010
Location: PortugaL
Old 01-16-2013 , 01:17   [REQ] Block Player Moves / Look around
Reply With Quote #1

Hey people, its possible block all player moviments, and block looking around? In other words, freeze completely player, but only other players seen the men freezed, in player (freezed) camera he can look around but he cant move. If its possible you can do with cvar?

eg. "say /freezeme"

I stay freezed, i cant do any move (DISABLE "W" "A" "S" "D" "+DUCK" "+JUMP" "+ATTACK1" "+ATTACK2" keys) but i can look around but the other players dont see me looking around, they only see me freezed.

and when i "say /unfreeze" i can do all moviments and its seen by other players, normal gameplay.

Thanks for help
__________________

#include ++ by MACE

Last edited by MrMaCEEE; 01-16-2013 at 01:20. Reason: forget some keys :D
MrMaCEEE is offline
Send a message via MSN to MrMaCEEE
Kiske
Veteran Member
Join Date: May 2009
Old 01-16-2013 , 05:35   Re: [REQ] Block Player Moves / Look around
Reply With Quote #2

Set:
PHP Code:
entity_set_int(idEV_INT_flagsentity_get_int(idEV_INT_flags) | FL_FROZEN); 
Remove:
PHP Code:
entity_set_int(idEV_INT_flagsentity_get_int(idEV_INT_flags) & ~FL_FROZEN); 
Kiske is offline
Send a message via Skype™ to Kiske
MrMaCEEE
Senior Member
Join Date: Apr 2010
Location: PortugaL
Old 01-16-2013 , 06:04   Re: [REQ] Block Player Moves / Look around
Reply With Quote #3

Quote:
Originally Posted by Kiske View Post
Set:
PHP Code:
entity_set_int(idEV_INT_flagsentity_get_int(idEV_INT_flags) | FL_FROZEN); 
Remove:
PHP Code:
entity_set_int(idEV_INT_flagsentity_get_int(idEV_INT_flags) & ~FL_FROZEN); 
thanks, i will test. But this block look around too?
__________________

#include ++ by MACE
MrMaCEEE is offline
Send a message via MSN to MrMaCEEE
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 01-16-2013 , 07:02   Re: [REQ] Block Player Moves / Look around
Reply With Quote #4

hmm I don't think so.

btw fakemeta way,

PHP Code:
Freezeid )

    new 
iFlags pevid pev_flags )
    
    if( ~
iFlags FL_FROZEN 
    { 
        
set_pevid pev_flags iFlags FL_FROZEN )
    }
}

UnFreezeid )

    new 
iFlags pevid pev_flags )
    
    if( 
iFlags FL_FROZEN 
    { 
        
set_pevid pev_flags iFlags & ~FL_FROZEN )
    }


Last edited by guipatinador; 01-16-2013 at 07:13.
guipatinador is offline
MrMaCEEE
Senior Member
Join Date: Apr 2010
Location: PortugaL
Old 01-16-2013 , 13:02   Re: [REQ] Block Player Moves / Look around
Reply With Quote #5

Quote:
Originally Posted by guipatinador View Post
hmm I don't think so.

btw fakemeta way,

PHP Code:
Freezeid )

    new 
iFlags pevid pev_flags )
    
    if( ~
iFlags FL_FROZEN 
    { 
        
set_pevid pev_flags iFlags FL_FROZEN )
    }
}

UnFreezeid )

    new 
iFlags pevid pev_flags )
    
    if( 
iFlags FL_FROZEN 
    { 
        
set_pevid pev_flags iFlags & ~FL_FROZEN )
    }

Yes it works, but i cant look around i want this but the freezed player can look around... Its possible? thanks a lot
__________________

#include ++ by MACE
MrMaCEEE is offline
Send a message via MSN to MrMaCEEE
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 11:22.


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