Bots Are Annoying. How Do I Fix Them?
-
Hey there everybody. I've been wanting to find a fix like this for a while, so i was hoping someone had an answer to this.
When you add-in bots in custom games, and then you attempt to add more in-game, they get kicked immediately.
When the bots are spawned in via custom games menu; if you kick them, more are added in their place.The dvars listed here:
bot_friends = getDvarInt( "bot_friends" ); bot_enemies = getDvarInt( "bot_enemies" );
Seem to indicate how many bots are on the axis & allies team. If changed, the script acts accordingly. However when i change either of these in-game to
false
or0
the game freezes from a connection interrupted error.One other thing. Looking in _bot.gsc has yielded interesting results. This one in particular seems to kick bots while providing extra checks for team counts.
bot_comp_stomp_remove( team ) { players = get_players(); bots = []; remove = undefined; i = 0; while ( i < players.size ) { if ( !isDefined( players[ i ].team ) ) { i++; continue; } if ( players[ i ] maps/mp/_utility::is_bot() ) { if ( level.teambased ) { if ( players[ i ].team == team ) { bots[ bots.size ] = players[ i ]; } i++; continue; } bots[ bots.size ] = players[ i ]; } i++; } if ( !bots.size ) { return; } foreach ( bot in bots ) { if ( !bot maps/mp/bots/_bot_combat::bot_has_enemy() ) { remove = bot; break; } } if ( !isDefined( remove ) ) { remove = random( bots ); } remove botleavegame(); }
botleavegame
Seems to be a built-in function not accessible in the GSC dumps. Dead end here for me personally.Does anyone know how to fix this issue?