Wiki Revision Page "scripts" Revision 19:
---+ Scripts

---++ Usefull Scripts

---+++ Zoom Script
This script allows you to zoom while in the game, there are a few variations of this script.


This one zooms in when you press a key and zooms out when you let go of the key.
[code]alias +zoom "fov 30;sensitivity 5"
alias -zoom "fov 90;sensitivity 10"
bind mouse2 +zoom[/code]

This one zooms in when you hit a key then when you hit the key again it will go closer then when you hit the key once again it will go back. You can also bind it to the mousewheel.
[code]alias zoom0 "fov 120; bind f zoom1"
alias zoom1 "fov 70; bind f zoom2"
alias zoom2 "fov 50; bind f zoom0"
bind f zoom1[/code]

---+++ Demo Fast-Forward
[code]bind kp_plus +demoff
alias +demoff "set timedemo 1"
alias -demoff "set timedemo 0"[/code]