View Single Post
Re: bot coding in CS?
Old
  (#5)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: bot coding in CS? - 23-03-2004

This headache kills me...

Quote:
Originally Posted by Pierre-Marie Baty
For convenience, botman uses bot_t pointers instead of indexing the bots array each time :

bot_t *pBot = &bots[i].pEdict;

and so, later on in his functions, you see things like :

pBot->pEdict->v.v_angle.x = 0; // reset the pitch view angle of the bot (using the engine variables for the bot entity)
Maybe a stubid question, but as I said, my c++ is a little bit rusty:
If pBot is a pointer to[i] &bots.pEdict then why is it pBot->pEdict->v.v_angle.x = 0; ?

Last edited by Terran; 23-03-2004 at 23:42..
  
Reply With Quote