bot: move aim direction to upkeep

This commit is contained in:
jeefo 2025-08-23 16:54:26 +03:00
commit 64166213f6
No known key found for this signature in database
GPG key ID: D696786B81B667C8

View file

@ -3385,7 +3385,6 @@ void Bot::logic () {
m_isUsingGrenade = false; m_isUsingGrenade = false;
executeTasks (); // execute current task executeTasks (); // execute current task
setAimDirection (); // choose aim direction
// check for reloading // check for reloading
if (m_reloadCheckTime <= game.time ()) { if (m_reloadCheckTime <= game.time ()) {
@ -3469,11 +3468,9 @@ void Bot::logic () {
} }
void Bot::upkeep () { void Bot::upkeep () {
if (m_aimFlags & AimFlags::Enemy) { setAimDirection ();
focusEnemy ();
}
doFireWeapons ();
updateLookAngles (); updateLookAngles ();
doFireWeapons ();
} }
void Bot::spawned () { void Bot::spawned () {