void CWeaponMP5Navy::PrimaryAttack(void) { CMomentumPlayer *pPlayer = GetPlayerOwner(); if (!pPlayer) return; if (!FBitSet(pPlayer->GetFlags(), FL_ONGROUND)) MP5NFire(0.2f * m_flAccuracy); else MP5NFire(0.04f * m_flAccuracy); }
void CMP5N::__MAKE_VHOOK(PrimaryAttack)() { if (!(m_pPlayer->pev->flags & FL_ONGROUND)) { MP5NFire(0.2 * m_flAccuracy, 0.075, FALSE); } else { MP5NFire(0.04 * m_flAccuracy, 0.075, FALSE); } }
void CMP5N::PrimaryAttack() { if( !FBitSet( m_pPlayer->pev->flags, FL_ONGROUND ) ) { MP5NFire( m_flAccuracy * 0.2, 0.075, FALSE ); } else { MP5NFire( m_flAccuracy * 0.04, 0.075, FALSE ); } }