great work Dub! Thats something i always wanted to know.
@ pmb, yes i already know you have to do something with that cmd.weaponselect thingy, but how its parsed, thats a clue to me (perhaps an impulse command).
/me digs very quick in the code:
* found this in usercmd.h (snippet)
Code:
// Impulse command issued.
byte impulse;
// Current weapon id
int weaponselect;
int weaponsubtype;
means, we can pass through an impulse command. And we can do weaponselect (INT) and weaponsubtype (INT).
Perhaps its the 'menu + submenu' thing. Like, ie, in CS the 4th weapon slot = grenades, and subtype is then a frag/flash/smoke grenade. But this also means you have to keep track of what a bot has because this 'order' changes (depending on what you have bought or not)...