void CMAC10::PrimaryAttack(void) { if (!FBitSet(m_pPlayer->pev->flags, FL_ONGROUND)) MAC10Fire((0.375) * m_flAccuracy, 0.07, FALSE); else MAC10Fire((0.03) * m_flAccuracy, 0.07, FALSE); }
/* <286786> ../cstrike/dlls/wpn_shared/wpn_mac10.cpp:108 */ void CMAC10::__MAKE_VHOOK(PrimaryAttack)(void) { if (!(m_pPlayer->pev->flags & FL_ONGROUND)) { MAC10Fire(0.375 * m_flAccuracy, 0.07, FALSE); } else { MAC10Fire(0.03 * m_flAccuracy, 0.07, FALSE); } }
void CWeaponMAC10::PrimaryAttack() { CMomentumPlayer *pPlayer = GetPlayerOwner(); if (!pPlayer) return; if (!FBitSet(pPlayer->GetFlags(), FL_ONGROUND)) MAC10Fire(0.375f * m_flAccuracy); else MAC10Fire(0.03f * m_flAccuracy); }