View Single Post
Re: Bots move between 2 waypoints - bug
Old
  (#4)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Bots move between 2 waypoints - bug - 11-12-2004

well I don't think this is a "bug".
this is on purpose and is to prevent bot from getting stuck

and I think this is the part which you can change:
PHP Code:
inline void GetValidWaypoint (bot_t *pBot)
{
   
// Checks if the last Waypoint the Bot was heading for is still valid

   // If Bot hasn't got a Waypoint we need a new one anyway
   
if (pBot->curr_wpt_index == -1)
   {
      
DeleteSearchNodes (pBot);
      
BotFindWaypoint (pBot);
      
pBot->wpt_origin paths[pBot->curr_wpt_index]->origin;

      
// FIXME
      // Do some error checks if we got a waypoint
   
}

   
// If time to get there expired get new one as well
   
else if ((pBot->f_wpt_timeset 3.0 gpGlobals->time) && FNullEnt (pBot->pBotEnemy))
   {
      
DeleteSearchNodes (pBot);
      
BotFindWaypoint (pBot);
      
pBot->wpt_origin paths[pBot->curr_wpt_index]->origin;
   }

change the 3.0 to 5.0 or higher should fix the vent problem

Last edited by Whistler; 11-12-2004 at 06:24..
  
Reply With Quote