AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [EDIT] Auto Bhop (https://forums.alliedmods.net/showthread.php?t=174247)

Lolz0r 12-17-2011 16:41

[EDIT] Auto Bhop
 
Can you edit that ConnorMcLeod's mod not to slow you down auto bhop? :

PHP Code:

#include <amxmodx>
#include <engine>
#include <hamsandwich>

public plugin_init()
{
        
register_plugin"Auto Bhop""0.0.1""ConnorMcLeod" )

        
RegisterHamHam_Player_Jump"player""Player_Jump" )
}

public 
Player_Jump(id)
{
        static 
iOldbuttons iOldbuttons entity_get_intidEV_INT_oldbuttons )
        if( 
iOldbuttons IN_JUMP )
        {
                
entity_set_intidEV_INT_oldbuttonsiOldbuttons & ~IN_JUMP )
        }



Lolz0r 12-23-2011 16:07

Re: [EDIT] Auto Bhop
 
After I tested other plugins in the end it happened like this:

PHP Code:

#include <amxmodx>
#include <engine>
#include <hamsandwich>

#define MAX_PLAYERS 32
new g_bAliveMAX_PLAYERS ]

public 
plugin_init()
{
    
register_plugin"Auto Bhop""0.0.1""ConnorMcLeod" )

    
RegisterHamHam_Spawn"player""Check_Alive")
    
RegisterHamHam_Killed"player""Check_Alive")
        
RegisterHamHam_Player_Jump"player""Player_Jump" )
}

public 
Check_Aliveid )
{
    
g_bAliveid ] = is_user_aliveid )
}

public 
Player_Jumpid )
{
    if(    !
g_bAliveid ]
    ||    
entity_get_intidEV_INT_waterlevel ) >= 2
    
||    !( entity_get_intidEV_INT_flags ) & FL_ONGROUND )    )
    {
        return
    }

    static 
iOldButtons iOldButtons entity_get_intidEV_INT_oldbuttons )
    if( 
iOldButtons IN_JUMP )
    {
            
entity_set_intidEV_INT_oldbuttonsiOldButtons & ~IN_JUMP )

            static 
Float:fVelocity]
            
entity_get_vectoridEV_VEC_velocityfVelocity )

            
fVelocity] = 268.32815729997476356910084024775
            entity_set_vector
idEV_VEC_velocityfVelocity )
        }


I wan't you just to have a look and see how it is.


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

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