View Single Post
Re: New aiming algorithm. Rocks.
Old
  (#2)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: New aiming algorithm. Rocks. - 04-01-2005

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); 
  
Reply With Quote