Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Bots Are Annoying. How Do I Fix Them?

Bots Are Annoying. How Do I Fix Them?

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
1 Posts 1 Posters 430 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Deicideundefined Offline
    Deicideundefined Offline
    Deicide
    wrote on last edited by Deicide
    #1

    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 or 0 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?

    1 Reply Last reply
    0

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Unread 0
    • Recent
    • Tags
    • Popular
    • Users
    • Groups