r/truetf2 • u/dragonslayernick Engineer • Mar 07 '12
My Numpad class switcher Keybinds
I found bits and pieces of this and put them together to make switching classes easier, but it actually became a lot more useful when I realized the potential. For instance, if I'm in spawn on fire, and I'm not going to make it to the cabinet, I slam random numbers to change classes quickly so that I don't die. Then, I switch back to whatever I was and continue on. Also, it's pretty cool to be able to switch loadouts on the fly.
There's no reason NOT to use this since TF2 doesn't use the numberpad out of the box.
bind "KP_END" "join_class scout" // Pressing KEYPAD 1 will change class to Scout.
bind "KP_DOWNARROW" "join_class soldier" // Pressing KEYPAD 2 will change class to Soldier.
bind "KP_PGDN" "join_class pyro" // Pressing KEYPAD 3 will change class to Pyro.
bind "KP_LEFTARROW" "join_class demoman" // Pressing KEYPAD 4 will change class to Demoman.
bind "KP_5" "join_class heavyweapons" // Pressing KEYPAD 5 will change class to Heavy.
bind "KP_RIGHTARROW" "join_class engineer" // Pressing KEYPAD 6 will change class to Engineer.
bind "KP_HOME" "join_class medic" // Pressing KEYPAD 7 will change class to Medic.
bind "KP_UPARROW" "join_class sniper" // Pressing KEYPAD 8 will change class to Sniper.
bind "KP_PGUP" "join_class spy" // Pressing KEYPAD 9 will change class to Spy.
bind NUMLOCK "load_itempreset 0" // Use Loadout slot A
bind KP_SLASH "load_itempreset 1" // Use Loadout slot B
bind KP_MULTIPLY "load_itempreset 2" // Use Loadout slot C
bind KP_MINUS "load_itempreset 3" // Use Loadout slot D
4
u/guamaniantreerunner Soldier Mar 07 '12
Hey, great script. you should cross post this in /r/Tf2Scripts. It would be appreciated there as well.
2
u/mockingod Not good at competitive at all Mar 07 '12
In highlander, where the server sets a limit on the amount of classes, I'd bind all of those keys to load a different item preset, because then instead of not being able to change to another class, you'd load a different item preset and do the same thing.
1
u/EchoSi3rra Mar 29 '12
This is an awesome script. I didn't know you could bind loadout presets, totally adding that.
Also here are another couple fun ones you can add:
bind "KP_INS" "join_class random"
bind "KP_DEL" "explode"
2
u/meekingz g2gfast Mar 07 '12
This is great. I wish I had a numpad :(
2
u/QuazAndWally That Spy is an Engineer! Mar 08 '12
Whoa whoa whoa whoa
There's a console command for swapping preset loadouts!?
I need to come back to tf2
1
u/Electrical-Review247 Sep 14 '24
hey uh, this is a really old post and all, but the Loudout slot B bind doesnt work... any idea whats going on?
3
u/[deleted] Mar 07 '12
[removed] — view removed comment