View Single Post
Angle offset bug
Old
  (#1)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Angle offset bug - 03-12-2004

I think this is an aged old error but I still cant figured out how to fix it

we assume we define a vector "vec"

Code:
   Vector look_vec = UTIL_VecToAngles( vec );
   
   pEdict->v.ideal_yaw = look_vec.y;
   BotFixIdealYaw(pEdict);
 
   pEdict->v.v_angle.x = look_vec.x;
 
   if (pBot->pEdict->v.v_angle.x > 180)
	pBot->pEdict->v.v_angle.x -=360;
 
   pEdict->v.angles.x = pEdict->v.v_angle.x / 3;
   pEdict->v.v_angle.x = -pEdict->v.v_angle.x;
The bot's aiming seems to be a bit off to the right side , how can this happen ?
  
Reply With Quote