simplified a bit hearing and aim dir choosing

bots thnik function not run every frame, should save some fps
This commit is contained in:
jeefo 2015-07-19 13:39:00 +03:00
commit 55e4cf4bd9
7 changed files with 151 additions and 247 deletions

View file

@ -101,7 +101,7 @@ int BotManager::CreateBot (const String &name, int difficulty, int personality,
personality = PERSONALITY_NORMAL;
else
{
if (Random.Long (0, 100) > 50)
if (Random.Long (0, 100) < 65)
personality = PERSONALITY_RUSHER;
else
personality = PERSONALITY_CAREFUL;
@ -237,7 +237,7 @@ void BotManager::Think (void)
for (int i = 0; i < GetMaxClients (); i++)
{
if (m_bots[i] != NULL)
m_bots[i]->Think ();
m_bots[i]->ThinkMain ();
}
}