View Single Post
Re: The ultimate aiming algorithm ?
Old
  (#3)
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: The ultimate aiming algorithm ? - 15-01-2004

That's exactly what I was saying: instead of FIRING a TraceLine in order to try to evaluate where the bullet went, just USE the results of the last TraceLine that the engine fired for THIS BOT. In my bot code each player structure has a slot where I record what was the TraceResult of the last TraceLine that was fired from them (i.e, when pentIgnore was the player's edict), by hooking pfnTraceLine I catch both the tracelines that my OWN bot code sends, AND the tracelines that the game itself sends. That's how stats plugins do too, at least I can't conceive a better way.



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