AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   stop mouse on intermission (https://forums.alliedmods.net/showthread.php?t=310240)

666 08-25-2018 13:05

stop mouse on intermission
 
As the title says, I was looking for supplements that can do this function, but I did not find any, if someone is so kind to do so, I would be grateful.

Basically I want the add-on to stop the mouse movements, to do the same function as +strafe


Is for implement it in a mod pug, during the break, equal to csgo ^^

Ghosted 08-25-2018 13:32

Re: stop mouse on intermission
 
But intermission already blocks mouse

666 09-06-2018 14:53

Re: stop mouse on intermission
 
Quote:

Originally Posted by Ghosted (Post 2612173)
But intermission already blocks mouse

I was searching and found this function but you see some vibrations when moving the mouse, it is possible to remove those vibrations or there is another better function

PHP Code:

#include < amxmodx > 
#include < engine > 

#define VERSION "0.0.1" 

static bool:g_bHasAngleLock33 ]; 
static 
Float:g_flLockedAngles33 ][ ]; 

public 
plugin_init()  

    
register_plugin"LOCK TEH ANGLEZ"VERSION,"Juice" ); 
    
register_clcmd"say /lock""ClientCommand_Lock" ); 


public 
client_putinserverid )      

    
g_bHasAngleLockid ] = false
    
g_flLockedAnglesid ][ ] = g_flLockedAnglesid ][ ] = g_flLockedAnglesid ][ ] = 0.0;  


public 
client_disconnectid )  
{     
    
g_bHasAngleLockid ] = false
    
g_flLockedAnglesid ][ ] = g_flLockedAnglesid ][ ] = g_flLockedAnglesid ][ ] = 0.0


public 
ClientCommand_Lockid 

    
g_bHasAngleLockid ] = !g_bHasAngleLockid ]; 
    
entity_get_vectoridEV_VEC_v_angleg_flLockedAnglesid ] ); 


public 
client_PreThinkid 

    if( 
is_user_aliveid ) && g_bHasAngleLockid ] ) 
    { 
        
entity_set_vectoridEV_VEC_anglesg_flLockedAnglesid ] ); 
        
entity_set_intidEV_INT_fixangle); 
    } 



Natsheh 09-06-2018 15:16

Re: stop mouse on intermission
 
Quote:

Originally Posted by Ghosted (Post 2612173)
But intermission already blocks mouse


kristi 09-06-2018 19:08

Re: stop mouse on intermission
 
I believe he wants to do it mid-game


All times are GMT -4. The time now is 09:55.

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