Half-Life Aliases and Scripts

Before trying any of the scripts listed here, be sure to read the Script Help page. Note that control-type scripts may not work under high lag (high ping) conditions without adding extra "wait" commands between each command, and even then some control scripts may not work reliably or at all if the lag is too high. Other types of scripts (zoom, weapon, utility, etc.) don't have this problem.
 
Grunt-O-Matic Spawner  ·  utility  ·  11/17/1999  · Seven^3 
If you don't know about the Grunt-O-Matic, see the cheats page. This script should simplify the process a bit -- just press x to activate the cheats, then press x again to spawn grunts (as many as you like). If you have trouble getting it to work, try adding more "wait" commands in sequence with the others. 
alias set1 "developer 1;mp_allowmonsters 1;sv_cheats 1;"
alias restart "save g;wait;load g;"
alias use "impulse 76"
alias activate "set1; wait; restart; alias key use;"
alias key "activate"
bind x key

 
Clean Screenshot  ·  utility  ·  11/05/1999  · [Xp5]DiaMonD 
DiaMonD sent in a handy script that turns off the player gun model before taking a screenshot, and I've modified it to also turn off the crosshairs temporarily. This is handy for taking screenshots without so much clutter in the way (I wish I could turn off the HUD too). 
alias cleansnap "r_crosshairs 0; r_drawviewmodel 0; wait; snapshot; wait; r_drawviewmodel 1; r_crosshairs 1"
bind F5 cleansnap

 
Eric's Rocket Jumping Script  ·  control  ·  10/19/1999  · Eric 
Eric thinks this one is the best (I prefer manual jumps myself). You decide. That's one long alias line, BTW, so don't let it wrap around. 
alias rocketjump "impulse 7;cl_pitchspeed 5000;+lookdown;+jump;+attack;wait;-jump;-attack;-lookdown;cl_pitchspeed 150;force_centerview"
bind "c" rocketjump

 
Zoom-A-Rama  ·  zoom  ·  09/09/1999  · Randy 
This script is the king of all zoom scripts. It works best with a mousewheel, but a wheel is not required (change the keys as you like). Press the mousewheel (or whatever you change "mouse3" to) and you enter zooming mode, press it again to exit zooming mode. In zooming mode, the mousewheel can zoom in (up) or out (down), and the script will adjust your mouse sensitivity as you go (change the sensitivity numbers to suit your preferences). 
alias zarfov60 "fov 60;sensitivity 10;alias zoomin zarfov50;alias zoomout zarfov60"
alias zarfov50 "fov 50;sensitivity 10;alias zoomin zarfov45;alias zoomout zarfov60"
alias zarfov45 "fov 45;sensitivity 9;alias zoomin zarfov40;alias zoomout zarfov45"
alias zarfov40 "fov 40;sensitivity 9;alias zoomin zarfov35;alias zoomout zarfov45"
alias zarfov35 "fov 35;sensitivity 8;alias zoomin zarfov30;alias zoomout zarfov40"
alias zarfov30 "fov 30;sensitivity 8;alias zoomin zarfov25;alias zoomout zarfov35"
alias zarfov25 "fov 25;sensitivity 7;alias zoomin zarfov20;alias zoomout zarfov30"
alias zarfov20 "fov 20;sensitivity 7;alias zoomin zarfov15;alias zoomout zarfov25"
alias zarfov15 "fov 15;sensitivity 6;alias zoomin zarfov10;alias zoomout zarfov20"
alias zarfov10 "fov 10;sensitivity 5;alias zoomin zarfov5;alias zoomout zarfov15"
alias zarfov5 "fov 5;sensitivity 4;alias zoomin zarfov3;alias zoomout zarfov10"
alias zarfov3 "fov 3;sensitivity 3;alias zoomin zarfov2;alias zoomout zarfov5"
alias zarfov2 "fov 2;sensitivity 2;alias zoomin zarfov1;alias zoomout zarfov3"
alias zarfov1 "fov 1;sensitivity 2;alias zoomin zarfov1;alias zoomout zarfov2"
alias zarlin "+zarhold;alias active zarlout;-forward;-back;speak zoomin"
alias zarlout "-zarhold;alias active zarlin;speak zoomout"
alias +zarhold "zarfov45;-forward;-back"
alias -zarhold "fov 90;sensitivity 10"
alias active zarlin

bind mouse3 active
bind mwheelup zoomin
bind mwheeldown zoomout


 
Automatic Reloader  ·  weapon  ·  09/09/1999  · Randy 
This simple script will reload the weapon you have in hand whever you aren't using it. You will also have to bind a key to "-reload" and press it before respawning after you die. If you prefer, you can bind a key to "-reload; wait; +attack; wait; wait; -attack" and use it for a one-key respawn instead. Note that you'll always see the reloading animation for your weapon, which may be distracting to some.
bind x -reload
bind mouse1 +at
alias +at "-reload;+attack"
alias -at "-attack;+reload"