fix: do not apply knife mode if we're just have knife in hands
nav: increase search radius in checking node reachability
This commit is contained in:
parent
c3a73d109d
commit
5bc4e1c675
2 changed files with 3 additions and 3 deletions
|
|
@ -1567,7 +1567,7 @@ void Bot::overrideConditions () {
|
|||
}
|
||||
|
||||
// special handling, if we have a knife in our hands
|
||||
if ((usesKnife () || !hasAnyWeapons ()) && (util.isPlayer (m_enemy) || (cv_attack_monsters.bool_ () && util.isMonster (m_enemy)))) {
|
||||
if (isKnifeMode () && (util.isPlayer (m_enemy) || (cv_attack_monsters.bool_ () && util.isMonster (m_enemy)))) {
|
||||
float length = pev->origin.distance2d (m_enemy->v.origin);
|
||||
|
||||
// do waypoint movement if enemy is not reachable with a knife
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue