Instazoom sniper scope script

Some of you have already used the zoom script, +use toggle script, and perfect wallrun script on my mods page. Here's a new one for you:
When you tap right-click with disruptor, the game instantly changes your FOV to 50. If you continue holding down right-click, the game slowly continues to decrease your FOV below 50 (zooming in).
However, if you already had your cg_fov below 50 before zooming, the game doesn't raise your FOV suddenly to 50. It allows you to keep your existing FOV. Therefore, you can write a script to instazoom the sniper scope to a level you want, without having to hold down right-click and wait for it to gradually zoom in.
This template assumes you normally play with cg_fov 120. If you don't, change the 120 to whatever you use.
bind x "cg_fov 10; wait; +altattack; wait; -altattack; wait; cg_fov 120"
You can change the 10 to alter the zoom amount. Use a lower number to be more zoomed-in; use a higher number to be less zoomed-in.
When you tap right-click with disruptor, the game instantly changes your FOV to 50. If you continue holding down right-click, the game slowly continues to decrease your FOV below 50 (zooming in).
However, if you already had your cg_fov below 50 before zooming, the game doesn't raise your FOV suddenly to 50. It allows you to keep your existing FOV. Therefore, you can write a script to instazoom the sniper scope to a level you want, without having to hold down right-click and wait for it to gradually zoom in.
This template assumes you normally play with cg_fov 120. If you don't, change the 120 to whatever you use.
bind x "cg_fov 10; wait; +altattack; wait; -altattack; wait; cg_fov 120"
You can change the 10 to alter the zoom amount. Use a lower number to be more zoomed-in; use a higher number to be less zoomed-in.