Thread: reload bug
View Single Post
Re: reload bug
Old
  (#6)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: reload bug - 26-06-2004

I have also found this is still in the source code:
Code:
      if (ed)
	  {
		  index = UTIL_GetBotIndex (ed);
		  // is this message for a bot?
		  if (index != -1)
		  {
			  botMsgFunction = NULL;	// no msg function until known otherwise
			  botMsgEndFunction = NULL;	// no msg end function until known otherwise
			  botMsgIndex = index;	// index of bot receiving message
.......
				  else if (msg_type ==
					  GET_USER_MSG_ID (PLID, "WeaponList", NULL))
				  {
					  botMsgFunction = BotClient_CS_WeaponList;
but in CS 1.6 since the different way to send the WeaponList message this will just never get called. this may solve the problem:

Code:
   if (gpGlobals->deathmatch)
   {
      int index;

      if (msg_type == message_WeaponList)
         botMsgFunction = BotClient_CS_WeaponList;

      if (ed)
      {
         index = UTIL_GetBotIndex(ed);
         // is this message for a bot?
         if (index != -1)
         {

Last edited by Whistler; 26-06-2004 at 10:58..
  
Reply With Quote