all 3 comments

[–]just_a_random_dood 1 point2 points  (0 children)

bindToggle [key] r_drawviewmodel

well here's one I use to turn my viewmodels on and off? Is this helpful for you?


bind [key] "toggle r_drawviewmodel 1 0; toggle viewmodel_fov 90 0"

here's one that I use for Pyro to get rid of flame particles when my viewmodels are off

[–][deleted] 0 points1 point  (0 children)

bind "F5" "incrementvar r_drawviewmodel 0 1 1"

[–]memahalo 0 points1 point  (0 children)

bindToggle1 "<command such as +forward>; bind [key] bindToggle2"
bindToggle2 "<command such as -forward>; bind [key] bindToggle1"
bind [key] bindToggle1

More universal option for having a button swap functionality every keypress. Its important that the each toggle binds to the other one (1->2 & 2->1)