2010-02-16, 06:47:31
how do I make the bot do !sp for each game it autohost?
How to make bot shuffle?
|
2010-02-16, 06:47:31
how do I make the bot do !sp for each game it autohost?
2010-02-16, 10:01:16
You have to edit the source code.
Just add a ShuffleSlots( ) in the CBaseGame::EventGameStarted( ) function (and recompile).
2010-02-16, 10:23:22
Thank you for that.
Any way to make it only the auto-hosted games?
2010-02-16, 10:46:51
It's hard to detect an autohosted game. You can check if m_AutoStartPlayers is greater than 0. But then the bot will also shuffle games where you use the !autostart x command.
With some more programming there is also a better solution. For example you can define a boolean variable and set it when the bot creates a autohost game.
2010-02-16, 11:00:09
Ill stick with your original solution if I can.
So editing the game.ccp would look like this? Code: {
2010-02-16, 11:08:46
I've put it in game_base.cpp. Maybe you want to have it look like this:
Code: void CBaseGame :: EventGameStarted( ) EDIT: You could also make the shuffle configurable through a mapconfig ![]()
2010-02-17, 15:50:46
Seems to be working. Thank you.
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Bots and gproxy make worse connection than before | Smartie | 11 | 13,145 |
2011-07-23, 11:21:07 Last Post: Velocity2k |