From d05b6c85076e117bd8b23efb57a67934018105f0 Mon Sep 17 00:00:00 2001 From: jeefo Date: Wed, 18 Sep 2024 16:06:40 +0300 Subject: [PATCH] combat: do not retreat at all when with knife --- src/combat.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/combat.cpp b/src/combat.cpp index 5afec85..c650d25 100644 --- a/src/combat.cpp +++ b/src/combat.cpp @@ -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 - if (!game.is (GameFlags::CSDM)) { + if (!game.is (GameFlags::CSDM) && !isKnifeMode ()) { if ((m_states & Sense::SeeingEnemy) && approach < 30 - && !isKnifeMode () && !bots.isBombPlanted () && (isInViewCone (m_enemy->v.origin) || m_isVIP)) {