void CAWP::PrimaryAttack(void) { if (!FBitSet(m_pPlayer->pev->flags, FL_ONGROUND)) AWPFire(0.85, 1.45, FALSE); else if (m_pPlayer->pev->velocity.Length2D() > 140) AWPFire(0.25, 1.45, FALSE); else if (m_pPlayer->pev->velocity.Length2D() > 10) AWPFire(0.1, 1.45, FALSE); else if (FBitSet(m_pPlayer->pev->flags, FL_DUCKING)) AWPFire(0.0, 1.45, FALSE); else AWPFire(0.001, 1.45, FALSE); }
void CWeaponAWP::PrimaryAttack() { CMomentumPlayer *pPlayer = GetPlayerOwner(); if (!pPlayer) return; if (!FBitSet(pPlayer->GetFlags(), FL_ONGROUND)) AWPFire(0.85); else if (pPlayer->GetAbsVelocity().Length2D() > 140) AWPFire(0.25); else if (pPlayer->GetAbsVelocity().Length2D() > 10) AWPFire(0.10); else if (FBitSet(pPlayer->GetFlags(), FL_DUCKING)) AWPFire(0.0); else AWPFire(0.001); }
void CAWP::__MAKE_VHOOK(PrimaryAttack)() { if (!(m_pPlayer->pev->flags & FL_ONGROUND)) { AWPFire(0.85, 1.45, FALSE); } else if (m_pPlayer->pev->velocity.Length2D() > 140) { AWPFire(0.25, 1.45, FALSE); } else if (m_pPlayer->pev->velocity.Length2D() > 10) { AWPFire(0.1, 1.45, FALSE); } else if (m_pPlayer->pev->flags & FL_DUCKING) { AWPFire(0.0, 1.45, FALSE); } else { AWPFire(0.001, 1.45, FALSE); } }
void CAWP::PrimaryAttack() { if( !FBitSet( m_pPlayer->pev->flags, FL_ONGROUND ) ) { AWPFire( 0.85, 1.45 ); } else if( m_pPlayer->pev->velocity.Length2D() > 140 ) { AWPFire( 0.25, 1.45 ); } else if( m_pPlayer->pev->velocity.Length2D() > 10 ) { AWPFire( 0.10, 1.45 ); } else if( FBitSet( m_pPlayer->pev->flags, FL_DUCKING ) ) { AWPFire( 0.0, 1.45 ); } else { AWPFire( 0.001, 1.45 ); } }