bot: move aim direction to upkeep
This commit is contained in:
parent
8770569e1f
commit
64166213f6
1 changed files with 2 additions and 5 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue