combat: do not retreat at all when with knife

This commit is contained in:
jeefo 2024-09-18 16:06:40 +03:00
commit d05b6c8507
No known key found for this signature in database
GPG key ID: D696786B81B667C8

View file

@ -1393,10 +1393,9 @@ void Bot::attackMovement () {
} }
// only take cover when bomb is not planted and enemy can see the bot or the bot is VIP // only take cover when bomb is not planted and enemy can see the bot or the bot is VIP
if (!game.is (GameFlags::CSDM)) { if (!game.is (GameFlags::CSDM) && !isKnifeMode ()) {
if ((m_states & Sense::SeeingEnemy) if ((m_states & Sense::SeeingEnemy)
&& approach < 30 && approach < 30
&& !isKnifeMode ()
&& !bots.isBombPlanted () && !bots.isBombPlanted ()
&& (isInViewCone (m_enemy->v.origin) || m_isVIP)) { && (isInViewCone (m_enemy->v.origin) || m_isVIP)) {