runplayermove is now not called every frame, the same as main bot code
this gives another fps boost for server perfomance, but gives a little shaky viewmodel (gun) drawing for bot while spectating him in firstperson mode.
This commit is contained in:
parent
6502c44050
commit
11d3ffe20e
4 changed files with 11 additions and 5 deletions
|
|
@ -220,7 +220,10 @@ Bot *BotManager::FindOneValidAliveBot (void)
|
|||
|
||||
for (int i = 0; i < GetMaxClients (); i++)
|
||||
{
|
||||
if (m_bots[i] != NULL && IsAlive (m_bots[i]->GetEntity ()) && foundBots.GetSize () < 5)
|
||||
if (foundBots.GetSize () > 4)
|
||||
break;
|
||||
|
||||
if (m_bots[i] != NULL && IsAlive (m_bots[i]->GetEntity ()))
|
||||
foundBots.Push (i);
|
||||
}
|
||||
|
||||
|
|
@ -976,6 +979,7 @@ void Bot::NewRound (void)
|
|||
m_prevOrigin = Vector (9999.0, 9999.0, 9999.0);
|
||||
m_prevTime = GetWorldTime ();
|
||||
m_blindRecognizeTime = GetWorldTime ();
|
||||
m_lookUpdateTime = GetWorldTime ();
|
||||
|
||||
m_viewDistance = 4096.0;
|
||||
m_maxViewDistance = 4096.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue