fix: behavior with bomb, when ignoring objectives (ref #696)
This commit is contained in:
parent
1311406544
commit
9cb8171030
5 changed files with 58 additions and 40 deletions
|
|
@ -199,7 +199,7 @@ int Bot::findBestGoal () {
|
|||
int Bot::findBestGoalWhenBombAction () {
|
||||
int result = kInvalidNodeIndex;
|
||||
|
||||
if (!bots.isBombPlanted ()) {
|
||||
if (!bots.isBombPlanted () && !cv_ignore_objectives) {
|
||||
game.searchEntities ("classname", "weaponbox", [&] (edict_t *ent) {
|
||||
if (util.isModel (ent, "backpack.mdl")) {
|
||||
result = graph.getNearest (game.getEntityOrigin (ent));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue