View Single Post
Re: introducing... BotAim 2!
Old
  (#10)
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: introducing... BotAim 2! - 14-02-2005

8D
You were right and I finally found the bug! Phew, that was a pesky one

The bots were simply forgetting they were targeting someone, and thus switched back their aiming into "no target" mode. This could happen because in order to know if the bot targets someone I was firing a TraceLine in the direction of its ideal angles. BUT, because the plugin needs to work on the StartFrame_Post() hook, the player's origin had already been moved by the game DLL and my traceline was simply missing its target...
I fixed that by adding a delay between switching back to no target mode. This way, if one traceline fails the whole combat aiming won't be compromised.

I have also fixed the frame time problem as suggested by aspirin. This leads to new values for the damping coefficients.

I'm uploading the plugin again.



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