Browse Source

cstrike: add autojump convar

bullshit
nillerusr 1 year ago
parent
commit
b73f3b70fa
  1. 7
      game/shared/cstrike/cs_gamemovement.cpp

7
game/shared/cstrike/cs_gamemovement.cpp

@ -28,7 +28,7 @@ extern bool g_bMovementOptimizations; @@ -28,7 +28,7 @@ extern bool g_bMovementOptimizations;
ConVar sv_timebetweenducks( "sv_timebetweenducks", "0", FCVAR_REPLICATED, "Minimum time before recognizing consecutive duck key", true, 0.0, true, 2.0 );
ConVar sv_enableboost( "sv_enableboost", "0", FCVAR_REPLICATED | FCVAR_NOTIFY, "Allow boost exploits");
ConVar cs_autojump( "cs_autojump", "0", FCVAR_REPLICATED | FCVAR_NOTIFY );
class CCSGameMovement : public CGameMovement
{
@ -691,8 +691,11 @@ bool CCSGameMovement::CheckJumpButton( void ) @@ -691,8 +691,11 @@ bool CCSGameMovement::CheckJumpButton( void )
return false; // in air, so no effect
}
if ( mv->m_nOldButtons & IN_JUMP )
if ( (mv->m_nOldButtons & IN_JUMP) &&
(!cs_autojump.GetBool() && m_pCSPlayer->GetGroundEntity()) )
{
return false; // don't pogo stick
}
if ( !sv_enablebunnyhopping.GetBool() )
{

Loading…
Cancel
Save