you need different one for each class and after you pick the class for the first time (after starting the game) it will always reset to A
this is something i've been using for years and i haven't seen any that work quite as well
loadout.cfg (this has to be executed ONLY on launch)
alias scout_respawn "load_itempreset 0"
alias soldier_respawn "load_itempreset 0"
alias pyro_respawn "load_itempreset 0"
alias demo_respawn "load_itempreset 0"
alias heavy_respawn "load_itempreset 0"
alias engi_respawn "load_itempreset 0"
alias med_respawn "load_itempreset 0"
alias sniper_respawn "load_itempreset 0"
alias spy_respawn "load_itempreset 0"
alias scout_respawn_default "load_itempreset 0"
alias soldier_respawn_default "load_itempreset 0"
alias pyro_respawn_default "load_itempreset 0"
alias demo_respawn_default "load_itempreset 0"
alias heavy_respawn_default "load_itempreset 0"
alias engi_respawn_default "load_itempreset 0"
alias med_respawn_default "load_itempreset 0"
alias sniper_respawn_default "load_itempreset 0"
alias spy_respawn_default "load_itempreset 0"
in autoexec:
bind "f5" "item_preset_a"
bind "f6" "item_preset_b"
bind "f7" "item_preset_c"
bind "f8" "item_preset_d"
then in each class configs (change the class name)
demo_respawn_default
alias item_preset_a "alias demo_respawn load_itempreset 0;load_itempreset 0"
alias item_preset_b "alias demo_respawn load_itempreset 1;load_itempreset 1"
alias item_preset_c "alias demo_respawn load_itempreset 2;load_itempreset 2"
alias item_preset_d "alias demo_respawn load_itempreset 3;load_itempreset 3"
alias demo_respawn_default ""
bind f demo_respawn
f5-f8 are to switch the presets and f is to respawn
Vis
that's gonna break if you change class