Skip to content
Permalink
Browse files

Fix last grenade not being throwable

No idea why this if check existed, can't figure out what it's purpose could have been at all
  • Loading branch information...
squeek502 committed Jul 8, 2019
1 parent 354f13c commit 0d5a1489d4f2f0238bb2b40abc6a7f48bc389711
Showing with 1 addition and 9 deletions.
  1. +1 −9 cl_dll/ff/c_ff_player.cpp
@@ -558,15 +558,7 @@ bool CC_ThrowGren( void )
return false;

C_FFPlayer *pLocalPlayer = C_FFPlayer::GetLocalFFPlayer();
if(
((pLocalPlayer->m_iGrenadeState == FF_GREN_PRIMEONE) && (pLocalPlayer->m_iPrimary == 0))
||
((pLocalPlayer->m_iGrenadeState == FF_GREN_PRIMETWO) && (pLocalPlayer->m_iSecondary == 0))
)
{
return false;
}


// Jiggles: Hint Code
// Let's see if the player is throwing an "unprimed" grenade
if( ( gpGlobals->curtime - pLocalPlayer->m_flGrenPrimeTime ) < 0.5f )

0 comments on commit 0d5a148

Please sign in to comment.
You can’t perform that action at this time.