.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   HPB_bot (http://forums.bots-united.com/forumdisplay.php?f=35)
-   -   HPB-Bot 'gina' bug fix. (http://forums.bots-united.com/showthread.php?t=742)

Whistler 13-02-2004 10:42

HPB-Bot 'gina' bug fix.
 
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", "" );

Onno Kreuzinger 13-02-2004 12:01

Re: HPB-Bot 'gina' bug fix.
 
which developers GF was/is named Gina *lol*

Pierre-Marie Baty 13-02-2004 12:38

Re: HPB-Bot 'gina' bug fix.
 
Thanks Whistler !

I'm updating the bot. It's not much I know but I like to keep things up to date :)


All times are GMT +2. The time now is 15:10.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.