fixed bot's don't shoot at near-zero distance [need testing]
This commit is contained in:
parent
2907787619
commit
e9d826ccea
4 changed files with 9 additions and 14 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue