Thread: Waypointing
View Single Post
Re: Waypointing
Old
  (#59)
dub
Member
 
dub's Avatar
 
Status: Offline
Posts: 89
Join Date: Aug 2004
Location: UK
Default Re: Waypointing - 22-01-2005

Ghoul found it, definitely happen`s in BotAvoidContact at the end of the function call i added this
Code:
          if (pBot->f_avoid_time <= gpGlobals->time && !pBot->pAvoid)
          	{
          		pBot->f_avoid_time = gpGlobals->time + 0.1;
          		// avoid contact
          		BotAvoidContact (pBot);
          		UTIL_DumpToFile ("BotAvoidContact Finished\n");
          	}
and it never reached the finished message, so im 100% certain it happens in BotAvoidContact. Just add a max tries on the BotAvoidContact find entity in sphere loop to fix the bug
enjoy
Dubb .

edit..
shoudn`t you have a break when the bot find`s it required entity to avoid.
ill do some more research later today (5:00am in the uk need to get some sleep).


Dubb`s Coding Cave WiP - YeGods - Free Image hosting
4u-servers.co.uk : YeGods Gin Palace II - Refloated - 195.20.108.30:27025

Last edited by dub; 22-01-2005 at 05:55.. Reason: cleaned spelling typos
  
Reply With Quote