Added no stamina
This commit is contained in:
parent
a841c7a02c
commit
6e5facd8cc
2 changed files with 5 additions and 3 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "cbase.h"
|
||||
#include "gamemovement.h"
|
||||
#include "cs_gamerules.h"
|
||||
#include "iconvar.h"
|
||||
#include "in_buttons.h"
|
||||
#include "movevars_shared.h"
|
||||
#include "weapon_csbase.h"
|
||||
|
@ -314,7 +315,6 @@ void CCSGameMovement::CheckParameters( void )
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void CCSGameMovement::ProcessMovement( CBasePlayer *pBasePlayer, CMoveData *pMove )
|
||||
{
|
||||
m_pCSPlayer = ToCSPlayer( pBasePlayer );
|
||||
|
@ -640,6 +640,8 @@ void CCSGameMovement::PreventBunnyJumping()
|
|||
|
||||
}
|
||||
|
||||
ConVar sv_no_stamina( "sv_no_stamina", "0", FCVAR_REPLICATED );
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -750,7 +752,7 @@ bool CCSGameMovement::CheckJumpButton( void )
|
|||
mv->m_vecVelocity[2] *= flRatio;
|
||||
}
|
||||
|
||||
m_pCSPlayer->m_flStamina = ( STAMINA_COST_JUMP / STAMINA_RECOVER_RATE ) * 1000.0;
|
||||
m_pCSPlayer->m_flStamina = sv_no_stamina.GetBool() ? 0 : ( STAMINA_COST_JUMP / STAMINA_RECOVER_RATE ) * 1000.0;
|
||||
|
||||
FinishGravity();
|
||||
|
||||
|
|
2
gamedata
2
gamedata
|
@ -1 +1 @@
|
|||
Subproject commit ad7fda715ea07924ff55faa9aed17b4d3bc7ddf4
|
||||
Subproject commit 84f80d684bcc0c097d130cda7ad93cc37e5216e3
|
Loading…
Reference in a new issue