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."
|