From 64166213f6e96efd06c7df9d7f68f4e5318b55d8 Mon Sep 17 00:00:00 2001 From: jeefo Date: Sat, 23 Aug 2025 16:54:26 +0300 Subject: [PATCH] bot: move aim direction to upkeep --- src/botlib.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/botlib.cpp b/src/botlib.cpp index 3a9f837..29e5192 100644 --- a/src/botlib.cpp +++ b/src/botlib.cpp @@ -3385,7 +3385,6 @@ void Bot::logic () { m_isUsingGrenade = false; executeTasks (); // execute current task - setAimDirection (); // choose aim direction // check for reloading if (m_reloadCheckTime <= game.time ()) { @@ -3469,11 +3468,9 @@ void Bot::logic () { } void Bot::upkeep () { - if (m_aimFlags & AimFlags::Enemy) { - focusEnemy (); - } - doFireWeapons (); + setAimDirection (); updateLookAngles (); + doFireWeapons (); } void Bot::spawned () {