Bots will now look at teammates and jump sometimes while in freezetime. So they will not look like a "soldiers". Related to #94.

This commit is contained in:
jeefo 2019-09-22 17:19:13 +03:00
commit 97c942ce3d
3 changed files with 34 additions and 2 deletions

View file

@ -1111,6 +1111,7 @@ void Bot::newRound () {
m_prevOrigin = Vector (kInfiniteDistance, kInfiniteDistance, kInfiniteDistance);
m_prevTime = game.time ();
m_lookUpdateTime = game.time ();
m_changeViewTime = game.time () + (rg.chance (25) ? mp_freezetime.float_ () : 0.0f);
m_aimErrorTime = game.time ();
m_viewDistance = 4096.0f;