View Single Post
Re: bot coding in CS?
Old
  (#9)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: bot coding in CS? - 23-03-2004

Lazy is right, it is best to have the bots array sorted the same way the players are allocated their entities. In my bot I have ENTINDEX (pBotEdict) - 1 == pBot->pEdict (well, I don't use "pBot->pEdict" anymore but you see the idea)

And yeah thanks Rick for fixing my mistake, I meant bot_t *pBot = &bots[i]; rather than &bots[i].pEdict. Go back to school PMB



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote