How to map mutliple keys to a button in Half Life 2/Team Fortress 2?
Solution 1:
You need an alias. Create a file called autoexec.cfg in your Steam\steamapps\YOUR_ALIAS_HERE\team fortress 2\tf\cfg and add the following:
//Rocket Jump
alias +rocketjump "+jump;+duck;wait;+attack"
alias -rocketjump "-jump;-attack;wait;wait;wait;-duck"
bind mouse2 "+rocketjump"
Change mouse2 to your desired key. You can do so much with scripting, this is just one example. Check out the TF2 Wiki for more.
Solution 2:
Simple.
in steam right-click on tf2, press "OPTIONS", click on Set Launch Options then type -console
. Start TF2, press `~then type
alias +hop "+jump;+duck;wait;+attack"
↵
alias -hop "-jump;-attack;wait;wait;wait;-duck"
↵bind
Keytobind "+hop""-hop"