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

thats not the problem , because that happen although in freezetime , but when I change the code to

Code:
   pEdict->v.v_angle = UTIL_VecToAngles( vec );
   if (pEdict->v.v_angle.y > 180)
	  pEdict->v.v_angle.y -=360;
   // Paulo-La-Frite - START bot aiming bug fix
   if (pEdict->v.v_angle.x > 180)
	  pEdict->v.v_angle.x -=360;
   // set the body angles to point the gun correctly
   pEdict->v.angles.x = pEdict->v.v_angle.x / 3;
   pEdict->v.angles.y = pEdict->v.v_angle.y;
   pEdict->v.angles.z = 0;
		  
   // adjust the view angle pitch to aim correctly (MUST be after body v.angles stuff)
   pEdict->v.v_angle.x = -pEdict->v.v_angle.x;
   // Paulo-La-Frite - END
   pEdict->v.ideal_yaw = pEdict->v.v_angle.y;
 
   BotFixIdealYaw(pEdict);
The problem will go away ! But it was unrealistic anyway ...
  
Reply With Quote