Improved and fixed listening

This commit is contained in:
INeedGames 2020-12-23 22:41:46 -06:00
parent 68920db9c2
commit 3276d4d01a
2 changed files with 3 additions and 4 deletions

View File

@ -111,7 +111,6 @@ init()
level.bots_maxShotgunDistance = 500;
level.bots_maxShotgunDistance *= level.bots_maxShotgunDistance;
level.bots_listenDist = 100;
level.bots_listenDist *= level.bots_listenDist;
level.smokeRadius = 255;

View File

@ -2013,9 +2013,6 @@ bot_listen_to_steps()
for(;;)
{
wait 1;
if(self HasScriptGoal() || self.bot_lock_goal)
continue;
if(self.pers["bots"]["skill"]["base"] < 3)
continue;
@ -2063,6 +2060,9 @@ bot_listen_to_steps()
self setAttacker(heard);
continue;
}
if(self HasScriptGoal() || self.bot_lock_goal)
continue;
self SetScriptGoal( heard.origin, 64 );