View Single Post
Re: Hi I'm new and have some question !
Old
  (#4)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: Hi I'm new and have some question ! - 10-03-2004

Quote:
Originally Posted by Pierre-Marie Baty
This can be solved by calling FREE_PRIVATE() on the bot's pvPrivateData each time a bot is created (in BotCreate(), just before the player() function is called. The correct code is: )
Code:
  	  if (BotEnt->pvPrivateData != NULL)
  		 FREE_PRIVATE (BotEnt);
  	  BotEnt->pvPrivateData = NULL;
This seam not to work if the bot is compiled as metamod plugin (I've seen this code in the yapb source).

This happens also between different bots at the same server. I use joebot and yapbot at the same time and if I kick a bot of one kind and add a bot of the other kind the new bot inherites the old values...

I haven't looked very deep into the bots codes but the only reason for this could be that those values are stored outside the bots own data structures. And if the bots are compiled as metamod plugins something in conjunction with metamod prevents those external data structures from been cleared correctly...
  
Reply With Quote