Raised This Month: $ Target: $400
 0% 

[Deathrun] Vote for Auto Bhop or Normal Bhop with NoSlowDown


Post New Thread Reply   
 
Thread Tools Display Modes
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 07-03-2013 , 14:59   Re: [Deathrun] Vote for Auto Bhop or Normal Bhop with NoSlowDown
Reply With Quote #11

I wrote it for u on top, its just this little Plugin who makes NoSlowDown to Server.
And yes you never lose speed on noslowdown, u are always able to move quickly.
UchihaSkills is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 07-03-2013 , 15:25   Re: [Deathrun] Vote for Auto Bhop or Normal Bhop with NoSlowDown
Reply With Quote #12

So Connor has a plugin for bhop abilities that has both versions, auto and noslowdown, but it looks like for the server you choose either or. You may be able to edit it.

https://forums.alliedmods.net/showthread.php?p=610329
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 07-03-2013 , 15:29   Re: [Deathrun] Vote for Auto Bhop or Normal Bhop with NoSlowDown
Reply With Quote #13

Well you cant call it edit, i think you have to rewrite it completly cause the plugin i want is complete different than this.
UchihaSkills is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 07-03-2013 , 15:31   Re: [Deathrun] Vote for Auto Bhop or Normal Bhop with NoSlowDown
Reply With Quote #14

Quote:
Originally Posted by UchihaSkills View Post
Well you cant call it edit, i think you have to rewrite it completly cause the plugin i want is complete different than this.
Rewrite might be correct. At least you can see both sets of codes. I thought remember posting on a bhop menu request, but i can't find it anywhere now...if i can get you a menu outline i will let you know.

Edit: So v3x posted an updated code to his jump abilities plugin, so it would be for specific players with menu. You could change the option for normal to noslowdown, or add it as a third option:

PHP Code:
#include <amxmodx>
#include <engine>

#define PLUGIN    "Jump Menu Modified"
#define VERSION "2.1b"
#define AUTHOR    "v3x"

#define MAX_PLAYERS    33

public plugin_init() 
{
    
register_plugin(PLUGIN VERSION AUTHOR);

    
register_clcmd("say /jumpmenu"    "ClCmd_JumpMenu");
    
register_clcmd("jumpmenu"    "ClCmd_JumpMenu");
}

enum 
{
    
JUMP_REGULAR 0,
    
JUMP_BUNNY,
}

new 
g_iJumpType[33];

public 
client_putinserver(id
    
g_iJumpType[id] = JUMP_REGULAR;

public 
client_disconnect(id
    
g_iJumpType[id] = JUMP_REGULAR;

public 
ClCmd_JumpMenu(id
{
    new 
menu menu_create("Select your jump type:" "menuHandler_Jump");

    
menu_additem(menu "Bunnyhop"        "" 0);
    
menu_additem(menu "Regular"        "" 0);

    
menu_setprop(menu MPROP_EXIT MEXIT_ALL);
    
    
menu_display(id menu 0);

    new 
arg[21];
    
read_argv(arg 20);
    if(!
contain(arg "say"))
        return 
PLUGIN_CONTINUE;

    return 
PLUGIN_HANDLED;
}

public 
menuHandler_Jump(id menu item
{
    if(
item == MENU_EXIT
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    new 
szCommand[6] , szName[64];
    new 
access callback;
    
    
menu_item_getinfo(menu item access szCommand szName 63 callback);
    
    if(
equal(szName "Bunnyhop")) 
    {
        
client_print(id print_chat "[AMXX] Bunnyhop enabled");
        
g_iJumpType[id] = JUMP_BUNNY;

        
menu_destroy(menu); return PLUGIN_CONTINUE;
    }
    else 
    {
        
client_print(id print_chat "[AMXX] Regular jumping enabled");
        
g_iJumpType[id] = JUMP_REGULAR;

        
menu_destroy(menu); return PLUGIN_CONTINUE;
    }
    
    
menu_destroy(menu);
    
    return 
PLUGIN_HANDLED;
}

public 
client_PreThink(id
{
    if(!
is_user_alive(id) || !g_iJumpType[id])
        return 
PLUGIN_CONTINUE;

    
entity_set_float(idEV_FL_fuser20.0)     // Disable slow down after jumping

    // Code from CBasePlayer::Jump (player.cpp)     Make a player jump automatically
    
if (entity_get_int(idEV_INT_button) & 2) {    // If holding jump
        
new flags entity_get_int(idEV_INT_flags)

        if (
flags FL_WATERJUMP)
            return 
PLUGIN_CONTINUE
        
if ( entity_get_int(idEV_INT_waterlevel) >= )
            return 
PLUGIN_CONTINUE
        
if ( !(flags FL_ONGROUND) )
            return 
PLUGIN_CONTINUE

        
new Float:velocity[3]
        
entity_get_vector(idEV_VEC_velocityvelocity)
        
velocity[2] += 250.0
        entity_set_vector
(idEV_VEC_velocityvelocity)

        
entity_set_int(idEV_INT_gaitsequence6)    // Play the Jump Animation
    
}

    return 
PLUGIN_CONTINUE;

__________________

Last edited by joshknifer; 07-03-2013 at 15:36.
joshknifer is offline
Send a message via Skype™ to joshknifer
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 07-03-2013 , 15:35   Re: [Deathrun] Vote for Auto Bhop or Normal Bhop with NoSlowDown
Reply With Quote #15

Hm but well im not really good in write Plugins, i can only make really small things or edits not such a menu i want. Thats why i made the request and i dont need it now but in 2 weeks i would need it for my server. Im sure it isnt that much, like the guy said before "2-3k lines of code" oO.
And thanks for your help
UchihaSkills is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 07-03-2013 , 15:37   Re: [Deathrun] Vote for Auto Bhop or Normal Bhop with NoSlowDown
Reply With Quote #16

Quote:
Originally Posted by UchihaSkills View Post
Hm but well im not really good in write Plugins, i can only make really small things or edits not such a menu i want. Thats why i made the request and i dont need it now but in 2 weeks i would need it for my server. Im sure it isnt that much, like the guy said before "2-3k lines of code" oO.
And thanks for your help
Np. I can play around with it later when I get off work, but somebody else (Connor? lol) may be able to do it faster. And yeah, clearly it wouldn't take 2k lines of code lol
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 07-03-2013 , 15:49   Re: [Deathrun] Vote for Auto Bhop or Normal Bhop with NoSlowDown
Reply With Quote #17

Quote:
Originally Posted by joshknifer View Post
Np. I can play around with it later when I get off work, but somebody else (Connor? lol) may be able to do it faster. And yeah, clearly it wouldn't take 2k lines of code lol
He wont do it ;D, i asked him in PM and he said he doenst help people who ask him private ;D, i thought same that he could do it best and fastest way but well i made the mistake and asked him private ;DD
UchihaSkills is offline
Old 07-03-2013, 16:32
Serkan Kischa
This message has been deleted by YamiKaitou. Reason: https://forums.alliedmods.net/misc.php?do=showrules
Old 07-04-2013, 03:49
UchihaSkills
This message has been deleted by YamiKaitou. Reason: reply to deleted post
Old 07-07-2013, 09:43
Serkan Kischa
This message has been deleted by YamiKaitou. Reason: https://forums.alliedmods.net/misc.php?do=showrules
Old 07-07-2013, 09:45
UchihaSkills
This message has been deleted by Arkshine. Reason: reply to deleted post
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 00:11.


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