.:: 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 > YaPB
YaPB Yet another POD-Bot flavor by Whistler and Jeefo Counter-Strike

Reply
 
Thread Tools
YapB's aiming with ChickenMod - suggestion
Old
  (#1)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,424
Join Date: Apr 2004
Default YapB's aiming with ChickenMod - suggestion - 29-08-2006

In the function Vector CBot::AimPosition (void) You have this:
Code:
 float fZComponentUpdate = UsesSniper () ? 15.0 : 17.0;
Vector vTarget = m_pentEnemy->v.origin;

if (g_rgpcvBotCVar[CVAR_HARDCOREMODE]->GetBool ())
      fZComponentUpdate = (UsesSniper () ? 2.32 : UsesPistol () ? 5.0 : (fDistance < 300 ? 4.08 : 6.18)) + fZComponentUpdate;
   else
      fZComponentUpdate = fZComponentUpdate - (0.5 * (100.0 - m_iSkill)

(...)
      // now take in account different parts of enemy body
      if (m_ucVisibility & (VISIBLE_HEAD | VISIBLE_BODY)) // visible head & body
      {
         // now check is our skill match to aim at head, else aim at enemy body
         if ((RandomLong (1, 100) < g_rgkSkillTab[m_iSkill / 20].iHeadshotFrequency) || UsesPistol ())
            vTarget = vTarget + Vector (0, 0, fZComponentUpdate);
         else
            vTarget = vTarget;
      }
      else if (m_ucVisibility & VISIBLE_HEAD) // visible only head
         vTarget = vTarget + Vector (0, 0, fZComponentUpdate);
The bot aims perfectly against the "normal size" bots or players, but it fails with the players/bots using some fun models - for example ChickenMod. The yabp is always trying to hit the head above real head of the chicken, which makes them impossible to hit an enemy.
You need to use
pEdict->v.view_ofs + {0,0,fZNewComponentUpdate} value instead of pEdict->v.origin + {0,0,fZComponentUpdate}.
fZNewComponentUpdate - the new offset for "Z" axis.
  
Reply With Quote
Re: YapB's aiming with ChickenMod - suggestion
Old
  (#2)
jeefo
выебувас
 
jeefo's Avatar
 
Status: Offline
Posts: 450
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: YapB's aiming with ChickenMod - suggestion - 29-08-2006

Never used chickenmod before, i'll install and test it in a few days

Thank you..
  
Reply With Quote
Re: YapB's aiming with ChickenMod - suggestion
Old
  (#3)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,424
Join Date: Apr 2004
Default Re: YapB's aiming with ChickenMod - suggestion - 29-08-2006

You can just use my All-In-One installer - it's a zip file with mm1.19, latest AMX X 1.75a and pb mm V3. There are few helpful plugins with testing bots as ATAC, ChickenMod and CSDM. You can control them from amxmodmenu (last - third - page).
  
Reply With Quote
Re: YapB's aiming with ChickenMod - suggestion
Old
  (#4)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,424
Join Date: Apr 2004
Default Re: YapB's aiming with ChickenMod - suggestion - 30-08-2006

Quote:
Originally Posted by KWo
You need to use
pEdict->v.view_ofs + {0,0,fZNewComponentUpdate} value instead of pEdict->v.origin + {0,0,fZComponentUpdate}.
fZNewComponentUpdate - the new offset for "Z" axis.
I meant of course - in Your case - You need to use:
m_pentEnemy->v.view_ofs + {0,0,fZNewComponentUpdate}
  
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 - 2020, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com