nav: improved ladder handling

fix: bots can stuck when destroying breakables
This commit is contained in:
jeefo 2024-03-29 16:46:32 +03:00
commit c5ed52eb09
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
5 changed files with 27 additions and 17 deletions

View file

@ -230,7 +230,7 @@ bool BotSupport::isHostageEntity (edict_t *ent) {
}
bool BotSupport::isShootableBreakable (edict_t *ent) {
if (game.isNullEntity (ent)) {
if (game.isNullEntity (ent) || ent == game.getStartEntity ()) {
return false;
}
const auto limit = cv_breakable_health_limit.float_ ();