View Single Post
Re: Yay - Bots move to given vector location...
Old
  (#32)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Yay - Bots move to given vector location... - 12-01-2005

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


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote