Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make bot shuffle?
#6
I've put it in game_base.cpp. Maybe you want to have it look like this:
Code:
void CBaseGame :: EventGameStarted( )
{
    if( m_AutoStartPlayers != 0 )
        ShuffleSlots( );

    CONSOLE_Print( "[GAME: " + m_GameName + "] started loading with " + UTIL_ToString( GetNumHumanPlayers( ) ) + " players" );
...
}
This will shuffle the slots after the countdown and only if it's an autohosted game or a game with !autostart x.

EDIT: You could also make the shuffle configurable through a mapconfigWink.
Reply


Messages In This Thread
How to make bot shuffle? - by fudtone - 2010-02-16, 06:47:31
Re: How to make bot shuffle? - by Velocity2k - 2010-02-16, 10:01:16
Re: How to make bot shuffle? - by fudtone - 2010-02-16, 10:23:22
Re: How to make bot shuffle? - by Velocity2k - 2010-02-16, 10:46:51
Re: How to make bot shuffle? - by fudtone - 2010-02-16, 11:00:09
Re: How to make bot shuffle? - by Velocity2k - 2010-02-16, 11:08:46
Re: How to make bot shuffle? - by fudtone - 2010-02-17, 15:50:46

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bots and gproxy make worse connection than before Smartie 11 13,211 2011-07-23, 11:21:07
Last Post: Velocity2k



Users browsing this thread: 1 Guest(s)