If you use different key binds across classes, you will need a script like this to unbind shared keys.
Save this script as reset.cfg in the folder with the rest of your class scripts.
To use it, type exec reset.cfg at the top of every class script, e.g. scout.cfg or engineer.cfg
Basically, this script unbinds keys that are common between classes. This prevents you from rocket jumping as a scout and sentry jumping as a spy.
Want access to cool stuff? As a member you can:
Help! for whatever reason none of this is working, my engineer.cfg script is leaking into the autoexec.cfg script
exec reset.cfg bind mouse5 "buildsentry" alias buildsentry "build 2 0; wait 50; +attack; wait 50; -attack; wait; slot1" bind mouse4 "destroy 2 0"
exec reset.cfg alias "swap" "swap1" alias "swap1" "slot1; alias swap swap2" alias "swap2" "slot2; alias swap swap1" bind "mouse4" "swap" bind "mouse5" "slot3; alias swap swap1"
unbind MOUSE4 unbind MOUSE5
Posted by Pacifist42 just woundering, is there a command that resets all keys to default? that would make the script much simpler
Indeed there is.
That will reset every key to their initial binds.
The purpose of this script is to reset common keys between classes, for example, I change around the mouse keys depending on the class, and this script resets them to what they were originally before switching to the class.
But I digress. If you just want to reset all your keys to the TF2 defaults,
is the way to go.
just woundering, is there a command that resets all keys to default? that would make the script much simpler
//[ FOV Switcher alias fovUpOn "incrementvar viewmodel_fov -120 120 1" //Wheel up with MOUSE4 down...
//Rocket Jump alias +rocketjump "slot1;wait;+jump;+duck;wait;+attack" alias -rocketjump "-jump;-at...