View Single Post
HPB-Bot 'gina' bug fix.
Old
  (#1)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default HPB-Bot 'gina' bug fix. - 13-02-2004

There is a bug in HPB-bot. When the Teamplay is on, and there is 'gina' in mp_teamlist, all bots will be 'gina'.

Fix:

change this code in BotCreate function in bot.cpp:

Code:
 
 	  // is this a MOD that supports model colors AND it's not teamplay?
 	  if (((mod_id == VALVE_DLL) || (mod_id == DMC_DLL) ||
 		   (mod_id == GEARBOX_DLL) || (mod_id == HOLYWARS_DLL)) &&
 		  (is_team_play == FALSE))
 	  {
 		 SET_CLIENT_KEY_VALUE( clientIndex, infobuffer, "model", c_skin );
 
 		 if (top_color != -1)
 		    SET_CLIENT_KEY_VALUE( clientIndex, infobuffer, "topcolor", c_topcolor );
 
 		 if (bottom_color != -1)
 		    SET_CLIENT_KEY_VALUE( clientIndex, infobuffer, "bottomcolor", c_bottomcolor );
 	  }
 	  else // other mods
 		 SET_CLIENT_KEY_VALUE( clientIndex, infobuffer, "model", "gina" );
change the last line to:

SET_CLIENT_KEY_VALUE( clientIndex, infobuffer, "model", "" );
  
Reply With Quote