[Support] Need Auto Team Balance GSC
-
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.
-
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
-
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.
-
You can try scr_teambalance did not try it just looked it up in the teams.gsc
-
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.
-
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.
-
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(); } } }
-
Xerxes could explain more. I can't compile the code above