Esempio n. 1
0
void CP228::PrimaryAttack(void)
{
	if (!FBitSet(m_pPlayer->pev->flags, FL_ONGROUND))
		P228Fire((1.5) * (1 - m_flAccuracy), 0.2, FALSE);
	else if (m_pPlayer->pev->velocity.Length2D() > 0)
		P228Fire((0.255) * (1 - m_flAccuracy), 0.2, FALSE);
	else if (FBitSet(m_pPlayer->pev->flags, FL_DUCKING))
		P228Fire((0.075) * (1 - m_flAccuracy), 0.2, FALSE);
	else
		P228Fire((0.15) * (1 - m_flAccuracy), 0.2, FALSE);
}
Esempio n. 2
0
/* <2910ff> ../cstrike/dlls/wpn_shared/wpn_p228.cpp:130 */
void CP228::__MAKE_VHOOK(PrimaryAttack)()
{
	if (!(m_pPlayer->pev->flags & FL_ONGROUND))
	{
		P228Fire(1.5 * (1 - m_flAccuracy), 0.2, FALSE);
	}
	else if (m_pPlayer->pev->velocity.Length2D() > 0)
	{
		P228Fire(0.255 * (1 - m_flAccuracy), 0.2, FALSE);
	}
	else if (m_pPlayer->pev->flags & FL_DUCKING)
	{
		P228Fire(0.075 * (1 - m_flAccuracy), 0.2, FALSE);
	}
	else
	{
		P228Fire(0.15 * (1 - m_flAccuracy), 0.2, FALSE);
	}
}