.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   HPB_bot (http://forums.bots-united.com/forumdisplay.php?f=35)
-   -   Angle offset bug (http://forums.bots-united.com/showthread.php?t=3126)

Rifleman 06-12-2004 16:17

Re: Angle offset bug
 
but I get that code from HPB_bot 4.0 , not the template

Pierre-Marie Baty 06-12-2004 18:11

Re: Angle offset bug
 
It's a well known bug in the HPB_bot, that needs to be fixed. But several years ago at his old forum botman said it wouldn't bother fixing it because it was mostly affecting Counter-Strike and his bot wasn't made to support Counter-Strike officially.

The correct code is the one in the template.

Rifleman 08-12-2004 17:41

Re: Angle offset bug
 
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 ! :D

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);
}


Pierre-Marie Baty 08-12-2004 19:28

Re: Angle offset bug
 
...which means that you did not fix anything but broke stuff instead. When you'll finally decide to listen to what people tell you, perhaps you'll make some progress.

In the meantime, please stop cluttering the HPB_bot support forum with your bot experiments.

Rifleman 09-12-2004 08:06

Re: Angle offset bug
 
sorry ...

but final question , I try to do this :

look_vec = look_vec - pEdict->v.punchangle;

Like you said one , but it still didn't work ...


All times are GMT +2. The time now is 05:01.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.