aim: remeber last edict for whom head spot was set

... so the bots will not shake their crosshair between chest and head when fighting acquired/current enemy
This commit is contained in:
jeefo 2024-03-09 22:41:48 +03:00
commit 1736bd9c8a
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
3 changed files with 11 additions and 1 deletions

View file

@ -1476,6 +1476,7 @@ void Bot::newRound () {
m_lastEnemyOrigin = nullptr;
m_lastVictimOrigin = nullptr;
m_trackingEdict = nullptr;
m_enemyBodyPartSet = nullptr;
m_timeNextTracking = 0.0f;
m_buttonPushTime = 0.0f;