Пример #1
0
void CFiveSeven::__MAKE_VHOOK(PrimaryAttack)()
{
	if (!(m_pPlayer->pev->flags & FL_ONGROUND))
	{
		FiveSevenFire(1.5 * (1 - m_flAccuracy), 0.2, FALSE);
	}
	else if (m_pPlayer->pev->velocity.Length2D() > 0)
	{
		FiveSevenFire(0.255 * (1 - m_flAccuracy), 0.2, FALSE);
	}
	else if (m_pPlayer->pev->flags & FL_DUCKING)
	{
		FiveSevenFire(0.075 * (1 - m_flAccuracy), 0.2, FALSE);
	}
	else
	{
		FiveSevenFire(0.15 * (1 - m_flAccuracy), 0.2, FALSE);
	}
}
Пример #2
0
void CFiveSeven::PrimaryAttack( void )
{
    if( !FBitSet( m_pPlayer->pev->flags, FL_ONGROUND ) )
    {
        FiveSevenFire( 1.5 * ( 1 - m_flAccuracy ), 0.2, FALSE );
    }
    else if( m_pPlayer->pev->velocity.Length2D() > 0 )
    {
        FiveSevenFire( 0.255 * ( 1 - m_flAccuracy ), 0.2, FALSE );
    }
    else if( FBitSet( m_pPlayer->pev->flags, FL_DUCKING ) )
    {
        FiveSevenFire( 0.075 * ( 1 - m_flAccuracy ), 0.2, FALSE );
    }
    else
    {
        FiveSevenFire( 0.15 * ( 1 - m_flAccuracy ), 0.2, FALSE );
    }
}