Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] Need Auto Team Balance GSC

[Support] Need Auto Team Balance GSC

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
8 Posts 5 Posters 573 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.
  • A Former User? Offline
    A Former User? Offline
    A Former User
    wrote on last edited by Mr. Android
    #1

    Hello, I am in need of Auto Team Balance GSC for my server, if you can please help let me know. I have no clue how to use GSC or code in general.

    Smechundefined 1 Reply Last reply
    0
    • A Former User? A Former User

      Hello, I am in need of Auto Team Balance GSC for my server, if you can please help let me know. I have no clue how to use GSC or code in general.

      Smechundefined Offline
      Smechundefined Offline
      Smech
      wrote on last edited by
      #2

      zaid Why? There’s two lines in the server config that can do this.

      gts autoTeamBalance 1
      gts allowInGameTeamChange 0
      

      That’s what I have mine set to

      A Former User? 1 Reply Last reply
      1
      • A Former User? Offline
        A Former User? Offline
        A Former User
        wrote on last edited by
        #3

        It does not work because it is not an actual public match, we had that option enabled since the start but never works and teams are always unbalanced, even when choosing teams is disabled.

        Smechundefined 1 Reply Last reply
        0
        • Ioofundefined Offline
          Ioofundefined Offline
          Ioof
          Contributor
          wrote on last edited by
          #4

          You can try scr_teambalance did not try it just looked it up in the teams.gsc

          1 Reply Last reply
          0
          • A Former User? A Former User

            It does not work because it is not an actual public match, we had that option enabled since the start but never works and teams are always unbalanced, even when choosing teams is disabled.

            Smechundefined Offline
            Smechundefined Offline
            Smech
            wrote on last edited by
            #5

            zaid said in Need Auto Team Balance GSC:

            It does not work because it is not an actual public match, we had that option enabled since the start but never works and teams are always unbalanced, even when choosing teams is disabled.

            Also add it to the gamesettings config. Whatever game mode you’re running, add it in there also.

            1 Reply Last reply
            0
            • Smechundefined Smech

              zaid Why? There’s two lines in the server config that can do this.

              gts autoTeamBalance 1
              gts allowInGameTeamChange 0
              

              That’s what I have mine set to

              A Former User? Offline
              A Former User? Offline
              A Former User
              wrote on last edited by
              #6

              Smech said in Need Auto Team Balance GSC:

              gts autoTeamBalance 1

              "gts autoTeamBalance 1" Does not work because the games are not actually public matches, we have had that option enabled but it never auto team balance.

              1 Reply Last reply
              0
              • Xerxesundefined Offline
                Xerxesundefined Offline
                Xerxes
                Plutonium Staff
                wrote on last edited by
                #7

                If only there was a way to get it working 🙄

                	if ( level.teambased )
                	{
                		level.alliesplayers = [];
                		level.axisplayers = [];
                		level thread onplayerconnect();
                		level thread updateteambalancedvar();
                		wait 0,15;
                		if ( level.rankedmatch || level.leaguematch )
                		{
                			level thread updateplayertimes();
                		}
                	}
                	else
                	{
                		level thread onfreeplayerconnect();
                		wait 0,15;
                		if ( level.rankedmatch || level.leaguematch )
                		{
                			level thread updateplayertimes();
                		}
                	}
                }
                
                hyperpenguinundefined 1 Reply Last reply
                0
                • Xerxesundefined Xerxes

                  If only there was a way to get it working 🙄

                  	if ( level.teambased )
                  	{
                  		level.alliesplayers = [];
                  		level.axisplayers = [];
                  		level thread onplayerconnect();
                  		level thread updateteambalancedvar();
                  		wait 0,15;
                  		if ( level.rankedmatch || level.leaguematch )
                  		{
                  			level thread updateplayertimes();
                  		}
                  	}
                  	else
                  	{
                  		level thread onfreeplayerconnect();
                  		wait 0,15;
                  		if ( level.rankedmatch || level.leaguematch )
                  		{
                  			level thread updateplayertimes();
                  		}
                  	}
                  }
                  
                  hyperpenguinundefined Offline
                  hyperpenguinundefined Offline
                  hyperpenguin
                  Contributor
                  wrote on last edited by
                  #8

                  Xerxes could explain more. I can't compile the code above

                  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