//This is called a script :-)
If you want this start by making a file example name it zoom.cfg and place it in your baseq3
This is all the weapons keys and names so if you want to bind you do weapon8 then its plasmagun
1=Gaunt
2=MG
3=SG
4=GL
5=RL
6=LG
7=RG
8=PG
9=BFG
option 1
bind mouse2 "cg_fov 22.5"
bind mouse1 "+attack;cg_fov 110"
bind 7 "weapon7;cg_fov 110"
bind 1 "weapon 1;cg_fov 110"
Explain how it works : when you press mouse2 your fov will be set to 22.5 witch is zoomfov default and when you press mouse1 you'll fire and the fov will auto go back to 110 but then we also have the weapon7,1 bind well that. if you press 7 or 1 the fov will be set to 110 and it will switch to weapon 7 or 1
option 2
bind mouse2 "vstr zoomfov00"
set zoomfov00 "cg_fov 22.5;set mouse2 vstr zoomfov01"
set zoomfov01 "cg_fov 110; set mouse2 vstr zoomfov00"
Explain how it works : this is what i call a double script you can call it what ever you want :-) this is how it works when you press mouse2 button fov will be 22.5 and then if you press mouse2 again fov will be 110 so you can switch between fovs just by pressing 1 button so that means if you want to zoom in press mouse2 if you want to zoom out press it again