Map a key to switch between my favorite weapons for each class?

Is there some way to map a key so that it switches between my favorite weapons for each class?

I haven't played much Team Fortress 2 yet, but for most of the classes I use one or two weapons. I often use "q" to easily switch between these weapons, but by default "q" switches between the weapons mapped to the keys 1 and 2. Is it possible to configure a button so that it will always switch between my favorite weapons? For example, it could switch between flamethrower and axe for Pyro and pistol and cloaking for Spy.

Update: My motivation is that I, when I die, have to remember to switch between my favorite weapons. If I don't I find myself in a situation where I switch to the wrong weapon causing me to die way to many times...


You can check an option under multiplayer -> advanced to "remember last weapon between lives". That should make it easier to keep "Q" rotating between your preferred weapons -- You'll only have to swap between them once, when you first spawn as that class.


By default Q should switch between your last used weapons. So if you first use your flame-thrower and then your axe Q should first switch back to the flame-thrower and then back to the axe again.


Since I don't have enough reputation to comment yet, I'll just add to the post about the Q hotkey.

I usually map "switch between last used weapons" to fourth mouse button ( the one at my thumb ). This really speeds things up, and frees up your strafe-fingers for WASD for an extra millisecond or two ;)