bind "KEY" "volswitch"alias "volswitch" "vol3"alias "vol1" "s_volume 0.1; echo Volume Low; alias volswitch vol2"alias "vol2" "s_volume 0.3; echo Volume Med-Low; alias volswitch vol3"alias "vol3" "s_volume 0.5; echo Volume Medium; alias volswitch vol4"alias "vol4" "s_volume 0.7; echo Volume Med-High; alias volswitch vol5"alias "vol5" "s_volume 1.0; echo Volume High; alias volswitch vol1"
Also, you dont have to create a whole script for something as simple as increasing/decreasing a cvar, use the cvar_inc and cvar_dec commands.
bind "KEY" "volup"bind "KEY" "voldn"alias "volup" "cvar_inc s_volume .1 0 1"alias "voldn" "cvar_inc s_volume .1 0 1"
bind "KEY" "volup"bind "KEY" "voldn"alias "volup" "vol3"alias "voldn" "vol2"alias "vol1" "s_volume 0.1; echo Volume Low; alias volup vol2; alias voldn vol5"alias "vol2" "s_volume 0.3; echo Volume Med-Low; alias volup vol3; alias voldn vol1"alias "vol3" "s_volume 0.5; echo Volume Medium; alias volup vol4; alias voldn vol2"alias "vol4" "s_volume 0.7; echo Volume Med-High; alias volup vol5; alias voldn vol3"alias "vol5" "s_volume 1.0; echo Volume High; alias volup vol1; alias voldn vol4"
bind "KEY" "volup"bind "KEY" "voldn"alias "volup" "vol3"alias "voldn" "vol2"alias "vol1" "s_volume 0.1; echo Volume Low; alias volup vol2"alias "vol2" "s_volume 0.3; echo Volume Med-Low; alias volup vol3; alias voldn vol1"alias "vol3" "s_volume 0.5; echo Volume Medium; alias volup vol4; alias voldn vol2"alias "vol4" "s_volume 0.7; echo Volume Med-High; alias volup vol5; alias voldn vol3"alias "vol5" "s_volume 1.0; echo Volume High; alias voldn vol4"