void CM249::PrimaryAttack(void) { if (!FBitSet(m_pPlayer->pev->flags, FL_ONGROUND)) M249Fire(0.045 + (0.5) * m_flAccuracy, 0.1, FALSE); else if (m_pPlayer->pev->velocity.Length2D() > 140) M249Fire(0.045 + (0.095) * m_flAccuracy, 0.1, FALSE); else M249Fire((0.03) * m_flAccuracy, 0.1, FALSE); }
/* <276b73> ../cstrike/dlls/wpn_shared/wpn_m249.cpp:111 */ void CM249::__MAKE_VHOOK(PrimaryAttack)(void) { if (!(m_pPlayer->pev->flags & FL_ONGROUND)) { M249Fire(0.045 + (0.5 * m_flAccuracy), 0.1, FALSE); } else if (m_pPlayer->pev->velocity.Length2D() > 140) { M249Fire(0.045 + (0.095 * m_flAccuracy), 0.1, FALSE); } else { M249Fire(0.03 * m_flAccuracy, 0.1, FALSE); } }