View Single Post
Re: How can I make my bots CS 1.6 compatible?
Old
  (#2)
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: How can I make my bots CS 1.6 compatible? - 04-01-2004

you must first get rid of the FL_FAKECLIENT flag everywhere you find it, because now it's the official CS bots which will use it and CS will screw the two bot codes (yours and the official bot's) if you use this flag too.

This flag is only a convenient way for the bot coders to be able to tell quickly whether a player's edict_t is a bot or not.

You must figure out another way to "flag" your bots. Either keep track of them internally in your own structure, like I do now with RACC, or define a new flag for them, using a bit that is not used yet, like the 27th bit.

#define FL_THIRDPARTYBOT (1 << 27)

There will be other minor changes to make, but do this first, test it out and come back to post your other problems after that.



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