Circle-Strafer  ·  all  ·  03-11-2000  · unknown

This is for running a circle around the enemy, one key for left circles (Y) and one for right circles (X) so you can focus your attention on getting a frag.

alias +circ_l "+moveleft;+right"
alias -circ_l "-moveleft;-right"
alias +circ_r "+moveright;+left"
alias -circ_r "-moveright;-left"
bind "X" +circ_r
bind "Y" +circ_l

 

Automatic Conc-Jumper III  ·  all  ·  03-11-2000  · -Phoenix-**SA**

This Automated script is similar to [RTL]Redleg's but with a few extra commands added in for even more accuracy (at least I think so). This script works best with around 240 - 340 latency. As in [RTL]Redleg 's script you may need to ajust the wait1sec alias. With a little tweaking you will be able to concussion jump not only up the elevator shaft but use it for normal precision concussion jumps as well.

alias wait1sec "wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait"
alias wait2sec "wait1sec; wait1sec"
alias wait3sec "wait2sec; wait1sec"
alias wait4sec "wait2sec; wait2sec"
alias wait5sec "wait3sec; wait2sec"
alias +hijump "+jump;wait;+duck;-jump"
alias -hijump "-duck"
alias concr "cl_pitchspeed 225; primetwo; exec timer.cfg; wait5sec; force_centerview; wait; +forward; wait1sec; +lookdown; wait; wait; wait; wait; wait; wait; wait; wait; +hijump; wait; -forward; wait; wait; -hijump; wait; wait; -lookdown; force_centerview; cl_pitchspeed 150"
bind x "concr"

// put this in a separate file named timer.cfg in Half-Life\TFC
speak "three _comma _comma _comma two _comma _comma _comma one _comma _comma _comma zero"

 

Autoreload On Fire  ·  all  ·  03-11-2000  · -Phoenix-**SA**

This is a simple Auto-reload script that is bound to your mouse1 button so it is automatically initiated everytime you attack. When you die just hit mouse1 and you respawn. If you use some other key for primary attack, change mouse1 to that key. Note that if you happen to die at just the right (wrong) time, you may be left with +reload on and not be able to respawn without firing two or more times or, in extreme cases, entering -reload into the console.

alias +attkload "+attack;wait;wait;-reload"
alias -attkload "-attack;wait;wait;+reload"
bind mouse1 +attkload

 

Automatic Conc-Jumper II  ·  all  ·  03-11-2000  · ??MAJIK??

Another shot at the elusive and tempermental automatic conc-jump (or grenade jump for classes without concs). You may need to add/remove "wait" commands to get the timing right for your connection speed/quality.

alias 1sec "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait"
alias tfchj "primetwo;1sec;1sec;1sec;1sec;wait;wait;wait;+jump;wait;-jump
bind / tfchj

 

Clean Screenhot  ·  all  ·  03-11-2000  · [Xp5]DiaMonD

A very simple alias that simply puts your gun away, takes a screenshot, and bings your gin back again, so you get screenshots without the gun. Use the X key, or change that binding to whatever you like (such as F5, which is the default screenshot key).

alias guno "r_drawviewmodel 0;wait;snapshot;wait;r_drawviewmodel 1"
bind x guno

 

Sentry Auto-Build and Upgrade  ·  engineer  ·  03-11-2000  · Savior-Sephiroth

Press x to build a sentry gun, then press y twice to upgrade it.

bind x sentry
bind y supgrade
alias sentry "+attack2; wait; -attack2; wait; menuselect 2;"
alias supgrade "slot1; wait; +attack; wait; -attack; wait; menuselect 2"

 

Quick Feign-to-Knife  ·  spy  ·  03-11-2000  · [BOV]Glide

Use this to make END (or any key you change that to) a quick-feign and stab-em-in-the-back key. To use press and hold the END (or keypad1) key to start feigning (silently), then when you are ready to strike, simply release the END key and you will spring up with your knife ready.

alias +silent_feign "sfeign"
alias -silent_feign "sfeign;wait;use tf_weapon_knife"
bind END "+silent_feign"

 

Grenade Primer With Countdown Version 2  ·  all  ·  03-11-2000  · Alfonso

Press 'F' to prime a primary grenade and start the countdown, then press it again to throw. 'G' does the same thing for secondary grenades.

alias bomb1 "+gren1;wait;exec timer.cfg; bind f bomb1throw"
alias bomb1throw "-gren1;wait;bind f bomb1"
alias bomb2 "+gren2;wait;exec timer.cfg; bind g bomb2throw"
alias bomb2throw "-gren2;wait;bind g bomb2"
bind "f" "bomb1"
bind "g" "bomb2"

//then create a file called TIMER.CFG in Half-Life/TFC, and in this one, put:
speak "three,_comma, two,_comma, one,_comma, zero"

 

Spy Class-Change Notifier  ·  spy  ·  03-11-2000  · Alex

The ENTER key followed by any class number (1-9) will let your teammates know what class you're disguising as.

bind "ENTER" "spyman"
alias "spyman" "special;wait;bind 1 spyer;bind 2 spcolor;bind 3 menuselect 3;bind 4 menuselect 4;bind 5 menuselect 5"
alias "spyer" "menuselect 1;wait;say_team I am changing to an enemy . .;wait;spychange"
alias "spcolor" "menuselect 2;wait;say_team I am changing to enemy colour;resetnumber"
alias "spychange" "bind 1 spscout;bind 2 spsnipe;bind 3 spsold;bind 4 spdemo;bind 5 spmed;bind 6 sphwguy;bind 7 sppyro;bind 8 spspy;bind 9 spengin"
alias "spscout" "menuselect 1;wait;say_team . . Scout, be careful!;wait;resetnumber"
alias "spsnipe" "menuselect 2;wait;say_team . . Sniper, be careful!;wait;resetnumber"
alias "spsold" "menuselect 3;wait;say_team . . Soldier, be careful!;wait;resetnumber"
alias "spdemo" "menuselect 4;wait;say_team . . Demoman, be careful!;wait;resetnumber"
alias "spmed" "menuselect 5;wait;say_team . . Medic, be careful!;wait;resetnumber"
alias "sphwguy" "menuselect 6;wait;say)team . . HWguy, be careful!;wait;resetnumber"
alias "sppyro" "menuselect 7;wait;say_team . . Pyro, be careful!;wait;resetnumber"
alias "spspy" "menuselect 8;wait;say_team . . Spy, be careful!;wait;resetnumber"
alias "spengin" "menuselect 9;wait;say_team . . Engineer, be careful!;wait;resetnumber"
alias "resetnumber" "bind 1 slot1;bind 2 slot2;bind 3 slot3;bind 4 slot4;bind 5 slot5;bind 6 slot6;bind 7 slot7;bind 8 slot8;bind 9 slot9"

 

Grenade-Type Toggler With Voice Feedback  ·  all  ·  03-11-2000  · [NI] Redleg

This script makes one key (/) toggle between the two grenade types (press mouse2 to launch the selected type) and gives voice feedback to let you know what grenade is selected. Note that, when using the speak command in an alias, it is necessary to separate the "words" with commas WITHOUT using any spaces. It seems the speak command interprets ANY space as the end of the phrase.

// verbal feedback for current grenade type
alias s_pgs "speak primary,grenade,selected"
alias s_sgs "speak secondary,grenade,selected"
// shorten developer mode
alias devon "developer 1"
alias devoff "developer 0"
// toggles mouse2 between the 2 grenade types
alias w_grenade1 "bind mouse2 +gren1; bind / w_grenade2; devon; echo GRENADE 1; devoff; s_pgs"
alias w_grenade2 "bind mouse2 +gren2; bind / w_grenade1; devon; echo GRENADE 2; devoff; s_sgs"
bind mouse2 w_grenade2
w_grenade2

Feign with Flag and Pack Drop  ·  spy  ·  03-11-2000  · unknown

Press X to feign death, drop the flag (if you have it), and drop a pack -- both far enough away so that you don't accidentally pick them up again once feigned.

alias ffeign "cl_pitchspeed 6000; +lookdown; wait; discard; dropitems; feign; -lookdown; force_centerview; cl_pitchspeed 150"
bind X ffeign

 

Still Another Automatic Conc-Jumper  ·  all  ·  03-11-2000  · unknown

This version seems to work better for many people, so give it a try if the other jump scripts fail.

alias s_countdown "speak three,_comma,two,_comma,one,_comma,zero"
// timing for 1-4 seconds
alias wait1sec "wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait"
alias wait2sec "wait1sec; wait1sec"
alias wait3sec "wait2sec; wait1sec"
alias wait4sec "wait2sec; wait2sec"
// concussion grenade jump with countdown timer automatic
alias concjump "primetwo; s_countdown; wait4sec; +forward; wait; wait2sec; wait; +jump; wait; -jump; -forward"
bind "c" "concjump"

 

Fire and Prime  ·  all  ·  03-11-2000  · -Phoenix-**SA**

In the heat of battle many people sometimes forget one of the most powerful assets in their arsenal . . . grenades. This script allows the player to fire his/her weapon and prime a grenade at the same time with an audible countdown by pressing "x". When the player wants to release the grenade he/she just needs to stop holding the "x" button.

alias +grenattk "+attack; +gren1; +gren2; primeone; exec timer.cfg"
alias -grenattk "-attack; -gren1; -gren2; throwgren"
bind x +grenattk

//In timer.cfg (make a new config file in Half-Life/TFC):
speak "three _comma _comma _comma two _comma _comma _comma one _comma _comma _comma zero"

 

FishEye View  ·  hwguy  ·  03-11-2000  · unknown

NOTE: This script will not work with the latest versions of Half-Life (after 1.0.1.3)

This is a simple script which allows you to switch to a fisheye camera view while X is held down. This is good for those in-close situations where scouts try and run circles around you, but is not reccomended for long range fighting. FYI, neither is the AC. You can change X to whatever whatever would be easiest for your control configuration.

alias +fisheye "fov 140"
alias -fisheye "fov 90"
bind X "+fisheye"

 

Rocket Jump Variations  ·  soldier  ·  03-11-2000  · Old_Man

Choose your jump type depending on the situation.

// Standard Rocket Jump: You can use 3 Standard jumps without dying
alias +RocketJump "cl_pitchspeed 10000; +lookdown; wait; +jump; +attack; +duck; wait; -attack; -jump; -lookdown; cl_pitchspeed 150; force_centerview"
alias -RocketJump "-duck"

// Long rocket jump: Takes a smaller amount of armor and health,
// press it when your on the run to escape enamys or to reach your
// destination faster. You can use 6 long jumps without dying
alias +LongRocketJump "cl_pitchspeed 10000; cl_pitchdown 115; +jump; +duck; +lookdown; +attack; wait; force_centerview; -attack; -jump; -lookdown; cl_pitchspeed 150; cl_pitchdown 89"
alias -LongRocketJump "-duck"

// High rocket junp: You should use this while running and when fairly
// close to your target. You can use 3 high jumps without dying.
alias +HighRocketJump "cl_pitchspeed 10000; cl_pitchdown 75; +lookdown; wait; +jump; +attack; +duck; wait; -attack; -jump; -lookdown; cl_pitchspeed 150; cl_pitchdown 89; force_centerview"
alias -HighRocketJump "-duck"

bind "x" "+RocketJump"
bind "y" "+LongRocketJump"
bind "z" "+HighRocketJump"

 

Sentry-Builder Modified Version  ·  engineer  ·  03-11-2000  · unknown

This is just a better version (in my opinion) of p3y0t3 [Clan Erinyes] already awsome build script for hardcore engineers. The only problems I had with the original script was that you still had one ammo boost left and that after it was built you still had the wrench in your hand. I just made it where you tried 2 ammo upgrades and then a last inventory thing at the end. Works great!

alias tryall "trymake; wait; tryup; wait; tryfix; wait; tryam; wait; tryam; wait; lastinv"
alias trymake "special; menuselect 2"
alias tryup "slot1; wait; wait; wait; wait; +attack; wait; -attack; wait; menuselect 2"
alias tryfix "slot1; wait; wait; wait; wait; +attack; wait; -attack; wait; menuselect 3"
alias tryam "slot1; wait; wait; wait; wait; +attack; wait; -attack; wait; menuselect 1"
alias tryam "slot1; wait; wait; wait; wait; +attack; wait; -attack; wait; menuselect 1"
bind x tryall

 

Zoom Script Basic Version  ·  all  ·  03-11-2000  · unknown

NOTE: This script will not work with the latest versions of Half-Life (after 1.0.1.3) This script allows you to zoom in and out using the mouse wheel. The first level of zoom is close enough to maneuver about, but zoomed enough to see what's going on ahead. The second zoom is actually further than the sniper rifle can go!

alias zoomLevNorm "fov 80; bind mwheelup zoomLev1; bind mwheeldown zoomLevNorm"
alias zoomLev1 "fov 35; bind mwheelup zoomLev2; bind mwheeldown zoomLevNorm"
alias zoomLev2 "fov 2; bind mwheelup zoomLev2;bind mwheeldown zoomLev1"
bind mwheelup "zoomLev1"
bind mwheeldown "zoomLevNorm"

 

Zoom Script Mega-Version  ·  all  ·  03-11-2000  · [TRoD]Earl_the_Squirrel

NOTE: This script will not work with the latest versions of Half-Life (after 1.0.1.3) If you've got an unused mousewheel I now have a script for it that you can try out. This works for other binds besides the mousewheel but it is very inconvenient.

After executing the script you will be able to dynamically zoom in and out from a wider than normal angle useful to see more than normal at once to a narrow angle so small that on Hunted you could zoom in to a fullscreen image of the president's head from the other side of the map, with many divisions in between. I find that this .cfg is expecially useful with the sniper class at times as it lets you zoom in even when in machinegun mode. It's also good for nailing sentry guns accurately from long distances.

echo Zooming config file loaded
alias zoomout "zoomout90"
alias zoomin "zoomin90"
alias zoomin90 "fov 75; alias zoomin zoomin75; alias zoomout zoomout75"
alias zoomout90 "fov 105; alias zoomin zoomin105; alias zoomout zoomout105"
alias zoomin75 "fov 60; alias zoomin zoomin60; alias zoomout zoomout60"
alias zoomout75 "fov 90; alias zoomin zoomin90; alias zoomout zoomout90"
alias zoomin60 "fov 50; alias zoomin zoomin50; alias zoomout zoomout50"
alias zoomout60 "fov 75; alias zoomin zoomin75; alias zoomout zoomout75"
alias zoomin50 "fov 40; alias zoomin zoomin40; alias zoomout zoomout40"
alias zoomout50 "fov 60; alias zoomin zoomin60; alias zoomout zoomout60"
alias zoomin40 "fov 30; alias zoomin zoomin30; alias zoomout zoomout30"
alias zoomout40 "fov 50; alias zoomin zoomin50; alias zoomout zoomout50"
alias zoomin30 "fov 25; alias zoomin zoomin25; alias zoomout zoomout25"
alias zoomout30 "fov 40; alias zoomin zoomin40; alias zoomout zoomout40"
alias zoomin25 "fov 20; alias zoomin zoomin20; alias zoomout zoomout20"
alias zoomout25 "fov 30; alias zoomin zoomin30; alias zoomout zoomout30"
alias zoomin20 "fov 15; alias zoomin zoomin15; alias zoomout zoomout15"
alias zoomout20 "fov 25; alias zoomin zoomin25; alias zoomout zoomout25"
alias zoomin15 "fov 10; alias zoomin zoomin10; alias zoomout zoomout10"
alias zoomout15 "fov 20; alias zoomin zoomin20; alias zoomout zoomout20"
alias zoomin10 "fov 7; alias zoomin zoomin7; alias zoomout zoomout7"
alias zoomout10 "fov 15; alias zoomin zoomin15; alias zoomout zoomout15"
alias zoomin7 "fov 5; alias zoomin zoomin5; alias zoomout zoomout5"
alias zoomout7 "fov 10; alias zoomin zoomin10; alias zoomout zoomout10"
alias zoomin5 "fov 4; alias zoomin zoomin4; alias zoomout zoomout4"
alias zoomout5 "fov 7; alias zoomin zoomin7; alias zoomout zoomout7"
alias zoomin4 "fov 3; alias zoomin zoomin3; alias zoomout zoomout3"
alias zoomout4 "fov 5; alias zoomin zoomin5; alias zoomout zoomout5"
alias zoomin3 "fov 2; alias zoomin zoomin2; alias zoomout zoomout2"
alias zoomout3 "fov 4; alias zoomin zoomin4; alias zoomout zoomout4"
alias zoomin2 "fov 1; alias zoomout zoomout1"
alias zoomout2 "fov 3; alias zoomin zoomin3; alias zoomout zoomout3"
alias zoomout1 "fov 2; alias zoomin zoomin2; alias zoomout zoomout2"
alias zoomin105 "fov 90; alias zoomin zoomin90; alias zoomout zoomout90"
alias zoomout105 "fov 115; alias zoomin zoomin115; alias zoomout zoomout115"
alias zoomin115 "fov 105; alias zoomin zoomin105; alias zoomout zoomout105"
alias zoomout115 "fov 120; alias zoomin zoomin120"
alias zoomin120 "fov 115; alias zoomin zoomin115; alias zoomout zoomout115"
bind "MWHEELDOWN" "zoomout"
bind "MWHEELUP" "zoomin"

 

Sniper Quick-Switch  ·  sniper  ·  10-31-1999  · MGD_EnemyWithin

Press and hold x and you go into sniper mode and start charging the rifle. Release x and you fire and go back to normal mode with your last weapon back.

< font face="Courier"> alias +snipeon "tf_weapon_sniperrifle; wait; special; wait; +attack"< br> alias -snipeon "-attack; wait; special; wait; lastinv"
bind x "+snipeon"

 

Autoreloader Without Reset  ·  all  ·  10-30-1999  · Old_Man

This script alleviates the need for a reset button when using auto-reload. It will function at the start and stop of player movement. This script will not be effective if you stand in one spot the entire game :)

alias +f "+ forward;+reload"
alias -f "-forward;+reload;wait;-reload"
alias +b "+back;+reload"< br>alias -b "-back;+reload;wait;-reload"
alias +l "+moveleft;+reload"
alias -l "- moveleft;+reload;wait;-reload"
alias +r "+moveright;+reload"
alias -r "-moveright;+ reload;wait;-reload"

//bind +f to your foward button
//bind +b to your back button
//bind +l to your moveleft button
//bind +r to your moveright button

Auto-Crouch on Jump  ·  all  ·  09-17-1999  · Lamb

Here's a script that makes you crouch in the air as long as jump is held down (to lift your legs and get that tiny bit of extra height). The downside is you can't swim up with it anymore.

bind mouse3 +hijump
alias +hijump "+ jump;wait;+duck;-jump"
alias -hijump "-duck"

You can use the same idea for rocket-jumps:

bind c +rocketjump
alias rjump "+jump;+attack;wait;-attack;-jump"
alias +rocketjump "cl_pitchspeed 9999; +lookdown; wait; rjump; -lookdown;force_centerview; wait;cl_pitchspeed 150;+duck"
alias -rocketjump "-duck"

< font face="Arial" color="#FFFFFF"> . . . or pipe-jumps:

bind c +pipejump
alias +pipejump "+jump; wait; detpipe; -jump;+duck"
alias - pipejump "-duck"

 

Quick-Switch Alternate Weapon  ·  all  ·  09-17-1999  · Sentinel

This is really a simple tip . . . but it's really helpful. In each of the config's for every class, add the command to use your second favorite weapon, followed by the command to use your favorite weapon. For example, I usually play the engineer, and I never use the pistol, so I added:

tf_weapon_spanner
tf_weapon_supershotgun

to my engineer.cfg, so I don't have to switch weapons when I start and I can use the "previous weapon" key to switch between the spanner and the shotgun.

That's a great tip. In case you're confused, adding those two lines simply makes your player (an engineer in this case, since these are engineer weapons, and these lines are in the engineer.cfg file) switch to the spanner (the wrench ), and then the super-shotgun as soon as you spawn. So, you'll start with the super- shotgun weapon, but the previous weapon you held was the wrench, so hitting "previous weapon" (the key bound to lastinv) switches to the wrench. Hitting it again switches back to the super-shotgun, and so on.

This works well unless you happen to use a different weapon, or forget and use the normal weapon-switch key to change to the weapon you already have. A more reliable way to accomplish the same thing is to make a script for toggling between your two favorite weapons. This example is for the engineer, but the idea can be applied to any class by simply changing the weapon names as appropriate.

alias gowrench "bind x wrench"
alias gosgun "bind x sgun"
alias wrench "use tf_weapon_spanner; gosgun"
alias sgun "use tf_weapon_supershotgun; gowrench"
sgun

With this script in your .cfg, pressing X (or whatever you change that to, and be sure to change it in both places) will switch to the shotgun or the spanner, depending on which one of those two weapons you held last, and irrespective of what other weapon keys you may have hit since then. Pretty cool, but there's still room for improvement.

For many classes , it's nice to be able to quickly switch to a secondary weapon, fire a few shots, and then go back to your main gun. This is especially good for the HWGuy -- the autocannon is certainly the weapon a HW wants out most of the time, but a quick scout will fly by before he even has a chance to spin up. If you could switch to the super-shotgun, kill the scout , and then switch back all with a single key, you could improve your chances of fragging a scout. This is useful for almost all classes, but I'll stick with the engineer example to show the technique:

bind x +fireshot
alias + fireshot "use tf_weapon_supershotgun; +attack"
alias -fireshot "-attack; lastinv"

Now, no matter what weapon you have readied, pressing X will switch to the super-shotgun and fire continuously as long as the X key is held down. Releasing the X key will stop firing, and return to the previous weapon, no matter what it was. You can make a script like this for each class (using the same key for each, but with different weapon names) and put each script in the appropriate class.cfg file so this one key acts as "fire secondary weapon" for all classes.

 

Sniper Charge Audible Timer  ·  sniper  ·  09-17-1999  · Ahumado{dbd}

This script is for those who want to make sure the sniper rifle is fully charged . Press x to start charging and the audible countown to max charge. When you're ready, click the left mouse button (or whatever you change 'mouse1' to) to fire.

< small> alias timer "speak seven.six.five.four.three.two.one"
alias charge "+attack;wait;timer;bind mouse1 fire"
alias fire "-attack;wait;bind mouse1 +attack"
bind X "charge"

 

Auto-Reload  ·  all  ·  09-17-1999  · Michael

Here's a reload script that will constantly try to reload your readied weapon.  Note that this may not be what you want in some instances (and may not matter much at all for some classes like the HW Guy since his main weapon requires no reloading).

To use this script:  when you first spawn, press "r" (or change that key bind to whatever you prefer) to start auto-reloading.  When you die, press "r& quot; again to respawn and continue reloading.

//reload automatically
alias "rreload" "+reload;bind r rrespawn" ;
alias "rrespawn" "-reload;wait;+attack;wait;-attack;wait;wait;wait; rreload"
bind "r" "rreload"

 

Grenade Primer  ·  all  ·  09-17-1999  · Sam

With this script you can press the default grenade keys (f, g) once to prime and again to throw.  This is useful for timing grenades to go off as soon as they land.

bind "f" "grenonethrow"
bind & quot;g" "grentwo"


alias grenone " ;+gren1;wait; bind f grenonethrow"
alias grenonethrow "-gren1;wait;bind f grenone"
alias grentwo "+gren2;wait; bind g grentwothrow"
alias grentwothrow "-gren2;wait;bind g grentwo"

 

Rocket Jump (Semi-Automatic)  ·  soldier  ·  09-17-1999  · Lord Ed

Ever wonder how some of those soldiers just seem to appear on your balcony in 2fort?  ; It's a rocket jump and below are several scripts to help you do it.  I have to recommend that you learn to do them manually for the utmost trajectory control (though after a longer learning curve than scripting).   Just aim down (or nearly) fire a rocket at your feet, and jump.  The angle of your aim and the time between jump and fire will determine your trajectory.

If you can't get the fire/jump timing consistently try an alias like the following.  It requires that you aim, then just press 'x' to launch.   You may want to tweak the timing by adding "wait" statements between the +attack and +jump.

< font face="Courier">bind SPACE +rj1
alias "+rj1" "+attack; +jump"< br> alias "-rj1" "-attack; -jump"

 

Automatic Conc-Jumper  ·  all  ·  09-17-1999  · [RTL]Redleg

This script differs from other "conc jump" scripts in that you can press the key and take your hands off the keyboard and make a prefect jump every time. This script will allow any class with a concussion grenade to jump forward with consistent accuracy. I use this to jump the elevator shaft in 2fort all the time. I stand at the edge of the shaft just past the overhead light and face the elevator. I then hit my "conc jump" key (page down in the example) and I'm at the top of the shaft with no injuries every time.

The countdown timer is just to let you know when you're going to jump. The only part that may need to be edited is the first wait1sec alias to make machine timing. Since this whole script is bound to one key it should also be lag resistant.

This is also an example of using the speak command in an alias.

in AUTOEXEC.CFG:
// miscellaneous
alias s_countdown "speak three,_comma,two,_comma,one,_comma,zero"

// timing for 1-4 seconds
alias wait1sec "wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait; wait"
alias wait2sec "wait1sec; wait1sec"
alias wait3sec "wait2sec; wait1sec"
alias wait4sec "wait2sec; wait2sec"

// concussion grenade jump with countdown timer automatic
alias concjump "primetwo; s_countdown; wait4sec; +forward; wait; wait; wait; +jump; wait; -jump; -forward"
bind pgdn concjump

 

Rocket Jump (Automatic)  ·  soldier  ·  09-17-1999  · p3y0t3 of Clan Erinyes

If you'd rather have the whole rocket jumping process automated for you, try this one:

bind x rj
alias rj "cl_pitchspeed 9999; +lookdown; wait; wait; +jump; +attack; wait; wait; - attack; -jump; cl_pitchspeed 150; -lookdown;
force_centerview"  // that was all one line from the alias

 

Grenade Primer With Countdown  ·  all  ·  09-17-1999  · Mickey[iD3]

Note: the author sent this script with concussion-grenade jumps in mind (for Scouts and Medics), but it will work for any type of grenade jump.  Grenade jumps are very powerful way for players to move around maps quickly without the help of a teammate sniper.

Here's a script that might make timing the jumps a little easier:

in AUTOEXEC.CFG:
alias +bomb1 "primeone; exec timer.cfg"
alias -bomb1 & quot;throwgren"

alias +bomb2 "primetwo; exec timer.cfg" ;
alias -bomb2 "throwgren"
bind <some key> "+bomb1" < br> bind <some other key> "+bomb2"

in TIMER.CFG (a new config file with only the following line in it):
< font face="Courier">speak "three _comma _comma _comma two _comma _comma _comma one _comma _comma _comma zero"

Explanation :

To perform a concussion jump (or any other grenade jump, for that matter), it's easier to use a timer.  In the script above, the speak command provides a timer for any type of grenade, for any class, so you always know when the grenade you've just thrown will explode.  This timer is an audible countdown from three to zero, with detonation occuring at zero.

Some scripts use a recorded sound file (a .wav file)  and the "play" command to create the countdown timer, but the problem with this method is that the coundown sound fades away if you are running, which is not good.

This timer uses the "speak" command.  This command doesn't work well at all when inserted in aliases of binds.  So the solution was to have a separate config (call it "timer.cfg") where the only line would be <speak "three... zero" ;>, and whenever you need the timer you can just exec the config.

 

Quick-Knife  ·  spy  ·  09-17-1999  · Pariah

This script is useful for the Spy who always wants to carry his Shotgun or perhaps Tranq around but still be ready with the knife when he sees an opportunity to knife someone in the back :)

It will just quickly change to the knife and attack when "X" (you can bind this to a different key) is pressed and held. Then it goes back to your last weapon after letting go of "X." Please note, change "E" to any button you choose, and of course, attacking with this or any weapon will cause you to lose your disguise . . . be cautious ! (Note: this also can be used for the Medic and Engineer as those also have a use for their slot 1 weapons) Here it is:

alias +swipe "slot1;wait;+attack"
alias -swipe "wait;-attack;wait;lastinv"
bind "x" +swipe

Lag-Tweaking with Voice Feedback  ·  all  ·  09-17-1999  · Lamb

HOME toggles the netgraph, up/down arrows tweak your rate and left/ right arrows change the pushlatency. The two commands at the bottom (rate12 and push9, below) should be set to what you prefer as defaults.

bind home net_look
alias net_on "r_netgraph 1;alias net_look net_off"
alias net_off " r_netgraph 0;alias net_look net_on"
net_off

bind uparrow rate_up
bind downarrow rate_down
bind leftarrow push_down
bind rightarrow push_up

alias rate1 "rate 2000.037;alias rate_up rate2;alias rate_down rate1;speak two"
alias rate2 "rate 2500.037;alias rate_up rate3;alias rate_down rate1;speak two,five"
alias rate3 "rate 3000.037;alias rate_up rate4;alias rate_down rate2;speak three"
alias rate4 "rate 3500.037;alias rate_up rate5;alias rate_down rate3;speak three,five"
alias rate5 "rate 4000.037;alias rate_up rate6;alias rate_down rate4;speak four"
alias rate6 "rate 4500.037;alias rate_up rate7;alias rate_down rate5;speak four,five"
alias rate7 "rate 5000.037;alias rate_up rate8;alias rate_down rate6;speak five"
alias rate8 "rate 5500.037;alias rate_up rate9;alias rate_down rate7;speak five,five"
alias rate9 "rate 6000.037;alias rate_up rate10;alias rate_down rate8;speak six"
alias rate10 " rate 6500.037;alias rate_up rate10a;alias rate_down rate9;speak six,five"
alias rate10a "rate 7000.037;alias rate_up rate11;alias rate_down rate10;speak seven"
alias rate11 "rate 7500.037;alias rate_up rate12;alias rate_down rate10;speak seven,five"
alias rate12 "rate 8000.037;alias rate_up rate13;alias rate_down rate11;speak eight"
alias rate13 "rate 8500.037;alias rate_up rate14;alias rate_down rate12;speak eight,five "
alias rate14 "rate 9000.037;alias rate_up rate15;alias rate_down rate13;speak nine "
alias rate15 "rate 9500.037;alias rate_up rate16;alias rate_down rate14;speak nine, five"
alias rate16 "rate 9999;alias rate_up rate16;alias rate_down rate15;speak ten" < br>
alias push1 "pushlatency -300.037;alias push_up push2; alias push_down push1;speak three,hundred"
alias push2 "pushlatency -250.037;alias push_up push3; alias push_down push1;speak two,fifty"
alias push3 "pushlatency -200.037;alias push_up push4; alias push_down push2;speak two,hundred"
alias push4 "pushlatency -180.037;alias push_up push5; alias push_down push3;speak one,eighty"
alias push5 "pushlatency -160.037;alias push_up push6; alias push_down push4;speak one,sixty"
alias push6 "pushlatency -140. 037;alias push_up push7; alias push_down push5;speak one,fourty"
alias push7 " pushlatency -120.037;alias push_up push8; alias push_down push6;speak one,twenty"
alias push8 "pushlatency -100.037;alias push_up push9; alias push_down push7;speak one, hundred"
alias push9 "pushlatency -80.037;alias push_up push10; alias push_down push8; speak eighty"
alias push10 "pushlatency -60.037;alias push_up push11; alias push_down push9;speak sixty"
alias push11 "pushlatency -40.037;alias push_up push11; alias push_down push10;speak fourty"

rate12
push9

 

Demoman Pipe-Bomb Attack Revision  ·  demo  ·  09-17-1999  · MGD_EnemyWithin)

This is similar to p3y0t3's Pipe-Bomb Attack with one BIG difference: The x key will drop pipe bombs for as long as u hold it down and then return to your original weapon when released (for quick switch between pipebombs and grenade launcher). The pipe bombs will not detonate until you press the mouse3 button (or whatever you change that to). This script provides a quick way to drop some pipebombs in a defensive back area and immediately go back on defense in the front with grenade launcher at the ready. If someone gets past you, or if you let them past (hehe), simply press mouse3 the defesive trap instantly goes bang.

alias +pipebomb " tf_weapon_pl; +attack"
alias -pipebomb "-attack; lastinv"
alias detpipebomb " tf_weapon_pl; wait; +attack2; wait; -attack2; lastinv"
bind x "+pipebomb"
bind MOUSE3 "detpipebomb"

 

Spy Slow-Down  ·  spy  ·  09-17-1999  · Pariah

Another useful script, specifically to help pull off a HWGuy or Soldier disguise, is the slowdown script. This mimics the movement speed of the two slowest classes.

Note: Change the binds to X and Z to any keys you prefer. Make sure the key you bind in the FIRST line of alias tf_sl1 is the same key bound to "bind X "tf_sl1"

Too bad you can't move faster and impersonate a Scout :) In my opinion, the script works best in reflecting an HWGuy, but it can make for a laggy or walking Soldier (or you cold make separate slowdowns for each, with different speeds). Also, you can change the numbers marked with a * to any # to better suit your taste for slowness... just make sure that # is higher than 150! (the spy's natural movement rate).

alias tf_sl1 "bind X tf_sl0;cl_forwardspeed 150;cl_backspeed 150;cl_sidespeed 150;echo Slowdown On"
alias tf_sl0 "bind Z tf_sl1;cl_forwardspeed 500*;cl_backspeed 500*;cl_sidespeed 500;echo Slowdown Off"
bind X "tf_sl1"

< em>

 

Auto-Upgrade  ·  engineer  ·  09-17-1999  · p3y0t3 [Clan Erinyes]

Some people are annoyed by the multiple menu selections for the Engineer class, or the need to switch to the wrench weapon to upgrade, repair, or refill sentries.  Here's a script that will make your engineer try to build, try to upgrade, and try to add ammo at the press of a key.  Just replace 'x' with whatever key name you prefer and add these six lines to your engineer.cfg file:

bind x tryall
alias tryall "trymake; wait; tryup; wait; tryfix; wait; tryam; wait"< br> alias trymake "special; menuselect 2"
alias tryup "slot1; wait; wait; wait; wait; +attack; wait; -attack; wait; menuselect 2"
alias tryfix " slot1; wait; wait; wait; wait; +attack; wait; -attack; wait; menuselect 3"
alias tryam "slot1; wait; wait; wait; wait; +attack; wait; -attack; wait; menuselect 1" ;

You can use this basic structure to make aliases that perform any combination of menu selections, weapon switches, etc.  Just remember to use "menuselect X" to make a menu selection (replace X with 1 thru 9 ) and slotX to change weapons (replace X with 1 thru 9).  I like to keep my engineer armed with a shotgun when he's not building or maintaining, so I add slot3 (which selects the shotgun if no menu is displayed) to then end of the trymake alias, as in (alias tryall "trymake; wait; tryup; wait; tryfix; wait; tryam; wait; slot3")

If you run out of space for "wait& quot; commands (there is a limit to the line length -- 255 chars maybe?), try making bigger waits from smaller ones, as in:

alias w5 "wait; wait; wait; wait; wait"
alias w10 "w5; w5"
alias w50 "w10; w10; w10; w10; w10"

Then use 'wait' for a single tic, ''w5' for 5 tics, 'w10' for long waits, and 'w50' for a really lag-proof but slow script.

A special bonus quality of the engineer's EMP Grenades is thier ability to detonate any explosive ammo in their blast radius.  The ambitious engineer can take this to his advantage by unloading some explosive ammo in the area before setting off an EMP grenade.  Or, just use this script -- pressing 'x' will prime an EMP grenade and begin the countdown to it's explosion, releasing 'x' will drop your 'unneeded' ammo and throw the grenade.  Hold the key too long and you go too:

bind x + emp_bomb
alias +emp_bomb "primetwo; wait; wait; primetwo"
alias - emp_bomb "discard; wait; throwgren; wait; wait; throwgren"

< font face="Arial">

 

Lag-Proofing Your Scripts  ·  all  ·  09-17-1999  · Sascha

 

One of the tougher aspects of writing good scripts that work well for everyone across a wide variety of network speeds and conditions is getting the timing correct.  Most (but not all) commands are not executed locally -- they are sent to the server for 'official' execution and are not complete until your machine gets a confirmation back from the server.  This means that a sequence of commands (i.e. "cl_pitchspeed 9999; +lookdown")  may work great normally, but fail miserably if your ping or lag is worse than normal.  It seems that when new commands are sent before the server confirms the previous one some commands may be ignored , or executed out-of-order.

In most cases, you'll need to insert at least one "wait" statement between any two commands to be executed one after the other (i.e. "cl_pitchspeed 9999; wait; wait; +lookdown;") to make sure the previous command completes before the next is sent.  "Wait" just does nothing for one game tic (the smallest unit of time the server knows about).  If you have too many wait's, your script will take longer than necessary to finish , and your script files may get too big (7.5k or so is about the limit before the game will choke on your file on execution) -- too few waits and the script won't work well or at all except under ideal network conditions (low ping, no packet loss).  So unless you tweak the number of wait statements throughout your scripts on-the-fly (a hassle), you may have to deal with scripts that occasionally don't work -- unless you use the following technique that will let you change the speed the of your scripts in-game ! 

Replace wait statements in all of your other scripts with an alias, say w1, and multiple occurances of wait (places you wanted a little more delay than one wait) with another alias, say w2, and so on (the example below only goes up to w12, but the idea can be expanded easily if you need to).  

Place something like the following in your autoexec.cfg .  Change 'x' to any key or button you like, then use that key to cycle through normal, slow, and fast script execution depending on your connection speed and quality.& nbsp; Just in case this is hard to follow, here's exactly what happens:

< font face="Arial">When you're in "normal" speed mode, anywhere you use the alias w1 (instead of one or more wait's) will result in one wait, w3 produces 3 waits, etc.  In "slow" speed mode, however, w1 results in TWO waits (because w1 = b2, and b2 = "wait; wait") and w3 results in FOUR waits, etc.  "Fast" speed mode leaves w1 as one wait, but reduces w2 to two waits.  So, you have five different relative wait times (w1, w3, w6, w9, w12) to use in your scripts, and you can vary how much delay these wait times provide by pressing a key in-game

Just in case you're still confused, the following table shows exactly how many wait's you get for each of the aliases (w1 - w12) under each of the three network conditions (which you can select with the 'x' key).

< table border="1" width="42%">

 

 

network speed

alias

fast

normal

< font face="Arial">slow

w1

1 wait

1 wait

2 waits

w3

2 waits

3 waits

4 waits

w6

4 waits

6 waits

8 waits

< em>w9

8 waits

< font face="Arial">9 waits

12 waits< tr>

w12

8 waits

12 waits

16 waits


// Timing procedures
alias b1 "wait"
alias b2 "wait; wait"
alias b3 "wait; wait; wait"
alias b4 "wait; wait; wait; wait"

alias w1 "b1"
alias w3 "b3"
alias w6 "w3; w3"
alias w9 "w3; w6"
alias w12 "w6; w6"

alias t_fast " echo **** Script speed -->FAST<--"
alias t_norm "echo **** Script speed -->NORMAL<--"
alias t_slow "echo **** Script speed -->SLOW< ;--"

alias switch1 "bind / switch2; developer 1; t_fast; developer 0; alias w3 b2; alias
w1 b1"
alias switch2 "bind / switch3; developer 1; t_norm; developer 0; alias w3 b3; alias
w1 b1"
alias switch3 "bind / switch1; developer 1; t_slow; developer 0; alias w3 b4; alias
w1 b2"

switch2 // starts off with "normal" speeds
bind x switch3

 

HWGuy Scripts  ·  hwguy  ·  09-17-1999  · none

None Yet.

 

Realistic Feign  ·  spy  ·  09-17-1999  · AngryMob

A more convincing fake death (complete with a dropped backpack):

bind x die
alias die " feign; discard"  // use sfeign if you'd prefer a silent demise

 

Medic Medikit Quick-Switch  ·  medic  ·  09-17-1999  · MGD_EnemyWithin

Very simple, but effective: press and hold x to bring up the medikit and start healing (or infecting...hehe) and then release x to stop and get your last weapon back.

< p> alias +heal "tf_weapon_medikit; +attack"
alias -heal "- attack; lastinv"
bind x "+heal"

 

Demoman Pipe-Bomb Jump  ·  demo  ·  09-17-1999  · Handiman

Drop a pipe, stand on it, then hit whatever key you bind to 'pj' ('x' in the example script below) to perform a nice pipe-jump (you may need to add more wait statements between +jump and detpipe):

alias pj "+jump ; wait; detpipe; -jump
bind x pj

 

Pyro Flamethrower Quick-Switch  ·  pyro  ·  09-17-1999  · MGD_EnemyWithin

Very simple, but effective: press and hold x to bring up the flamethrower and start laying down fire, and then release x to stop and get your last weapon back.

alias +flameon "tf_weapon_flamethrower; +attack"
alias - flameon "-attack; lastinv"
bind x +flameon

Even More Realistic Feign  ·  spy  ·  09-17-1999  · DMDN65

A more even more convincing fake death ( complete with a dropped backpack, and a delayed switch back to the spy skin):

< p>bind x fakedie
alias fakedie "discard; wait; feign ; wait; force_centerview; wait; special; wait; menuselect 4"

< em>

 

Scout Scripts  ·  scout  ·  09-17-1999  · none

None Yet

 

Demoman Pipe-Bomb Attack  ·  demo  ·  09-17-1999  · p3y0t3 [Clan Erinyes]

The demo man can be quite an offensive player, especially with this script.  As long as you hold down 'x' you'll continue to unleash pipebombs -- once you release 'x' they'll all go boom:

bind x + pb_attack
alias +pb_attack "use tf_weapon_pl; wait; wait; +attack"
alias -pb_attack "-attack; wait; wait; ; special; wait; special; use tf_weapon_gl; special "

 

Sniper Charge Toggle  ·  sniper  ·  09-17-1999  · LilSerf

Tired of holding down the fire button to charge up your sniper rifle?& nbsp; This alias creates a special sniper rifle fire button that works as follows:  press (and release) once to start charging (laser sight appears and you are s-l-o-w moving), press (and release) again to fire:

alias chargeshot "+attack;wait;bind XX fireshot"
alias fireshot "- attack;wait;bind XX chargeshot"
bind x chargeshot

 

Insta-Switch Spy  ·  spy  ·  09-17-1999  · Myth

echo SPY CFG LOADED
// Make sure that you do not have the following keys bound to other
// functions. Otherwise, problems WILL occur
bind q spyscout
bind w spysniper
bind e spysoldier
bind r spydemoman
bind a spymedic
bind s spyhwguy
bind d spypyro
bind f spyengineer
bind o changetoblue
bind p changetored

alias spyscout "+attack2; wait; wait; menuselect 1; wait4; menuselect 1; -attack2;
wait4;-attack2"
alias spysniper "+attack2; wait; wait; menuselect 1; wait4; menuselect 2; -attack2;
wait4;- attack2"
alias spysoldier "+attack2; wait; wait; menuselect 1; wait4; menuselect 3; -attack2;
wait4;-attack2"
alias spydemoman "+attack2; wait ; wait; menuselect 1; wait4; menuselect 4; -attack2;
wait4;-attack2"
alias spymedic "+attack2; wait; wait; menuselect 1; wait4; menuselect 5; -attack2;
wait4;-attack2"
alias spyhwguy "+attack2; wait; wait; menuselect 1; wait4; menuselect 6; -attack2;
wait4;-attack2"
alias spypyro "+attack2; wait; wait; menuselect 1; wait4; menuselect 7; -attack2;
wait4;-attack2"
alias spyengineer "+attack2; wait; wait; menuselect 1; wait4; menuselect 9; -attack2; wait4 "

alias changetoblue "+attack2; wait4; menuselect 2; wait4; menuselect 1;
wait4;-attack2"
alias changetored "+attack2; wait4; menuselect 2; wait4; menuselect 2;
wait4;-attack2"

alias wait4 "wait;wait;wait; wait"

 

Sniper Charge-Toggle Toggle  ·  sniper  ·  09-17-1999  · LilSerf

If you like, you can make a key toggle between 'sniper mode' (described above) and ' regular attack' with this script (change 'y' to the key you want to toggle sniper mode and change 'x' to your normal fire key or button):

alias snipeon "-attack;wait;bind x chargeshot;echo SNIPER MODE ON; wait; bind y snipeoff"
alias snipeoff "-attack;wait;bind x +attack; echo SNIPER MODE OFF ; wait; bind y snipeon"
bind y snipeon

 

Spy Early-Warning System  ·  all  ·  09-17-1999  · Lamb

This script is great when you spot a spy. Just press the X key, then the class number the spy is disguised as to warn your teammates.

alias unspy_class "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5; unspy_class2"
alias unspy_class2 "bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9"
alias spy_scout "say_team Incoming SPY disguised as SCOUT; unspy_class"
alias spy_sniper "say_team Incoming SPY disguised as SNIPER; unspy_class"
alias spy_soldier "say_team Incoming SPY disguised as SOLDIER; unspy_class"
alias spy_demoman "say_team Incoming SPY disguised as DEMOMAN; unspy_class"
alias spy_medic "say_team Incoming SPY disguised as MEDIC; unspy_class"
alias spy_hw "say_team Incoming SPY disguised as HWGUY; unspy_class"
alias spy_pyro "say_team Incoming SPY disguised as PYRO; unspy_class"
alias spy_spy "say_team Incoming SPY undisguised; unspy_class"
alias spy_eng "say_team Incoming SPY disguised as ENGINEER; unspy_class"
alias spy_class "bind 1 spy_scout; bind 2 spy_sniper; bind 3 spy_soldier;bind 4 spy_demoman; bind 5 spy_medic; spy_class2"
alias spy_class2 "bind 6 spy_hw; bind 7 spy_pyro; bind 8 spy_spy; bind 9 spy_eng"
bind X spy_class

 

Sniper Crouch Toggle  ·  sniper  ·  09-17-1999  · /contact.html

Ever get tired of holding down they crouch key to lay low while waiting for your target?& nbsp; Try this crouch-toggle script -- pressing 'x' once will keep you crouched until you press it again.

alias +spec4 "doduck"
alias unduck "-duck; alias +spec4 doduck"
alias doduck "+duck; alias +spec4 unduck"
bind x + spec4

 

Sniper Slow Zoom  ·  sniper  ·  09-17-1999  · Heropsychodreamer

If you prefer a slower zoom mode (looks cool, but wastes time, I think ), try this:

// Sexy sniper mode
alias sview1 "fov 15; wait"
alias sview2 "fov 30; wait"
alias sview3 "fov 45; wait"
alias sview4 "fov 70; wait"
alias sview5 " ;fov 90; wait"
alias sview6 "fov 110; wait"
alias zoomin " sview5; sview4; sview3; sview2; sview1"
alias zoomout "sview2; sview3; sview4; sview5; sview6"
alias +snipe "zoomin; crosshair 2; sensitivity 5& quot;
alias -snipe "sensitivity 15; crosshair 2; zoomout"
bind a "+ snipe"

Note that the key must be held down to remain zoomed in.   This acts as a failsafe against  accidentally hitting the zoom key while engaged in battle and inadvertantly getting confused and.. well.. dying :)  Also, it is easier to zoom out this way in a hurry if you're sniping and are attacked by a someone who's snuck up on you.  Works brilliantly combined with a variation of the rifle charge script on this page.