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
falseor0the 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(); }botleavegameSeems 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?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login