Autobalance
#1

How do I add auto-balancing into my script? I'm using classes and the gTeam variable. Thanks.
Reply
#2

This isn't the "we script for you section".
Reply
#3

You can't just say "how do I create an autobalancer", because the implementation depends on what you want. Some things that I can think of right now:
  • Amount of players per team
  • Kill-death-ratio per player
  • Win-rate per team
  • ...
When should the autobalancing happen:
  • During a round
  • After each round
  • ...
What is the gamemode:
  • Conquest
  • Team-deathmatch
  • ...
Reply
#4

Quote:
Originally Posted by Freaksken
Посмотреть сообщение
You can't just say "how do I create an autobalancer", because the implementation depends on what you want. Some things that I can think of right now:
  • Amount of players per team
  • Kill-death-ratio per player
  • Win-rate per team
  • ...
When should the autobalancing happen:
  • During a round
  • After each round
  • ...
What is the gamemode:
  • Conquest
  • Team-deathmatch
  • ...
It should happen every 2 or so minutes. That's easy with y_timers.
My gamemode is has an implemented modified turf wars script by MadeMan. Credits go to him.
Reply
#5

There are various ways to do this:
  1. - Divide the player count and the team count, store it in a variable (this gives you a number rounded to floor).
    - Use the number you got as the count of players that will be on each team. Assign a team to the players.
    - Run a if-then statement, and check if the number you got, multiplied by the team count is below the amount of total players.
    - If it's below, run a loop and assign a team to the resultant players.
  2. - Run a loop with last iteration max players, assign a team to a player, increase a count, do the same for another player, increase another count, and so on (the count will be for each team).
  3. Etc.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)