From 01046f7c9ad5bc877551d31c537d8480170138f2 Mon Sep 17 00:00:00 2001 From: jeefo Date: Mon, 8 Jan 2024 18:11:58 +0300 Subject: [PATCH] aim: do not add aim error for normal bots combat: do not trigger seek cover task with csdm mode --- src/combat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/combat.cpp b/src/combat.cpp index 6f8c2ba..e513b62 100644 --- a/src/combat.cpp +++ b/src/combat.cpp @@ -547,7 +547,7 @@ Vector Bot::getBodyOffsetError (float distance) { m_lastEnemyOrigin = spot; // add some error to unskilled bots - if (m_difficulty < Difficulty::Hard) { + if (m_difficulty < Difficulty::Normal) { spot += getBodyOffsetError (distance); } return spot; @@ -1151,7 +1151,7 @@ void Bot::attackMovement () { } // only take cover when bomb is not planted and enemy can see the bot or the bot is VIP - if ((m_states & Sense::SeeingEnemy) && approach < 30 && !bots.isBombPlanted () && (isInViewCone (m_enemy->v.origin) || m_isVIP)) { + if (!game.is (GameFlags::CSDM) && (m_states & Sense::SeeingEnemy) && approach < 30 && !bots.isBombPlanted () && (isInViewCone (m_enemy->v.origin) || m_isVIP)) { m_moveSpeed = -pev->maxspeed; startTask (Task::SeekCover, TaskPri::SeekCover, kInvalidNodeIndex, 0.0f, true); }