Re: Need some help for shield support -
31-10-2004
I remember there is a problem with the "menuselect n" client commands in CS 1.6. It's not your fault; it's a CS bug. To make sure bots buy effectively what you tell them to buy you should make them buy using the new shortcuts (like "famas", "deagle", etc.) For this I advise you to change a bit your bot_weapon_select_t structure and change these
int iNewBuySelectT;
int iNewBuySelectCT;
into a char array where you will put the buy shortcut to use for each weapon. For example:
char buy_shortcut[32];
You can then replace
FakeClientCommand(pEdict, "menuselect",szMenuSelect, NULL);
with
FakeClientCommand(pEdict, pBot->pSelected_weapon->buy_shortcut, NULL, NULL);
RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
|