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

[CS:GO] Bunny Hopping


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spyres
Member
Join Date: Nov 2013
Old 12-04-2013 , 15:58   [CS:GO] Bunny Hopping
Reply With Quote #1

Hello. I am building a server and i have tried 3rd party plugins but i didnt really like the bhopping(e.g Abners bunnyhopping. no offence)

I changed some cvars and i have gotten my bhop to be nearly like css.

This is what i used:
sv_enablebunnyhopping 1
sv_staminamax 0
sv_staminajumpcost 0
sv_staminalandcost 0
sv_staminarecoveryrate 0
sv_airaccelerate 2000
sv_accelerate_use_weapon_speed 0
sv_maxvelocity 3500

The only problem that i have left is that when i come to land into/onto water or grounds my player stops still (i tried sv_stopspeed, sv_waterfriction but no difference) or after 2 hops he stops still. i know csgo has issues with bhopping. Is there anyway to stop people from stopping and standing still when they try bhop (cvar or plugin) ??

ill try post a video to show you what i mean. i have looked at cvars and console command and i tried contacting steam support but no luck.

Video: http://filegooi.co.za/get2/b3d2ed7bc...62f3e/CSGO.wmv

Regards SPYRES
From Sunny South Africa

Last edited by Spyres; 12-04-2013 at 15:59.
Spyres is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 12-04-2013 , 17:18   Re: [CS:GO] Bunny Hopping
Reply With Quote #2

Could you sent me link for bhop plugin or give me the sourcecode?
I think I can fix this for you by adding a small part to the code.
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.
tommie113 is offline
Spyres
Member
Join Date: Nov 2013
Old 12-05-2013 , 10:42   Re: [CS:GO] Bunny Hopping
Reply With Quote #3

Quote:
Originally Posted by tommie113 View Post
Could you sent me link for bhop plugin or give me the sourcecode?
I think I can fix this for you by adding a small part to the code.

Hello Tommie, thank you for the quick reply.

The reason why I don't want to use abners because of the jump boost you get and some values in his coding that I did not enjoy and Everytime you jump you get massive jump boosts with abners bhopping and people don't like that, why want the old bhopping from CSS. (http://forums.alliedmods.net/showthread.php?t=205268)

The cvars that I put above are awesome, it's nice and smooth nearly similar to CSS ( even though it is not a plugin ) but I just have that issue with the player standing still. I was planning on making the plugin so that it is separate to the server. ( I am a newbie at making plugins but im getting there one step at a time ). my senior did not enjoy the feeling of the bhop because it was not realistic like CSS so we removed the plugin and looked at other idea. I was busy testing and I got my bhop to be smoother/better with the cvars above ( I was messing around and I went though all the commands csgo has )

If you have time and are willing to create me the plugin with the cvars Or send me the sourcecode and get my senior ( his coding is alright) to create the plugin. If you would like and try help me fix this problem, it would be much appreciated.

South Africa also has a small community on CSS because all the guys left to csgo and they probably miss the old bhop and some of the servers we use to provide. If you would like, I can post a smoother video and that has a longer duration.

Regards SPYRES
From Sunny South Africa

Last edited by Spyres; 12-05-2013 at 10:43.
Spyres is offline
Fruit
Junior Member
Join Date: Sep 2011
Old 12-05-2013 , 14:31   Re: [CS:GO] Bunny Hopping
Reply With Quote #4

Quote:
Originally Posted by Spyres View Post
I changed some cvars and i have gotten my bhop to be nearly like css.

This is what i used:
sv_enablebunnyhopping 1
sv_staminamax 0
sv_staminajumpcost 0
sv_staminalandcost 0
sv_staminarecoveryrate 0
sv_airaccelerate 2000
sv_accelerate_use_weapon_speed 0
sv_maxvelocity 3500
This is what i used:
sm_cvar sv_enablebunnyhopping 1(hidden cvar)
sv_staminajumpcost 0
sv_staminalandcost 0
sv_airaccelerate 150
sv_accelerate_use_weapon_speed 0
sv_maxvelocity 350

The issue we are having as well as the rest of the cs:go community is that when you land from a height you stop. Flat land bhopping is good, it is just the stopping after you land. The only bhop plug-in made so far(http://forums.alliedmods.net/showthread.php?t=205268) only pushes you after you land so you still get this horrible landing pause. Currently the only server that has fix this problem is 196.30.66.46:27341 unfortunately his plug-in is private.

I thought one could try hook the landing using sdkhooks "OnClientGroundChangePost()" but haven't found a solution yet.

If you do find a solution the whole world cs:go community will thank you and it will probably be on of the most used plug-ins for modded servers(mg, dm, bhop, surf, ...).

Last edited by Fruit; 12-05-2013 at 14:46.
Fruit is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 12-05-2013 , 23:48   Re: [CS:GO] Bunny Hopping
Reply With Quote #5

You can't really bunnyhop in CS:GO without a bunnyhop hack or without an autobhop plugin since it makes your speed go back to 250 (knife m_flMaxSpeed) if you don't get a perfect jump.
So, I made a simple plugin for my CS:S autobhop server that locks your stamina at 0.0 so you'll be able to get way more perfect jumps and enables autobhop, also prevents sv_airaccelerate from being less than 2,000.
If you feel like disabling the autobhop part, delete the whole OnPlayerRunCmd block.
Code:
#include <sourcemod>
#include <sdktools> // OnPlayerRunCmd is there, I think

#pragma semicolon 1

new Handle:gH_AA;

public Plugin:myinfo = 
{
    name = "autobhop/no-stamina",
    author = "shavit",
    version = "1.0"
}

public OnPluginStart()
{
    HookEvent("player_jump", Player_Jump);
    
    gH_AA = FindConVar("sv_airaccelerate");
    SetConVarInt(gH_AA, 2000);
    
    // not sure, let's do that anyways
    if(GetConVarFlags(gH_AA) & FCVAR_NOTIFY)
    {
        SetConVarFlags(gH_AA, GetConVarFlags(gH_AA)|~FCVAR_NOTIFY);
    }
    
    HookConVarChange(gH_AA, oncvarchange);
    
    //CreateTimer(1.0, Timer_Check, INVALID_HANDLE, TIMER_REPEAT);
}

public oncvarchange(Handle:cvar, const String:oldvalue[], const String:newvalue[])
{
    if(StringToInt(newvalue) < 2000)
    {
        SetConVarInt(cvar, 2000);
    }
}

public Action:OnPlayerRunCmd(client, &buttons)
{    
    if(!(GetEntityFlags(client) & FL_ONGROUND))
    {
        if(!(GetEntityMoveType(client) & MOVETYPE_LADDER))
        {
            if(GetEntProp(client, Prop_Data, "m_nWaterLevel") <= 1)
            {
                buttons &= ~IN_JUMP;
            }
        }
    }
    
    return Plugin_Continue;
}

public Action:Player_Jump(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));

    SetEntPropFloat(client, Prop_Send, "m_flStamina", 0.0);

    return Plugin_Continue;
}
Compile this code there: http://www.sourcemodplugins.org/smwebide/ or anywhere else, that's just my favorite online SM compiler.
__________________
retired

Last edited by shavit; 12-05-2013 at 23:49.
shavit is offline
Fruit
Junior Member
Join Date: Sep 2011
Old 12-06-2013 , 11:04   Re: [CS:GO] Bunny Hopping
Reply With Quote #6

Quote:
Originally Posted by shavit View Post
You can't really bunnyhop in CS:GO without a bunnyhop hack or without an autobhop plugin since it makes your speed go back to 250 (knife m_flMaxSpeed) if you don't get a perfect jump.
I agree, but as i said in my first message it is possible to make a fix, for the speed going back to 250. The server i linked has done it and one doesn't really feel the stopping motion.
Fruit is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 12-06-2013 , 11:22   Re: [CS:GO] Bunny Hopping
Reply With Quote #7

Quote:
Originally Posted by Fruit View Post
I agree, but as i said in my first message it is possible to make a fix, for the speed going back to 250. The server i linked has done it and one doesn't really feel the stopping motion.
They probably use a stamina modifier like what I posted.
__________________
retired
shavit is offline
Fruit
Junior Member
Join Date: Sep 2011
Old 12-06-2013 , 11:52   Re: [CS:GO] Bunny Hopping
Reply With Quote #8

I tried your code and it doesn't seem to fix the stopping speed problem when the jump isn't timed perfectly.
Fruit is offline
Fruit
Junior Member
Join Date: Sep 2011
Old 12-06-2013 , 11:54   Re: [CS:GO] Bunny Hopping
Reply With Quote #9

I thought you could use this "m_flMaxSpeed" to compare changes in speed and change to previous speed if a player is stopped.
Fruit 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 14:11.


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