.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Re: Need some help for shield support
Old
  (#51)
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: Need some help for shield support - 03-11-2004

The bots stay in place because they are stuck in the buy menu.

The old buy code makes use of a state machine to notify the bots about which menu they're browsing. As soon as a bot enters a menu, its BuyAction state changes. But, when using shortcuts, you don't NEED to enter any menu at all when you buy a weapon. What happens then is that you are waiting for the bot to be in the submenu selection screen (MSG_CS_WEAPONBUY), and then you tell it to buy using a shortcut. Although this gives the bot the right weapon it doesn't make the menu disappear.

This is why you must either close this menu (unclean fix) or change the buy function not to make use of the menu messages machine state.



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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com