Is it possible to set item "loadouts" to a hotkey in TF2?
Solution 1:
Valve finally added this as a first class feature a few patches ago, in the Manniversary Update:
You can now have up to four saved loadouts per class.
Solution 2:
You can assign a key to allow you to switch your current weapon for one of the other weapons you have for the same loadout slot. It doesn't save a set of weapons, but you can change your loadout in game and on the fly (you will have to visit a weapons locker or respawn for it to take effect though). Simply select the weapon you want to change, hold the key you assigned, and then select the replacement weapon from the pop-up.
Solution 3:
Good question.
EDIT: You are right, just tested and I failed. Valve removed equip
cvar and it seems that is not possible anymore and that there are no other possibilities to get swap a set of items in one shot
I found a script example onf FPSBanana that describe the following steps (these are just some example for some classes):
In medic.cfg:
alias "main1" "equip 5 0 0; bind F6 main2" //Equip Needlegun
alias "main2" "equip 5 0 1; bind F6 main1" //Equip Blutsauger
And finally in autoexec.cfg (note: if you don't have this file, just open notepad put this in and then save as "autoexec.cfg" in "\tf\cfg"):
bind F6 "main2"