fix: more breakable fixes

This commit is contained in:
jeefo 2025-01-14 14:53:38 +03:00
commit 7238fe76f5
No known key found for this signature in database
GPG key ID: D696786B81B667C8
2 changed files with 2 additions and 1 deletions

View file

@ -309,7 +309,7 @@ edict_t *Bot::lookupBreakable () {
start = getEyesPos ();
break;
}
auto hit = doLookup (start, end, usesKnife () ? 32.0f : rg (72.0f, 256.0f));
auto hit = doLookup (start, end, (usesKnife () || isOnLadder ()) ? 32.0f : rg (72.0f, 256.0f));
if (!game.isNullEntity (hit)) {
return hit;

View file

@ -1460,6 +1460,7 @@ void Bot::escapeFromBomb_ () {
}
void Bot::shootBreakable_ () {
m_aimFlags |= AimFlags::Override;
// breakable destroyed?
if (!util.isBreakableEntity (m_breakableEntity)) {