I am trying to create a gametype that starts the game with no bots. And then at a later time X bots will be spawned.
So far I have a class that extends UTTeamGame. And I'm trying to overwrite the AddInitialBots function so that it doesn't actually load bots initially.
My log is displaying my comment (many times) so I know it's running my version of AddInitialBots, but bots are still being spawned when my map starts.
I have also tried setting MaxPlayersAllowed=1 in DefaultProperties, but bots are *still* being spawned.
Obviously I can move the slider for NumberOfOpponents to zero in the menu when I'm starting the game, but I don't know how to set the default of that slider to 0 and remove it from the menu, either.
Thanks for any help,
- hdcTambien
So far I have a class that extends UTTeamGame. And I'm trying to overwrite the AddInitialBots function so that it doesn't actually load bots initially.
Code:
function AddInitialBots()
{
`log("Adding Initial Bots");
return;
}
My log is displaying my comment (many times) so I know it's running my version of AddInitialBots, but bots are still being spawned when my map starts.
I have also tried setting MaxPlayersAllowed=1 in DefaultProperties, but bots are *still* being spawned.
Obviously I can move the slider for NumberOfOpponents to zero in the menu when I'm starting the game, but I don't know how to set the default of that slider to 0 and remove it from the menu, either.
Thanks for any help,
- hdcTambien