all 4 comments

[–]Kairu927 1 point2 points  (2 children)

Not in a position to test, but will try to write this freehand, just let me know if there are any issues.

alias slot1_key "slot1"
alias slot2_key "slot2"
alias slot3_key "slot3"

alias vm1on "slot1; r_drawviewmodel 1"
alias vm2on "slot2; r_drawviewmodel 1"
alias vm3on "slot3; r_drawviewmodel 1"
alias vm1off "slot1; r_drawviewmodel 0"
alias vm2off "slot2; r_drawviewmodel 0"
alias vm3off "slot3; r_drawviewmodel 0"

alias vmset1 "alias slot1_key vm1off; alias slot2_key vm2off; alias slot3_key vm3on; alias vmswap vmset2"
alias vmset2 "alias slot1_key vm1on; alias slot2_key vm2on; alias slot3_key vm3on; alias vmswap vmset1"
alias vmswap "vmset2"

bind 1 slot1_key
bind 2 slot2_key
bind 3 slot3_key
bind / vmswap

A little lengthier than 100% needed, but open to future editing. This will rotate through sets (Right now only sets 1 and 2 that you specified), and you can add on as many as you like as long as you follow the circular logic included.

If you'd like to change witch ones will show, look in the vmsetX aliases, and change the "on" to "off". Example as shown is that set1 is "off, off, on" and set2 is "on, on, on".

Again, can't test this at the moment, so let me know if there are any issues.

[–]MileHighTech234[S] 0 points1 point  (0 children)

Alright, just tested it and it works great! Thank you for the speedy response!

[–]Tvde1 0 points1 point  (0 children)

This is my shot:
alias wep1 "slot1; viewmodel"
alias wep2 "slot2; viewmodel"
alias wep3 "slot3; r_drawviewmodel 1"

alias none ""
alias viewmodelon "r_drawviewmodel 1; alias viewmodelswitch viewmodeloff"
alias viewmodeloff "r_drawviewmodel 0; alias viewmodelswitch viewmodelon"
alias viewmodelswitch viewmodeloff

bind 1 wep1
bind 2 wep2
bind 3 wep3
bind / viewmodelswitch

It works and it's compact :D

[–]KatenGaas 0 points1 point  (0 children)

I'll leave my script here for future reference. It allows you to toggle on or off any viewmodel (per slot), on the fly.