.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   New aiming algorithm. Rocks. (http://forums.bots-united.com/showthread.php?t=3331)

Pierre-Marie Baty 04-01-2005 00:48

New aiming algorithm. Rocks.
 
I invite you to check http://forums.bots-united.com/showth...1496#post31496 :)

Whistler 04-01-2005 04:43

Re: New aiming algorithm. Rocks.
 
I tried this in POD-Bot, I'm not sure I'm doing this in correct way but the aiming still mess up if I don't clamp it:
PHP Code:

      Vector v_deviation vecDirection pev->v_angle;
      
ClampAngles (v_deviation);

      
float k 5;
      
float d 2;

      
pev->yaw_speed += g_flTimeFrameInterval * (v_deviation.pev->yaw_speed);
      
pev->pitch_speed += g_flTimeFrameInterval * (v_deviation.pev->pitch_speed); 


Pierre-Marie Baty 04-01-2005 15:07

Re: New aiming algorithm. Rocks.
 
I'm working on an implementation with the optimal values (and a few extra goodies). Give me some time to finish. In the meantime, yes, you still need to clamp them, as always.


All times are GMT +2. The time now is 13:54.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.