View Single Post
Re: Yay - Bots move to given vector location...
Old
  (#30)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Yay - Bots move to given vector location... - 12-01-2005

I think I found out how to make bots switch weapons. You must pass in the wpnselect field of the usercmd struct the entity index of the weapon to select. It's not a bitfield like I initially thought. However since I have little clue so far on how to peek around entities, I have not been able to test.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote