Raised This Month: $51 Target: $400
 12% 

Looking for a pluggin - Auto slay bunnyhoppers.


Post New Thread Reply   
 
Thread Tools Display Modes
fiction
Member
Join Date: May 2017
Old 09-08-2017 , 00:52   Re: Looking for a pluggin - Auto slay bunnyhoppers.
Reply With Quote #11

Quote:
Originally Posted by ssphreak View Post
Hello fiction - i have tested this last version, and it is super close. It makes it a lot harder, but players are still able to bunnyhop as the timing for the bunnyhop is before the hitting the ground. I presume almost instantly, if hit is not pressed at the precise moment this plugin stops them for the tic inputed (i tested 1,3,5,10,50) all intervals they were able to bhop.

How about after a player presses jump, each jump pressed afterwards does nothing for a set amount of tics? almost a combo of the two?

Thank you so much for your time!
PHP Code:
#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <sdktools>

ConVar g_cvJumpBlockedTicks;

int g_iPassedTicks[MAXPLAYERS 1] = {-1, ...};

public 
void OnPluginStart()
{
    
HookEvent("player_spawn"Event_PlayerSpawn);
    
HookEvent("player_jump"Event_PlayerJump);

    
g_cvJumpBlockedTicks CreateConVar("sm_jump_blocked_ticks""100""Ticks/frames after jumping before you are able to jump again."_true0.0);
}

public 
void Event_PlayerSpawn(Event event, const char[] commandbool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));
    
g_iPassedTicks[client] = -1;
}

public 
void Event_PlayerJump(Event event, const char[] commandbool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));
    
g_iPassedTicks[client] = 0;
}

public 
Action OnPlayerRunCmd(int clientint &buttons)
{
    
Action iReturn Plugin_Continue;
    static 
bool bReleasedJump[MAXPLAYERS 1] = {true, ...};
    if(!
IsPlayerAlive(client) || IsFakeClient(client))
        return 
iReturn;

    if(
g_cvJumpBlockedTicks.IntValue g_iPassedTicks[client] >= 0)
    {
        
g_iPassedTicks[client]++;

        if(
buttons IN_JUMP)
        {
            
buttons &= ~IN_JUMP;
            
iReturn Plugin_Changed;
        }
    }
    else if(
g_iPassedTicks[client] == g_cvJumpBlockedTicks.IntValue)
    {
        
g_iPassedTicks[client] = -1;
        
bReleasedJump[client] = false;
    }

    if(
g_iPassedTicks[client] == -&& !bReleasedJump[client])
    {
        if(!(
buttons IN_JUMP))
            
bReleasedJump[client] = true;

        if(!
bReleasedJump[client])
        {
            
buttons &= ~IN_JUMP;
            
iReturn Plugin_Changed;
        }
    }

    return 
iReturn;

Attached Files
File Type: sp Get Plugin or Get Source (antibhop.sp - 99 views - 1.6 KB)

Last edited by fiction; 09-08-2017 at 00:53.
fiction is offline
ssphreak
Senior Member
Join Date: Aug 2009
Old 09-19-2017 , 15:25   Re: Looking for a pluggin - Auto slay bunnyhoppers.
Reply With Quote #12

Hello Friction - i have been running this latest version of antibhop. It is a strange though - it does not work perfectly - this is what we have concluded.

Set tick to 45
player jumps - lands and tries to jump they are stuck for an instant.
player jumps - keeps pressing jump - they can maybe get in one bhop, very rarely two.

How does this pluggin work - does the jump blocked tics start after the player jumps the initially or after they hit the ground?

Thank you!
ssphreak is offline
fiction
Member
Join Date: May 2017
Old 09-19-2017 , 15:32   Re: Looking for a pluggin - Auto slay bunnyhoppers.
Reply With Quote #13

Quote:
Originally Posted by ssphreak View Post
Hello Friction - i have been running this latest version of antibhop. It is a strange though - it does not work perfectly - this is what we have concluded.

Set tick to 45
player jumps - lands and tries to jump they are stuck for an instant.
player jumps - keeps pressing jump - they can maybe get in one bhop, very rarely two.

How does this pluggin work - does the jump blocked tics start after the player jumps the initially or after they hit the ground?

Thank you!
Any time a player jumps they can no longer jump for sm_jump_blocked_ticks ticks. I recommend you set it to 100 as it is by default.
fiction is offline
ssphreak
Senior Member
Join Date: Aug 2009
Old 11-06-2017 , 11:23   Re: Looking for a pluggin - Auto slay bunnyhoppers.
Reply With Quote #14

fiction - i found that this pluggin is working very well. I have set the sm_jump_blocked_ticks to 53 and it is a really good way to keep people from completing a second jump/hop. I have sent you a private message, please let me know if you have recieved it. - Thank you - sl4ysl3d
ssphreak is offline
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 18:14.


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