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 ?