Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
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 244 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
    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
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Donate