.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Need some help for shield support (http://forums.bots-united.com/showthread.php?t=2820)

Pierre-Marie Baty 03-11-2004 12:08

Re: Need some help for shield support
 
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.


All times are GMT +2. The time now is 07:42.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.