untamedbind "1" "slot1;viewmodel_fov 90;r_drawviewmodel 0;"
bind "2" "slot2;viewmodel_fov 75;r_drawviewmodel 1;"
bind "3" "slot3;viewmodel_fov 90;r_drawviewmodel 1;"
alias PreviousWeapon s1
//Aliases for the settings + binding to q
alias s1 "slot1;viewmodel_fov 90;r_drawviewmodel 0; bind q PreviousWeapon"
alias s2 "slot2;viewmodel_fov 75;r_drawviewmodel 1; bind q PreviousWeapon"
alias s3 "slot3;viewmodel_fov 90;r_drawviewmodel 1; bind q PreviousWeapon"
//Aliases that change the slot storage
alias q1 "alias PreviousWeapon s1"
alias q2 "alias PreviousWeapon s2"
alias q3 "alias PreviousWeapon s3"
//binds
bind 1 "s1; q1"
bind 2 "s2; q2"
bind 3 "s3; q3"
//resulting bind: switch to weapon, bind q to the stored slot, change the stored slot to the current weapon for when you next switch weapons
I wrote this rather quickly and did not test it (it would fuck up my own binds and I don't want to deal with the mess)
PM me if it doesn't work and I'll look at it in the next couple days
edit: doesn't work.
best solution is to use yttrium comp viewmodels to have the r_drawviemodel embedded into the animations
or use horse's viewmodel editor which will do both r_drawviewmodel and viewmodel_fov for you, but you have to edit the coordinates of relevant slot2 weapon animations to look like viewmodel_fov 75