fixed bot's don't shoot at near-zero distance [need testing]

This commit is contained in:
jeefo 2016-01-26 21:18:59 +03:00
commit e9d826ccea
4 changed files with 9 additions and 14 deletions

View file

@ -1002,11 +1002,11 @@ void Bot::FocusEnemy (void)
{
if (m_currentWeapon == WEAPON_KNIFE)
{
if (distance <= 80.0f)
if (distance < 80.0f)
m_wantsToFire = true;
}
else
m_wantsToFire = GetShootingConeDeviation (GetEntity (), &m_enemyOrigin) > 0.8f;
m_wantsToFire = true;
}
else
{