View Single Post
Re: Problem again ...
Old
  (#4)
KaCaT
Moderator
 
Status: Offline
Posts: 55
Join Date: Dec 2003
Default Re: Problem again ... - 19-02-2004

in bot.cpp, around line 7118
change this code:
Code:
if(pBot->bot_personality==1)
   SelectWeaponByName(pBot, "weapon_knife");
to this
Code:
if(pBot->bot_personality==1)
  {
   if (pBot->current_weapon.iId != CS_WEAPON_KNIFE)
	if (pBot->current_weapon.iId != CS_WEAPON_INSWITCH)
	 SelectWeaponByName(pBot, "weapon_knife");
  }
will fix the problem.


IvPBot - Improved version of Podbot
  
Reply With Quote