Here's the script I said I was working on a few days ago. It's far from perfect as it's made around my own preferences, but it works and I think it's very easy to use.
This goes in cast_6v6.cfg:
alias redmedic "spec_player_cc 2 5"
alias reddemo "spec_player_cc 2 4"
alias redsoldier "spec_player_cc 2 3"
alias redsoldier2 "spec_player_cc 2 3 1"
alias redscout "spec_player_cc 2 1"
alias redscout2 "spec_player_cc 2 1 1"
alias redsniper "spec_player_cc 2 2"
alias redsniper2 "spec_player_cc 2 2 1"
alias blumedic "spec_player_cc 3 5"
alias bludemo "spec_player_cc 3 4"
alias blusoldier "spec_player_cc 3 3"
alias blusoldier2 "spec_player_cc 3 3 1"
alias bluscout "spec_player_cc 3 1"
alias bluscout2 "spec_player_cc 3 1 1"
alias blusniper "spec_player_cc 3 2"
alias blusniper2 "spec_player_cc 3 2 1"
alias redoffclass_pyro "spec_player_cc 2 7;bind 9 redoffclass_heavy;"
alias redoffclass_heavy "spec_player_cc 2 6;bind 9 redoffclass_engie;"
alias redoffclass_engie "spec_player_cc 2 9;bind 9 redoffclass_spy;"
alias redoffclass_spy "spec_player_cc 2 8;bind 9 redoffclass_pyro;"
alias bluoffclass_pyro "spec_player_cc 3 7;bind 9 bluoffclass_heavy;"
alias bluoffclass_heavy "spec_player_cc 3 6;bind 9 bluoffclass_engie;"
alias bluoffclass_engie "spec_player_cc 3 9;bind 9 bluoffclass_spy;"
alias bluoffclass_spy "spec_player_cc 3 8;bind 9 bluoffclass_pyro;"
alias +campick "bind 1 redmedic;bind 2 reddemo;bind 3 redsoldier;bind 4 redsoldier2;bind 5 redscout;bind 6 redscout2;bind 7 redsniper;bind 8 redsniper2;bind 9 redoffclass_pyro;"
alias -campick "bind 1 blumedic;bind 2 bludemo;bind 3 blusoldier;bind 4 blusoldier2;bind 5 bluscout;bind 6 bluscout2;bind 7 blusniper;bind 8 blusniper2;bind 9 bluoffclass_pyro;"
bind F1 "exec cast_9v9.cfg"
bind SHIFT "+campick"
bind 1 "spec_player_cc 2 5"
bind 2 "spec_player_cc 2 4"
bind 3 "spec_player_cc 2 3"
bind 4 "spec_player_cc 2 3 1"
bind 5 "spec_player_cc 2 1"
bind 6 "spec_player_cc 2 1 1"
bind 7 "spec_player_cc 2 2"
bind 8 "spec_player_cc 2 2 1"
bind 9 "redoffclass_pyro"
Explanation:
1=medic
2=demo
3=soldier 1
4=soldier 2
5=scout 1
6=scout 2
7=sniper 1
8=sniper 2
9=off-class cycle
Holding shift selects RED players. The off-class cycle key is the most complex part of this script; it cycles through pyro, heavy, engie and spy and then back to pyro, and works with the shift toggle. F1 changes to 9v9 mode.
This goes in cast_9v9.cfg:
alias redscout "spec_player_cc 2 1;"
alias redsoldier "spec_player_cc 2 3"
alias redpyro "spec_player_cc 2 7"
alias reddemo "spec_player_cc 2 4"
alias redheavy "spec_player_cc 2 6"
alias redengie "spec_player_cc 2 9"
alias redmedic "spec_player_cc 2 5"
alias redsniper "spec_player_cc 2 2"
alias redspy "spec_player_cc 2 8"
alias bluscout "spec_player_cc 3 1"
alias blusoldier "spec_player_cc 3 3"
alias blupyro "spec_player_cc 3 7"
alias bludemo "spec_player_cc 3 4"
alias bluheavy "spec_player_cc 3 6"
alias bluengie "spec_player_cc 3 9"
alias blumedic "spec_player_cc 3 5"
alias blusniper "spec_player_cc 3 2"
alias bluspy "spec_player_cc 3 8"
alias +campick "bind 1 redscout;bind 2 redsoldier;bind 3 redpyro;bind 4 reddemo;bind 5 redheavy;bind 6 redengie;bind 7 redmedic;bind 8 redsniper;bind 9 redspy;"
alias -campick "bind 1 bluscout;bind 2 blusoldier;bind 3 blupyro;bind 4 bludemo;bind 5 bluheavy;bind 6 bluengie;bind 7 blumedic;bind 8 blusniper;bind 9 bluspy;"
bind F1 "exec cast_6v6"
bind SHIFT +campick
bind 1 "spec_player_cc 2 1"
bind 2 "spec_player_cc 2 3"
bind 3 "spec_player_cc 2 7"
bind 4 "spec_player_cc 2 4"
bind 5 "spec_player_cc 2 6"
bind 6 "spec_player_cc 2 9"
bind 7 "spec_player_cc 2 5"
bind 8 "spec_player_cc 2 2"
bind 9 "spec_player_cc 2 8"
Explanation: 1 through 9 selects the class from scout to spy (backpack order). Holding shift selects RED players. F1 changes to 6v6 mode.
To do:
- single key cycle between soldiers, scouts and snipers in 6v6
- add keypad option
- add mouse scroll cycle option
Enjoy!