View Single Post
Re: PODBOT2.6MM after PMB...work still pending
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: PODBOT2.6MM after PMB...work still pending - 14-04-2004

Out of curiousity I've had a quick look in the code for that button problem and I've found something horrible.

The button flag on waypoints doesn't have any purpose.
It's useless. The bots just ignore it.

It's there, you can set the flag, but there's no code to tell the bot how to handle it!

The bots only press the buttons they see on a random basis.

This needs to change. And while you're at it, implement the button usage the right way this time, like Stefan is saying.

And about the personality thingy, here's at least something I can tell you :

The bot personalities are set during the BotCreate() function, i.e. when the bot is created, NOT when the round is restarted. In order for the bomb carrier or the VIP to have a personality depending on its role in the team, you have to change that and alter the bot personalities in BotSpawnInit() which is the function that resets the bot at each start of a new round. If you do so however, don't forget to randomize the personalities for the bots that neither have a bomb nor are the VIP, else you'll end up with only "normal" personalities bots.



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