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.
__________________