.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > HPB_bot
HPB_bot The trusty good ole mechs by botman HLDMTFCOpposing ForceDMCFront Line Force

Reply
 
Thread Tools
Re: Angle offset bug
Old
  (#11)
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 - 06-12-2004

but I get that code from HPB_bot 4.0 , not the template
  
Reply With Quote
Re: Angle offset bug
Old
  (#12)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 4643'60N 043'0W 0.187A
Default Re: Angle offset bug - 06-12-2004

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.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Angle offset bug
Old
  (#13)
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 - 08-12-2004

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

Last edited by Rifleman; 08-12-2004 at 17:44..
  
Reply With Quote
Re: Angle offset bug
Old
  (#14)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 4643'60N 043'0W 0.187A
Default Re: Angle offset bug - 08-12-2004

...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.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Angle offset bug
Old
  (#15)
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 - 09-12-2004

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 ...
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com