Fix silent object hold exploit

This commit is contained in:
speedvoltage 2025-03-09 18:26:47 +01:00
parent a62efecf62
commit 7ff9f7dcb4

View file

@ -2337,7 +2337,7 @@ void CWeaponPhysCannon::ItemPostFrame()
}
}
if (( pOwner->m_nButtons & IN_ATTACK2 ) == 0 )
if ( ( pOwner->m_nButtons & IN_ATTACK2 ) == 0 && CanPerformSecondaryAttack() )
{
m_nAttack2Debounce = 0;
}