View Single Post
Re: crowbars and botman's "bot 10"
Old
  (#2)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: crowbars and botman's "bot 10" - 02-01-2005

The code you posted doesn't contain anything that checks the skill level. Here is the original code from bot10 in bot_combat.cpp...
Code:
  // if close to enemy, and skill level is 1, 2 or 3, use the crowbar
  if (((distance <= 40) && (bot_skill <= 2) && (weapon_choice == 0)) ||
  	(weapon_choice == WEAPON_CROWBAR))
  {
The check for (bot_skilll <= 2) restricts this weapon to bots with skill=0, 1, or 2, removing this check...
Code:
  // if close to enemy, use the crowbar
   if (((distance <= 40) && (weapon_choice == 0)) ||
   	(weapon_choice == WEAPON_CROWBAR))
   {
...would allow any skill level bot to use the crowbar.

botman
  
Reply With Quote