1 year ago:
for whatever reason none of this is working, my engineer.cfg script is leaking into the autoexec.cfg script
bind mouse5 "buildsentry"
alias buildsentry "build 2 0; wait 50; +attack; wait 50; -attack; wait; slot1"
bind mouse4 "destroy 2 0"
alias "swap" "swap1"
alias "swap1" "slot1; alias swap swap2"
alias "swap2" "slot2; alias swap swap1"
bind "mouse4" "swap"
bind "mouse5" "slot3; alias swap swap1"
3 years ago:
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.