New random teams format!
So, currently, the random teams are stored and generated from the file(s?) inside the Names folder.
Thing is, not only those multiple files "confuse me a little" (do we really need all of those, if they still even work?) when we have the types.ini already, that seems to pretty much do all the work.
I would like to propose a little "house cleaning" and some improvements regarding the random team generation, and an extra option.
(1) - All randomly generated teams be stored in a single file - names.ini
(2) - New format for names.ini
(3) - Add a new option when adding teams called "Random Team", that adds a new randomly generated team (you only get to know who it is when the round starts).
Current format:
Clowns
#####
clown
clown-copper
clown-crossed
clown-copper
clown
clown-copper
clown-crossed
clown-copper
WhySoSerious
#####
Fruit
#####
fr_apple
fr_banana
fr_lemon
fr_orange
#####
So here, we basically define the name of the team, and all the members the team can have. Those are then randomly chosen and added to a team. The more entries a certain hat has, the bigger is the chance it might be chosen (assuming, didn't actually try it yet).
New proposed format:
@2 Clowns
1,1 clown
0,3 clown-copper
0,1 clown-crossed
0,2 clown-copper
1,x clown
0,1 clown-copper
0,1 clown-crossed
0,1 clown-copper
0,2 WhySoSerious
@ Fruit
1,x fr_apple
1,x fr_banana
1,x fr_lemon
1,x fr_orange
In this case, we define the beginning of a new team with "@" followed by a number or a range of numbers ("1", "3", "1-4", no range for any random dificulty) that define the difficulty for that team, and finally the team's name.
Bellow that we setup the hats that team is gonna use in the following format:
[min. hogs with the hat],[max number of hogs with the hat] [hat name]
[min. hogs with the hat]
0 - the hat will be added to the randomization pool
1 - add a member with this hat
2 - add 2 members with this hat
...
[max number of hogs with the hat]
(obs.: at least 1 member needs to have "x" as the max number)
"0" or "x" - add as many as needed ("x" should be more human-friendly I guess)
1 - don't add more than 1 member with this hat
2 - don't add more than 1 member with this hat
...
Example:
1,1 clown
this assures the first member always has that hat, and that there is only one using that hat aswell. This can particularly fun if you're creating a star wars team, by setting every other hog a trooper.
We would be able to do just that with this:
1,1 scif_swDarthvader
0,x swStormtrooper
---- What this suggestion doesn't "fix":
* Fixed names for a certain hog
* Fixed names for a certain team
---- Observations:
I just thought of this while messing around, and I'm pretty sure I didn't foresee a few things with this format, so, let me hear (read) your thoughts on this.
I'm sure there are mistakes too, ill fix them next time i look at this.
