14.05.2018, 10:58
Jesus, in this situation I'd be bordering to some other method.
Both for ease of visual understanding, and for code reasons as well.
These should be an array or enum of some sort, so that instead of having the second switch, in each faction/team, you could just use random, and address the array, rather than having these massive blocks of checks that do singular things.
Having them all in arrays and stashed somewhere, will make them easier to add to, if you use sizeof in the picking of the amount of spawns that the class itself has.
Both for ease of visual understanding, and for code reasons as well.
These should be an array or enum of some sort, so that instead of having the second switch, in each faction/team, you could just use random, and address the array, rather than having these massive blocks of checks that do singular things.
Having them all in arrays and stashed somewhere, will make them easier to add to, if you use sizeof in the picking of the amount of spawns that the class itself has.