fix: make bots reach the debug goal node.

This commit is contained in:
dmitry 2022-02-12 23:22:54 +03:00
commit 5d2a81f341
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37
2 changed files with 5 additions and 11 deletions

View file

@ -3054,18 +3054,9 @@ void Bot::normal_ () {
// user forced a waypoint as a goal?
if (debugGoal != kInvalidNodeIndex && getTask ()->data != debugGoal) {
clearSearchNodes ();
getTask ()->data = debugGoal;
}
// stand still if reached debug goal
else if (m_currentNodeIndex == debugGoal) {
pev->button = 0;
ignoreCollision ();
m_moveSpeed = 0.0;
m_strafeSpeed = 0.0f;
return;
m_chosenGoalIndex = debugGoal;
}
// bots rushing with knife, when have no enemy (thanks for idea to nicebot project)