.:: 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 > POD-Bot mm > Bug Reports
Bug Reports Post any bug you experience with the latest release of this bot here

Reply
 
Thread Tools
Re: Scoped Rifles...bots do not zoom or shoot them at all?
Old
  (#11)
Burnt Powder
Member
 
Status: Offline
Posts: 54
Join Date: Jun 2004
Default Re: Scoped Rifles...bots do not zoom or shoot them at all? - 02-07-2004

Quote:
Originally Posted by sPlOrYgOn
I see...
this code would make it so that if you set maxweaponpick up to lets just say 4 it would allow the bot to pick up 5...
1 more than what was specified..
OK I see.....so when I set it to 0, it is really allowing them to pick up 1 weapon and is pooping my attempted work-around for Sniper-Rifles.

Anyhow, even if I have it at 0 and they can pick up 1, why are they picking up scoped guns when I have them at the end of my priority list?
Quote:
Originally Posted by sPlOrYgOn
fixed now....
What is?

Last edited by Burnt Powder; 02-07-2004 at 08:03..
  
Reply With Quote
Re: Scoped Rifles...bots do not zoom or shoot them at all?
Old
  (#12)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Scoped Rifles...bots do not zoom or shoot them at all? - 02-07-2004

it doesn't seem to use the priority list for picking up weapons..
only for buying..
this needs changing..
  
Reply With Quote
Re: Scoped Rifles...bots do not zoom or shoot them at all?
Old
  (#13)
Burnt Powder
Member
 
Status: Offline
Posts: 54
Join Date: Jun 2004
Default Re: Scoped Rifles...bots do not zoom or shoot them at all? - 02-07-2004

Quote:
Originally Posted by sPlOrYgOn
it doesn't seem to use the priority list for picking up weapons..
only for buying..
this needs changing..
OK thanks for hearing me out.

Last edited by Burnt Powder; 02-07-2004 at 08:15..
  
Reply With Quote
Re: Scoped Rifles...bots do not zoom or shoot them at all?
Old
  (#14)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Scoped Rifles...bots do not zoom or shoot them at all? - 02-07-2004

sorry it does use their preferences...
but it uses them backwards...
so right now the sniper rifles on your server are the most valueable to pick up
  
Reply With Quote
Re: Scoped Rifles...bots do not zoom or shoot them at all?
Old
  (#15)
Burnt Powder
Member
 
Status: Offline
Posts: 54
Join Date: Jun 2004
Default Re: Scoped Rifles...bots do not zoom or shoot them at all? - 02-07-2004

So for buying, is used them in the order I have them listed but for picking them up, it uses them in reverse order........that is just wrong.
  
Reply With Quote
Re: Scoped Rifles...bots do not zoom or shoot them at all?
Old
  (#16)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Scoped Rifles...bots do not zoom or shoot them at all? - 02-07-2004

Code:
int BotRateGroundWeapon (bot_t *pBot, edict_t *pent)
{
   // Compares Weapons on the Ground to the one the Bot is using

   int i;
   int iHasWeapon = GetBestWeaponCarried (pBot);
   int *ptrWeaponTab = ptrWeaponPrefs[pBot->bot_personality];
   bot_weapon_select_t *pWeaponTab = &cs_weapon_select[0];

   int iGroundIndex = 0;
   char szModelName[40];

   strncpy (szModelName, STRING (pent->v.model), 40);

   for (i = 0; i < NUM_WEAPONS; i++)
   {
      if (FStrEq (pWeaponTab[*ptrWeaponTab].model_name, szModelName))
      {
         iGroundIndex = i;
         break;
      }

      ptrWeaponTab++;
   }

   // Don't care for pistols
   // TODO Include Pistols as well...
   if (iGroundIndex < 7)
      iGroundIndex = 0;

   return (iGroundIndex - iHasWeapon);
}
should probably be
Code:
int BotRateGroundWeapon (bot_t *pBot, edict_t *pent)
{
   // Compares Weapons on the Ground to the one the Bot is using

   int i;
   int iHasWeapon = GetBestWeaponCarried (pBot);
   int *ptrWeaponTab = ptrWeaponPrefs[pBot->bot_personality];
   bot_weapon_select_t *pWeaponTab = &cs_weapon_select[0];

   int iGroundIndex = 0;
   char szModelName[40];

   ptrWeaponTab += NUM_WEAPONS;
   strncpy (szModelName, STRING (pent->v.model), 40);

   for (i = 0; i < NUM_WEAPONS; i++)
   {
      if (FStrEq (pWeaponTab[*ptrWeaponTab].model_name, szModelName))
      {
         iGroundIndex = i;
         break;
      }

      ptrWeaponTab--;
   }

   // Don't care for pistols
   // TODO Include Pistols as well...
   if (iGroundIndex < 7)
      iGroundIndex = 0;

   return (iGroundIndex - iHasWeapon);
}
that should fix it


[edit]
heres the dll with the above fix
http://www.mapzap.org/files/podbot/podbotBETA.zip
[/edit]

Last edited by sPlOrYgOn; 02-07-2004 at 08:29..
  
Reply With Quote
Re: Scoped Rifles...bots do not zoom or shoot them at all?
Old
  (#17)
Burnt Powder
Member
 
Status: Offline
Posts: 54
Join Date: Jun 2004
Default Re: Scoped Rifles...bots do not zoom or shoot them at all? - 02-07-2004

***EDIT***

Thanks!

Last edited by Burnt Powder; 02-07-2004 at 08:31..
  
Reply With Quote
Re: Scoped Rifles...bots do not zoom or shoot them at all?
Old
  (#18)
Burnt Powder
Member
 
Status: Offline
Posts: 54
Join Date: Jun 2004
Default Re: Scoped Rifles...bots do not zoom or shoot them at all? - 02-07-2004

Do not know what it is but I am getting memory errors with this new dll 8 seconds after the initial CS Server startup or if by some stroke of luck it does not bomb, it will bomb on the first map change. This was not an issue with the 06/29/04 dll.

If I comment out the dll so it does not load, the server works fine.

Can you link me to the 06/29/04 version again or sort this out as I have overwritten the 06/29/04 with the version you posted above?

TIA

Last edited by Burnt Powder; 02-07-2004 at 09:37..
  
Reply With Quote
Re: Scoped Rifles...bots do not zoom or shoot them at all?
Old
  (#19)
Burnt Powder
Member
 
Status: Offline
Posts: 54
Join Date: Jun 2004
Default Re: Scoped Rifles...bots do not zoom or shoot them at all? - 02-07-2004

***Bump***

Delete this when you read my above post please.

Last edited by Burnt Powder; 02-07-2004 at 20:58..
  
Reply With Quote
Re: Scoped Rifles...bots do not zoom or shoot them at all?
Old
  (#20)
Burnt Powder
Member
 
Status: Offline
Posts: 54
Join Date: Jun 2004
Default Re: Scoped Rifles...bots do not zoom or shoot them at all? - 02-07-2004

Does anyone have a link to the to the 06/29/04 DLL that I can use for the time being till this is sorted out?
  
Reply With Quote
Reply


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

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 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com