nav: improved ladder handling
fix: bots can stuck when destroying breakables
This commit is contained in:
parent
8a22f03640
commit
c5ed52eb09
5 changed files with 27 additions and 17 deletions
|
|
@ -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_ ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue