void CWeaponP90::PrimaryAttack() { CMomentumPlayer *pPlayer = GetPlayerOwner(); if (!pPlayer) return; if (!FBitSet(pPlayer->GetFlags(), FL_ONGROUND)) P90Fire(0.3f * m_flAccuracy); else if (pPlayer->GetAbsVelocity().Length2D() > 170) P90Fire(0.115f * m_flAccuracy); else P90Fire(0.045f * m_flAccuracy); }
void CP90::__MAKE_VHOOK(PrimaryAttack)() { if (!(m_pPlayer->pev->flags & FL_ONGROUND)) { P90Fire(0.3 * m_flAccuracy, 0.066, FALSE); } else if (m_pPlayer->pev->velocity.Length2D() > 170) { P90Fire(0.115 * m_flAccuracy, 0.066, FALSE); } else { P90Fire(0.045 * m_flAccuracy, 0.066, FALSE); } }
void CP90::PrimaryAttack( void ) { if( !FBitSet( m_pPlayer->pev->flags, FL_ONGROUND ) ) { P90Fire( 0.3 * m_flAccuracy, 0.066, FALSE ); } else if( m_pPlayer->pev->velocity.Length2D() > 170 ) { P90Fire( 0.115 * m_flAccuracy, 0.066, FALSE ); } else { P90Fire( 0.045 * m_flAccuracy, 0.066, FALSE ); } }