Raised This Month: $ Target: $400
 0% 

[L4D2] Auto Bunnyhop


Post New Thread Reply   
 
Thread Tools Display Modes
Author
n491
Junior Member
Join Date: Sep 2015
Plugin ID:
5464
Plugin Version:
1.3.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows jump easier while player hold a jump button.
    Old 12-27-2016 , 15:45   [L4D2] Auto Bunnyhop
    Reply With Quote #1

    Commands:
    !autobhop – Toggle Auto Bunnyhop.

    Links:
    Download ST: http://steamcommunity.com/sharedfile.../?id=510955402
    Download Speedrunner Tools: https://forums.alliedmods.net/showthread.php?t=304789
    Download Auto Commonboost: https://forums.alliedmods.net/showthread.php?t=302498
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_bhop.sp - 7688 views - 2.0 KB)

    Last edited by n491; 12-17-2019 at 19:54. Reason: See the changelog inside script-file...
    n491 is offline
    JOMENVEST
    Member
    Join Date: Dec 2016
    Location: Sweden
    Old 12-27-2016 , 17:13   Re: [L4D2] Auto Bunnyhop
    Reply With Quote #2

    Nice plugin, though you can remove the attached .smx file since the site will automatically compile it for you.
    You can also fix the Transitional Syntax if you want.
    JOMENVEST is offline
    n491
    Junior Member
    Join Date: Sep 2015
    Old 12-27-2016 , 18:03   Re: [L4D2] Auto Bunnyhop
    Reply With Quote #3

    Quote:
    Originally Posted by JOMENVEST View Post
    Nice plugin, though you can remove the attached .smx file since the site will automatically compile it for you.
    You can also fix the Transitional Syntax if you want.
    "Plugin failed to compile! Please try contacting the author."
    n491 is offline
    JOMENVEST
    Member
    Join Date: Dec 2016
    Location: Sweden
    Old 12-27-2016 , 18:18   Re: [L4D2] Auto Bunnyhop
    Reply With Quote #4

    Quote:
    Originally Posted by n491 View Post
    "Plugin failed to compile! Please try contacting the author."
    It's because you have an error, you seems to be missing the colors from another addon.
    /home/groups/sourcemod/upload_tmp/phpGW0xSo.sp(8") : fatal error 182: cannot read from file: "colors"

    EDIT: I don't know how to fix this, because you can only compile it locally. I guess you can have it like this. You should put information about needed addons for the plugin in your first post.
    __________________

    Last edited by JOMENVEST; 12-27-2016 at 18:27.
    JOMENVEST is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 12-27-2016 , 19:24   Re: [L4D2] Auto Bunnyhop
    Reply With Quote #5

    You have to post colors.inc because it is needed though I'm under the impression it might not work properly.
    cravenge is offline
    Sectus
    Junior Member
    Join Date: May 2016
    Old 02-08-2017 , 02:28   Re: [L4D2] Auto Bunnyhop
    Reply With Quote #6

    What exactly this plugin does? Ty.
    Sectus is offline
    Tank Rush
    Senior Member
    Join Date: May 2019
    Location: Argentina
    Old 03-01-2021 , 22:38   Re: [L4D2] Auto Bunnyhop
    Reply With Quote #7

    Modify the code so that the !autobhop command is only used by administrators
    PHP Code:
    public OnPluginStart()
    {
        
    RegAdminCmd("sm_autobhop"Cmd_AutobhopADMFLAG_SLAY);

    The problem is that the game starts with autobhop activated, the other players will have bunnybhop and cannot deactivate it. I try to make bhop only used by admins.
    What should I change for the plugin to start disabled?
    __________________
    Sorry i don't speak english very well

    --->My name is Source and I'm on Steam<---
    Discord: Source#9382
    Tank Rush is offline
    weffer
    Member
    Join Date: Oct 2020
    Old 03-04-2021 , 12:41   Re: [L4D2] Auto Bunnyhop
    Reply With Quote #8

    Quote:
    Originally Posted by Tank Rush View Post
    Modify the code so that the !autobhop command is only used by administrators
    PHP Code:
    public OnPluginStart()
    {
        
    RegAdminCmd("sm_autobhop"Cmd_AutobhopADMFLAG_SLAY);

    The problem is that the game starts with autobhop activated, the other players will have bunnybhop and cannot deactivate it. I try to make bhop only used by admins.
    What should I change for the plugin to start disabled?
    try adding this conditional

    PHP Code:
    public Action:OnPlayerRunCmd(int clientint &buttons)
    {
        new 
    AdminId:AdminID GetUserAdmin(client);
        if (!
    g_AutoBhop[client] && IsPlayerAlive(client) && AdminID != INVALID_ADMIN_ID)
        {
            if (
    buttons IN_JUMP)
            {
                if (
    GetEntPropEnt(clientProp_Send"m_hGroundEntity") == -1)
                {
                    if (
    GetEntityMoveType(client) != MOVETYPE_LADDER)
                    {
                        
    buttons &= ~IN_JUMP;
                    }
                }
            }
        }
        return 
    Plugin_Continue;


    Last edited by weffer; 03-04-2021 at 12:42.
    weffer is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 03-02-2021 , 19:24   Re: [L4D2] Auto Bunnyhop
    Reply With Quote #9

    Looking at the code I think the logic is inverted at OnPlayerRunCmd.

    Also is missing a variable reset on client disconnect.

    Try the attached version (updated to new syntax).
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_bhop.sp - 359 views - 2.1 KB)
    __________________

    Last edited by Marttt; 03-02-2021 at 19:29.
    Marttt 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 04:28.


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