holy crap ! I fixed the offset bug , but now the problem is gettting weird ! The bot aim completely accurately at the center of their enemy , but when they fire their weapon , the bullet never hit the enemy except in very close range or when the bot is using knife ! Wow wow wow , my bot will be super-realistic !
By the way , I changed the BotChangeYaw , BotChangePitch and my FaceVector function
Code:
void FaceVector ( bot_t *pBot, Vector vec )
{
edict_t *pEdict = pBot->pEdict;
Vector look_vec = UTIL_VecToAngles( vec );
pEdict->v.ideal_yaw = look_vec.y;
BotFixIdealYaw(pEdict);
pEdict->v.idealpitch = look_vec.x;
BotFixIdealPitch(pEdict);
}