some little tweaks

This commit is contained in:
jeefo 2014-08-15 21:58:43 +04:00
commit 379c0bc81e
5 changed files with 25 additions and 20 deletions

View file

@ -107,7 +107,6 @@ bool Bot::LookupEnemy (void)
{
m_enemyUpdateTime = GetWorldTime () + 0.25;
// search the world for players...
for (i = 0; i < GetMaxClients (); i++)
{
@ -126,8 +125,13 @@ bool Bot::LookupEnemy (void)
// do some blind by smoke grenade
if (IsBehindSmokeClouds (player) && m_blindRecognizeTime < GetWorldTime ())
{
m_blindRecognizeTime = GetWorldTime () + g_randGen.Float (2.0, 3.0);
if (g_randGen.Long (0, 100) < 50)
ChatterMessage (Chatter_BehindSmoke);
}
if (player->v.button & (IN_ATTACK | IN_ATTACK2))
m_blindRecognizeTime = GetWorldTime () - 0.1;