General scripts

From TF2 Wiki

Jump to: navigation, search
Community script navigation
General scripts
Weapon scripts
General class scripts
Collection scripts
Class scripts
Scout scripts
Soldier scripts
Pyro scripts
Engineer scripts
Heavy scripts
Demoman scripts
Medic scripts
Sniper scripts
Spy scripts


Contents

All-Inclusive General Script

This script includes a highjump, auto-reload, and shift+fire continues firing.
When you hold down shift and fire, it will continue firing. When you hold down shift and click mouse2, it will continue to attack2. This is especially good for the heavy.
alias "+jumpehs" "+jump; +duck"
alias "-jumpehs" "-duck; -jump"
bind "space" "+jumpehs"

alias +primaryattack "+attack"
alias -primaryattack "-attack; wait 500; +reload; wait 500; -reload"
alias +primaryattack2 "+attack2"
alias -primaryattack2 "-attack2"
alias -saved "-attack; wait 500; +reload; wait 500; -reload"
alias +primaryattackmodifier "alias -primaryattack +attack; alias -primaryattack2 +attack2"
alias -primaryattackmodifier "alias -primaryattack -saved; alias -primaryattack2 -attack2"
bind "MOUSE1" "+primaryattack"
bind "mouse2" "+primaryattack2"
bind "SHIFT" "+primaryattackmodifier"

bind "1" "slot1; +reload; wait 500; -reload"
bind "2" "slot2; +reload; wait 500; -reload"
bind "MWHEELUP" "invprev; +reload; wait 500; -reload"
bind "MWHEELDOWN" "invnext; +reload; wait 500; -reload"

Highjump

A small script that makes all jumps crouchjumps for max height.
Script by Icehawk and Remzy see forums.steampowered.com
//Highjump
alias "+jumpeh" "+jump; +duck"
alias "-jumpeh" "-duck; -jump"
bind "space" "+jumpeh"

Bind-Agnostic Highjump (aka JumpDuck) with Toggle

Bind-agnostic Jump+Duck script with the ability to toggle it on or off.
Note: Regardless of whether the script is toggled on or off, the bound jump button will no longer switch camera views in spectator mode. I felt that this was an acceptable tradeoff for making it bind-agnostic.
Posted by Herron
// --------
// JumpDuck -- One key does regular jump or a jump+duck, depending on whether it's toggled on or off
// --------
// Note:  Off by default (and every time you reload the config)
// --------

alias "+jumpduck" "+jump"
alias "-jumpduck" "-jump"
alias "+do_jumpduck" "+jump; +duck"
alias "-do_jumpduck" "-duck; -jump"
alias "toggle_jumpduck" "jumpduck_on"
alias "jumpduck_on" "alias +jumpduck +do_jumpduck; alias -jumpduck -do_jumpduck; alias toggle_jumpduck jumpduck_off"
alias "jumpduck_off" "alias +jumpduck +jump; alias -jumpduck -jump; alias toggle_jumpduck jumpduck_on"

bind "F4" "toggle_jumpduck"		// Key you want to use to toggle JumpDuck on/off
bind "SHIFT" "+jumpduck"		// Key you would normally bind to jump

Toggle Scoreboard

A small script to be able to toggle the scoreboard.
Script by greenbean see forums.steampowered.com
alias "togglescoreon" "+showscores; bind "tab" "togglescoreoff" "
alias "togglescoreoff" "-showscores; bind "tab" "togglescoreon" "
bind "tab" "togglescoreon"

Mute Game While Speaking

For players that use speakers instead of headphones, this script will mute the game volume while you are speaking to keep game sounds from coming through with the voice chat
Posted by AnonymousHero (copied from Nos by Nos)
alias "+mute" "volume 0; +voicerecord"
alias "-mute" "-voicerecord; volume 1"
bind "MICROPHONE-BUTTON" +mute

Quick Network Settings

Quickly cycle through network settings to find a settings with the least choke & packetloss. I put this together really quickly and I'm sure it can be improved upon :P
Posted by A1DS

//NETWORK SETTINGS ADJUSTMENT SCRIPT BY A1DS
//interp ratio of 1.0


alias rateadjust "ratear"
alias ratear "rate 30000; cl_cmdrate 100; cl_updaterate 100; cl_interp_ratio 1; developer 1; echo Network Settings Adjusted --> rate 30000 cl_cmdrate 100 cl_updaterate 100 cl_interp_ratio 1; wait 500; developer 0; alias rateadjust ratear1"
alias ratear1 "rate 30000; cl_cmdrate 66; cl_updaterate 66; cl_interp_ratio 1; developer 1; echo Network Settings Adjusted --> rate 30000 cl_cmdrate 66 cl_updaterate 66 cl_interp_ratio 1; wait 500; developer 0; alias rateadjust ratear2"
alias ratear2 "rate 20000; cl_cmdrate 66; cl_updaterate 66; cl_interp_ratio 1; developer 1; echo Network Settings Adjusted --> rate 20000 cl_cmdrate 66 cl_updaterate 66 cl_interp_ratio 1; wait 500; developer 0; alias rateadjust ratear3"
alias ratear3 "rate 20000; cl_cmdrate 50; cl_updaterate 50; cl_interp_ratio 1; developer 1; echo Network Settings Adjusted --> rate 20000 cl_cmdrate 50 cl_updaterate 50 cl_interp_ratio 1; wait 500; developer 0; alias rateadjust ratear4"
alias ratear4 "rate 15000; cl_cmdrate 35; cl_updaterate 35; cl_interp_ratio 1; developer 1; echo Network Settings Adjusted --> rate 15000 cl_cmdrate 35 cl_updaterate 35 cl_interp_ratio 1; wait 500; developer 0; alias rateadjust ratear"

//interp ratio of 1.5

alias rateadjust15 "ratear_1.5"
alias ratear_1.5 "rate 30000; cl_cmdrate 100; cl_updaterate 100; cl_interp_ratio 1.5; developer 1; echo Network Settings Adjusted --> rate 30000 cl_cmdrate 100 cl_updaterate 100 cl_interp_ratio 1.5; wait 500; developer 0; alias rateadjust15 ratear_1.51"
alias ratear_1.51 "rate 30000; cl_cmdrate 66; cl_updaterate 66; cl_interp_ratio 1.5; developer 1; echo Network Settings Adjusted --> rate 30000 cl_cmdrate 66 cl_updaterate 66 cl_interp_ratio 1.5; wait 500; developer 0; alias rateadjust15 ratear_1.52"
alias ratear_1.52 "rate 20000; cl_cmdrate 66; cl_updaterate 66; cl_interp_ratio 1.5; developer 1; echo Network Settings Adjusted --> rate 20000 cl_cmdrate 66 cl_updaterate 66 cl_interp_ratio 1.5; wait 500; developer 0; alias rateadjust15 ratear_1.53"
alias ratear_1.53 "rate 20000; cl_cmdrate 50; cl_updaterate 50; cl_interp_ratio 1.5; developer 1; echo Network Settings Adjusted --> rate 20000 cl_cmdrate 50 cl_updaterate 50 cl_interp_ratio 1.5; wait 500; developer 0; alias rateadjust15 ratear_1.54"
alias ratear_1.54 "rate 15000; cl_cmdrate 35; cl_updaterate 35; cl_interp_ratio 1.5; developer 1; echo Network Settings Adjusted --> rate 15000 cl_cmdrate 35 cl_updaterate 35 cl_interp_ratio 1.5; wait 500; developer 0; alias rateadjust15 ratear_1.5"

//interp ratio 2.0
alias rateadjust20 "ratear_2.5"
alias ratear_2.5 "rate 30000; cl_cmdrate 100; cl_updaterate 100; cl_interp_ratio 2; developer 1; echo Network Settings Adjusted --> rate 30000 cl_cmdrate 100 cl_updaterate 100 cl_interp_ratio 2; wait 500; developer 0; alias rateadjust20 ratear_2.51"
alias ratear_2.51 "rate 30000; cl_cmdrate 66; cl_updaterate 66; cl_interp_ratio 2; developer 1; echo Network Settings Adjusted --> rate 30000 cl_cmdrate 66 cl_updaterate 66 cl_interp_ratio 2; wait 500; developer 0; alias rateadjust20 ratear_2.52"
alias ratear_2.52 "rate 20000; cl_cmdrate 66; cl_updaterate 66; cl_interp_ratio 2; developer 1; echo Network Settings Adjusted --> rate 20000 cl_cmdrate 66 cl_updaterate 66 cl_interp_ratio 2; wait 500; developer 0; alias rateadjust20 ratear_2.53"
alias ratear_2.53 "rate 20000; cl_cmdrate 50; cl_updaterate 50; cl_interp_ratio 2; developer 1; echo Network Settings Adjusted --> rate 20000 cl_cmdrate 50 cl_updaterate 50 cl_interp_ratio 2; wait 500; developer 0; alias rateadjust20 ratear_2.54"
alias ratear_2.54 "rate 15000; cl_cmdrate 35; cl_updaterate 35; cl_interp_ratio 2; developer 1; echo Network Settings Adjusted --> rate 15000 cl_cmdrate 35 cl_updaterate 35 cl_interp_ratio 2; wait 500; developer 0; alias rateadjust20 ratear_2.5"

//QUICK NETGRAPH

alias quickng "ngoff"
alias ngon "net_graph 3; wait; alias quickng ngoff"
alias ngoff "net_graph 0; wait; alias quickng ngon"

//binds

bind "p" "rateadjust"
bind "[" "rateadjust15"
bind "]" "rateadjust20"
bind "\" "quickng"

Advanced Network Tweaker

Same as above, but allows you to adjust each cvar.
Posted by A1DS
//QUICK DEV
alias dev1 "developer 1" //Turn on-screen feedback ON - Use "echo" command to show text on screen.
alias dev0 "developer 0" //Turn on-screen feedback OFF

//RATE ADJUSTMENTS
rate "20000"

//rate increase
alias "rate_up" "rate_up_25000"
alias "rate_up_25000" "rate 25000; alias rate_up rate_up_30000; alias rate_down rate_down_20000; dev0; clear; dev1; echo -----> Rate INCREASED to 25000; wait 900; dev0"
alias "rate_up_30000" "rate 30000; alias rate_up rate_up_35000; alias rate_down rate_down_25000; dev0; clear; dev1; echo -----> Rate INCREASED to 30000; wait 900; dev0"
alias "rate_up_35000" "rate 35000; alias rate_up rate_up_40000; alias rate_down rate_down_30000; dev0; clear; dev1; echo -----> Rate INCREASED to 35000; wait 900; dev0"
alias "rate_up_40000" "rate 40000; alias rate_up rate_up_40000; alias rate_down rate_down_35000; dev0; clear; dev1; echo -----> Rate INCREASED to 40000; wait 900; dev0"

//rate decrease
alias "rate_down" "rate_down_20000"
alias "rate_down_35000" "rate 35000; alias rate_down rate_down_30000; alias rate_up rate_up_40000; dev0; clear; dev1; echo -----> Rate DECREASED to 35000; wait 900; dev0"
alias "rate_down_30000" "rate 30000; alias rate_down rate_down_25000; alias rate_up rate_up_35000; dev0; clear; dev1; echo -----> Rate DECREASED to 30000; wait 900; dev0"
alias "rate_down_25000" "rate 25000; alias rate_down rate_down_20000; alias rate_up rate_up_30000; dev0; clear; dev1; echo -----> Rate DECREASED to 25000; wait 900; dev0"
alias "rate_down_20000" "rate 20000; alias rate_down rate_down_20000; alias rate_up rate_up_25000; dev0; clear; dev1; echo -----> Rate DECREASED to 20000; wait 900; dev0"

//INTERP RATIO
cl_interp "0.01"
cl_interp_ratio "1"
//ratio increase
alias "ratio_inc" "ratio_inc_1.5"
alias "ratio_inc_1.5" "cl_interp_ratio 1.5; alias ratio_inc ratio_inc_2.0; alias ratio_dec ratio_dec_1.0; dev0; clear; dev1; echo -----> Interp. Ratio INCREASED to 1.5; wait 900; dev0"
alias "ratio_inc_2.0" "cl_interp_ratio 2.0; alias ratio_inc ratio_inc_2.0; alias ratio_dec ratio_dec_1.5; dev0; clear; dev1; echo -----> Interp. Ratio INCREASED to 2.0; wait 900; dev0"
//ratio decrease
alias "ratio_dec" "ratio_dec_1.0"
alias "ratio_dec_1.5" "cl_interp_ratio 1.5; alias ratio_dec ratio_dec_1.0; alias ratio_inc ratio_inc_2.0; dev0; clear; dev1; echo -----> Interp. Ratio DECREASED to 1.5; wait 900; dev0"
alias "ratio_dec_1.0" "cl_interp_ratio 1.0; alias ratio_dec ratio_dec_1.0; alias ratio_inc ratio_inc_1.5; dev0; clear; dev1; echo -----> Interp. Ratio DECREASED to 1.0; wait 900; dev0"

//CMD RATE AND UPDATE RATE
cl_cmdrate "66"
cl_updaterate "66"
//cmdrate, updaterate increase
alias "c_up" "c_up_66"
alias "c_up_100" "cl_cmdrate 100; cl_updaterate 100; alias c_up c_up_100; alias c_down c_down_66; dev0; clear; dev1; echo -----> UPDATE RATE & CMD RATE INCREASED to 100; wait 900; dev0"
alias "c_up_66"  "cl_cmdrate 66; cl_updaterate 66; alias c_up c_up_100; alias c_down c_down_50; dev0; clear; dev1; echo -----> UPDATE RATE & CMD RATE INCREASED to 66; wait 900; dev0"
alias "c_up_50"  "cl_cmdrate 50; cl_updaterate 50; alias c_up c_up_66; alias c_down c_down_33; dev0; clear; dev1; echo -----> UPDATE RATE & CMD RATE INCREASED to 50; wait 900; dev0"
//cmdrate, updaterate decrease
alias "c_down" "c_down_33"
alias "c_down_66"  "cl_cmdrate 66; cl_updaterate 66; alias c_down c_down_50; alias c_up c_up_100; dev0; clear; dev1; echo -----> UPDATE RATE & CMD RATE DECREASED to 66; wait 900; dev0"
alias "c_down_50"  "cl_cmdrate 50; cl_updaterate 50; alias c_down c_down_33; alias c_up c_up_66; dev0; clear; dev1; echo -----> UPDATE RATE & CMD RATE DECREASED to 50; wait 900; dev0"
alias "c_down_33"  "cl_cmdrate 33; cl_updaterate 33; alias c_down c_down_33; alias c_up c_up_50; dev0; clear; dev1; echo -----> UPDATE RATE & CMD RATE DECREASED to 33; wait 900; dev0"

//CL_INTERP BEST SETTINGS MENU
alias interp_MENU "bd_main; clear; dev1; echo [MAIN MENU] Select Current cl_interp_ratio ----> 2.0 = [9] 1.5 = [8] 1.0 = [7.0]; wait 900; dev0"
alias menu_2.0 "cm_binds_2.0; clear; dev1; echo Select Current cl_cmdrate ----> [9] = 100 [8] = 66 [7]= 50 [6] = 33; wait 900; dev0"
alias menu_1.5 "cm_binds_1.5; clear; dev1; echo Select Current cl_cmdrate ----> [9] = 100 [8] = 66 [7] = 50 [6] = 33; wait 900; dev0"
alias menu_1.0 "cm_binds_1.0; clear; dev1; echo Select Current cl_cmdrate ----> [9] = 100 [8] = 66 [7] = 50 [6] = 33; wait 900; dev0"
alias 2.0_33 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO --->  0.06; cl_interp 0.06; wait 400; dev0"
alias 2.0_50 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.04; cl_interp 0.04; wait 400; dev0"
alias 2.0_66 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.03; cl_interp 0.03; wait 400; dev0 "
alias 2.0_100 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.02; cl_interp 0.02; wait 400; dev0"
alias 1.5_33 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.045; cl_interp 0.045; wait 400; dev0"
alias 1.5_50 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.03; cl_interp 0.03; wait 400; dev0"
alias 1.5_66 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.023; cl_interp 0.023; wait 400; dev0"
alias 1.5_100 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.015; cl_interp 0.015; wait 400; dev0"
alias 1.0_33 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.03; cl_interp 0.03; wait 400; dev0"
alias 1.0_50 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.02; cl_interp 0.02; wait 400; dev0"
alias 1.0_66 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.015; cl_interp 0.015; wait 400; dev0"
alias 1.0_100 "menu_reset; clear; dev1; echo ******** CL_INTERP SET TO ---> 0.01; cl_interp 0.01; wait 400; dev0"
alias menu_reset "dev0; alias main_MENU interp_MENU; alias main_MENU2; alias main_MENU3; alias main_MENU4"
menu_reset
alias bd_main "alias main_MENU menu_2.0; alias main_MENU2 menu_1.5; alias main_MENU3 menu_1.0"
alias cm_binds_2.0 "alias main_MENU 2.0_100; alias main_MENU2 2.0_66; alias main_MENU3 2.0_50; alias main_MENU4 2.0_33"
alias cm_binds_1.5 "alias main_MENU 1.5_100; alias main_MENU2 1.5_66; alias main_MENU3 1.5_50; alias main_MENU4 1.5_33"
alias cm_binds_1.0 "alias main_MENU 1.0_100; alias main_MENU2 1.0_66; alias main_MENU3 1.0_50; alias main_MENU4 1.0_33"
alias main_MENU "interp_MENU"

//QUICK NETGRAPH
alias quickng "ngoff"
alias ngon "net_graph 3; wait; alias quickng ngoff"
alias ngoff "net_graph 0; wait; alias quickng ngon"



//
//KEY BINDS, CHANGE IF YOU WANT
//
//

//FOR CL_INTERP MENU SETTINGS - 9 IS THE DEFAULT KEY TO PULL UP THE MENU
bind 9 "main_MENU"
bind 8 "main_MENU2"
bind 7 "main_MENU3"
bind 6 "main_MENU4"

//CL_INTERP_RATIO ADJUSTMENTS 1.0 1.5 2.0
bind "o" "ratio_inc" //INCREASE
bind "p" "ratio_dec" //DECREASE

//NETWORK RATE, INCREASE OR DECREASES BY 5000
bind "[" "rate_up" //NETWORK RATE INCREASE
bind "]" "rate_down" //NETWORK RATE DECREASE

//CMDRATE AND UPDATERATE ADJUSTMENTS, VARIOUS DEFAULTT SETTINGS THAT SHOULD WORK FOR MOST USERS
bind "\" "c_up" //INCREASE
bind "/" "c_down" //DECREASE

//QUICK TOGGLE KEY FOR NETGRAPH
bind "l" "quickng"


Feedback On/Off

Use these aliases to quickly turn on-screen feedback on and off.
These are only useful in conjunction with other scripts that make use of on-screen feedback.
Posted by Greeze
alias dev1 "developer 1" //Turn on-screen feedback ON - Use "echo" command to show text on screen.
alias dev0 "developer 0" //Turn on-screen feedback OFF

Toggle Crouched State

Press duck key once to crouch. Press again to stand up.
Posted by Greeze
//Duck Toggle
alias duckToggle "duck1"
alias duck1 "+duck; alias duckToggle duck2"
alias duck2 "-duck; alias duckToggle duck1"

//Duck Toggle Key Binding:
bind "c" "duckToggle"

Voice menu scripts

Rotating Voice Menu

A small communications script which binds all three voice_menu's into one key, simply pressing that same key will take you through all three and always bring you back to the 1st voice_menu. (I cannot take any credit for this as it's an old CS script, all I've done is swap the radio menu from CS for the voice_menu of TF2.)
Posted by Dodel
//Rotating Voice Menu
alias r1 voice_menu_1 
alias r2 voice_menu_2
alias r3 voice_menu_3
alias "rcbind1" "bind 1 rs1; bind 2 rs2; bind 3 rs3; bind 4 rs4; bind 5 rs5"
alias "rcbind2" "bind 6 rs6; bind 7 rs7; bind 8 rs8; bind 9 rs9; bind 0 rs10"
alias "rcbind" "rcbind1; rcbind2"
alias "rs1" "slot1; alias radiocyc rc1; rebind"
alias "rs2" "slot2; alias radiocyc rc1; rebind"
alias "rs3" "slot3; alias radiocyc rc1; rebind"
alias "rs4" "slot4; alias radiocyc rc1; rebind"
alias "rs5" "slot5; alias radiocyc rc1; rebind"
alias "rs6" "slot6; alias radiocyc rc1; rebind"
alias "rs7" "slot7; alias radiocyc rc1; rebind"
alias "rs8" "slot8; alias radiocyc rc1; rebind"
alias "rs9" "slot9; alias radiocyc rc1; rebind"
alias "rs10" "slot10; alias radiocyc rc1; rebind"
alias "radiocyc" "rc1"
alias "rc1" "r1; alias radiocyc rc2; rcbind"
alias "rc2" "r2; alias radiocyc rc3; rcbind"
alias "rc3" "r3; alias radiocyc rc1; rcbind"
alias "rebind1" "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5"
alias "rebind2" "bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9; bind 0 slot10"
alias "rebind" "rebind1; rebind2"
bind "KEY" "radiocyc"
//End

Rotating Voice Menu with Cancel

Same as above, except on the fourth button press, instead of cycling back to the first set of voice commands, the action is cancelled.
Posted by Rainbowlemon
//Rotating Voice Menu with Cancel
alias r1 voice_menu_1 
alias r2 voice_menu_2
alias r3 voice_menu_3
alias r4 slot10
alias "rcbind1" "bind 1 rs1; bind 2 rs2; bind 3 rs3; bind 4 rs4; bind 5 rs5"
alias "rcbind2" "bind 6 rs6; bind 7 rs7; bind 8 rs8; bind 9 rs9; bind 0 rs10"
alias "rcbind" "rcbind1; rcbind2"
alias "rs1" "slot1; alias radiocyc rc1; rebind"
alias "rs2" "slot2; alias radiocyc rc1; rebind"
alias "rs3" "slot3; alias radiocyc rc1; rebind"
alias "rs4" "slot4; alias radiocyc rc1; rebind"
alias "rs5" "slot5; alias radiocyc rc1; rebind"
alias "rs6" "slot6; alias radiocyc rc1; rebind"
alias "rs7" "slot7; alias radiocyc rc1; rebind"
alias "rs8" "slot8; alias radiocyc rc1; rebind"
alias "rs9" "slot9; alias radiocyc rc1; rebind"
alias "rs10" "slot10; alias radiocyc rc1; rebind"
alias "radiocyc" "rc1"
alias "rc1" "r1; alias radiocyc rc2; rcbind"
alias "rc2" "r2; alias radiocyc rc3; rcbind"
alias "rc3" "r3; alias radiocyc rc4; rcbind"
alias "rc4" "r4; alias radiocyc rc1; rebind"
alias "rebind1" "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5"
alias "rebind2" "bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9; bind 0 slot10"
alias "rebind" "rebind1; rebind2"

//I use 'c' - replace with your keybind preference
bind "c" "radiocyc"
//End

Scrolling Voice Binds

A communication script that utilizes the mouse wheel to cycle through and execute voice binds. The user is notified of which voice bind is selected via developer echo.
The "Medic" and "Ubercharge Ready" voice binds are not handled in this script since, in my opinion, they should always be bound to accessible keys.
Posted by SuitDude
//Scrolling Voice Binds
alias "v_thanks" "alias scrollup v_goodjob; alias scrolldown v_gogogo; alias transmit thanks; developer 1; echo Thanks; wait 100; developer 0"
alias "v_gogogo" "alias scrollup v_thanks; alias scrolldown v_moveup; alias transmit gogogo; developer 1; echo Go Go Go; wait 100; developer 0"
alias "v_moveup" "alias scrollup v_gogogo; alias scrolldown v_goleft; alias transmit moveup; developer 1; echo Move Up; wait 100; developer 0"
alias "v_goleft" "alias scrollup v_moveup; alias scrolldown v_goright; alias transmit goleft; developer 1; echo Go Left; wait 100; developer 0"
alias "v_goright" "alias scrollup v_goleft; alias scrolldown v_yes; alias transmit goright; developer 1; echo Go Right; wait 100; developer 0"
alias "v_yes" "alias scrollup v_goright; alias scrolldown v_no; alias transmit yes; developer 1; echo Yes; wait 100; developer 0"
alias "v_no" "alias scrollup v_yes; alias scrolldown v_incoming; alias transmit no; developer 1; echo No; wait 100; developer 0"

alias "v_incoming" "alias scrollup v_no; alias scrolldown v_cloakedspy; alias transmit incoming; developer 1; echo Incoming; wait 100; developer 0"
alias "v_cloakedspy" "alias scrollup v_incoming; alias scrolldown v_sentryahead; alias transmit cloakedspy; developer 1; echo Spy!; wait 100; developer 0"
alias "v_sentryahead" "alias scrollup v_cloakedspy; alias scrolldown v_teleporterhere; alias transmit sentryahead; developer 1; echo Sentry Ahead!; wait 100; developer 0"
alias "v_teleporterhere" "alias scrollup v_sentryahead; alias scrolldown v_dispenserhere; alias transmit teleporterhere; developer 1; echo Teleporter Here; wait 100; developer 0"
alias "v_dispenserhere" "alias scrollup v_teleporterhere; alias scrolldown v_sentryhere; alias transmit dispenserhere; developer 1; echo Dispenser Here; wait 100; developer 0"
alias "v_sentryhere" "alias scrollup v_dispenserhere; alias scrolldown v_activateuber; alias transmit sentryhere; developer 1; echo Sentry Here; wait 100; developer 0"
alias "v_activateuber" "alias scrollup v_sentryhere; alias scrolldown v_help; alias transmit activateuber; developer 1; echo Activate Uber; wait 100; developer 0"

alias "v_help" "alias scrollup v_activateuber; alias scrolldown v_battlecry; alias transmit help; developer 1; echo Help!; wait 100; developer 0"
alias "v_battlecry" "alias scrollup v_help; alias scrolldown v_cheers; alias transmit battlecry; developer 1; echo Battlecry; wait 100; developer 0"
alias "v_cheers" "alias scrollup v_battlecry; alias scrolldown v_jeers; alias transmit cheers; developer 1; echo Cheers; wait 100; developer 0"
alias "v_jeers" "alias scrollup v_cheers; alias scrolldown v_positive; alias transmit jeers; developer 1; echo Jeers; wait 100; developer 0"
alias "v_positive" "alias scrollup v_jeers; alias scrolldown v_negative; alias transmit positive; developer 1; echo Positive; wait 100; developer 0"
alias "v_negative" "alias scrollup v_positive; alias scrolldown v_niceshot; alias transmit negative; developer 1; echo Negative; wait 100; developer 0"
alias "v_niceshot" "alias scrollup v_negative; alias scrolldown v_goodjob; alias transmit niceshot; developer 1; echo Nice Shot; wait 100; developer 0"
alias "v_goodjob" "alias scrollup v_niceshot; alias scrolldown v_thanks; alias transmit goodjob; developer 1; echo Good Job; wait 100; developer 0"

alias "thanks" "voicemenu 0 1"
alias "gogogo" "voicemenu 0 2"
alias "moveup" "voicemenu 0 3"
alias "goleft" "voicemenu 0 4"
alias "goright" "voicemenu 0 5"
alias "yes" "voicemenu 0 6"
alias "no" "voicemenu 0 7"

alias "incoming" "voicemenu 1 0"
alias "cloakedspy" "voicemenu 1 1"
alias "sentryahead" "voicemenu 1 2"
alias "teleporterhere" "voicemenu 1 3"
alias "dispenserhere" "voicemenu 1 4"
alias "sentryhere" "voicemenu 1 5"
alias "activateuber" "voicemenu 1 6"


alias "help" "voicemenu 2 0"
alias "battlecry" "voicemenu 2 1"
alias "cheers" "voicemenu 2 2"
alias "jeers" "voicemenu 2 3"
alias "positive" "voicemenu 2 4"
alias "negative" "voicemenu 2 5"
alias "niceshot" "voicemenu 2 6"
alias "goodjob" "voicemenu 2 7"

//================

bind "mouse3" "transmit"                  //Executes selected voice bind.
bind "mwheelup" "scrollup"                //Scrolls up
bind "mwheeldown" "scrolldown"            //Scrolls down
v_thanks

Double Tap

Press a key for an action then press again, within a short time, for a different action. This script can be adjusted to hold nothing as the primary action to force a double key tap in order to have an action performed. Likewise, you can adjust the alias names to allow for multiple keys designated as double tap keys each with their own two possible actions.
Posted by Flannelbum
// ========================
// === START Double Tap ===
// ========================
alias "dtkey" "dtap"
alias "dtap" "dtpri; alias dtkey dtap2; wait 25; alias dtkey dtap"
alias "dtap2" "dtsec; alias dtkey dtap"
//
// -------------------------------------------------------------
// |Instructions:  Change the X's below.
// | dtpri is your Primary keytap 
// | dtsec is your Secondary keytap 
// |   (EX: alias "dtpri" "slot1")
// |
// -------------------------------------------------------------
//
alias "dtpri" 	"X"
alias "dtsec" 	"X"
bind 	"X" 	"dtkey"
// ======================
// === END Double Tap ===
// ======================

Double Tap with plus and minus

alias "+dtkey" "+dtap"
alias "-dtkey" "-dtap"
alias "+dtap" "+dtpri; alias +dtkey +dtap2; alias -dtkey -dtap2"
alias "-dtap" "-dtpri; wait 50; alias +dtkey +dtap; alias -dtkey -dtap"
alias "+dtap2" "+dtsec"
alias "-dtap2" "-dtsec; alias +dtkey +dtap; alias -dtkey -dtap"
alias "+dtpri" 	"+jump"
alias "-dtpri"    "-jump"
alias "+dtsec" 	"+whatever"    //change
alias "-dtsec"    "-whatever"  //change
bind 	"yourkey" 	"+dtkey" //change

Volume Control with Audio Duck

Cycle script to allow the in game changing of the volume value with the added feature of an "audio duck". The "audio duck" can be used for players that play with speakers as well as 3rd party voice communication software such as TeamSpeak2 or Ventrilo, so that teammates will not hear your speaker output while you are trying to talk.
Good example of using the "play" command to give user feedback.
Posted by Essobie
// Volume Control with Audio Duck
// ==============================
alias volume_test "play player/pl_fallpain9.wav"
alias volume_01 "volume 0.1; alias volume_up volume_02; alias volume_down volume_01; alias +audio_duck volume 0.1; alias -audio_duck volume 0.1; volume_test"
alias volume_02 "volume 0.2; alias volume_up volume_03; alias volume_down volume_01; alias +audio_duck volume 0.2; alias -audio_duck volume 0.2; volume_test"
alias volume_03 "volume 0.3; alias volume_up volume_04; alias volume_down volume_02; alias +audio_duck volume 0.2; alias -audio_duck volume 0.3; volume_test"
alias volume_04 "volume 0.4; alias volume_up volume_05; alias volume_down volume_03; alias +audio_duck volume 0.2; alias -audio_duck volume 0.4; volume_test"
alias volume_05 "volume 0.5; alias volume_up volume_06; alias volume_down volume_04; alias +audio_duck volume 0.2; alias -audio_duck volume 0.5; volume_test"
alias volume_06 "volume 0.6; alias volume_up volume_07; alias volume_down volume_05; alias +audio_duck volume 0.2; alias -audio_duck volume 0.6; volume_test"
alias volume_07 "volume 0.7; alias volume_up volume_08; alias volume_down volume_06; alias +audio_duck volume 0.2; alias -audio_duck volume 0.7; volume_test"
alias volume_08 "volume 0.8; alias volume_up volume_09; alias volume_down volume_07; alias +audio_duck volume 0.2; alias -audio_duck volume 0.8; volume_test"
alias volume_09 "volume 0.9; alias volume_up volume_10; alias volume_down volume_08; alias +audio_duck volume 0.2; alias -audio_duck volume 0.9; volume_test"
alias volume_10 "volume 1.0; alias volume_up volume_10; alias volume_down volume_09; alias +audio_duck volume 0.2; alias -audio_duck volume 1.0"
volume_10 // Initialization
bind "["	"volume_down"		// Lower volume.
bind "]"	"volume_up"		// Raise volume.
bind "ALT"	"+audio_duck"		// Duck volume. Assign to 3rd party Voice Program binding.

Shift-key Remap

For mapping new functions to keys by altering them when SHIFT is held. SHIFT can be replaced by any other key.
Posted by NiteCyper
///Shift-key Remap

alias +1 "+<ORIGINAL ACTION>"
alias -1 "-<ORIGINAL ACTION>"
alias +2 "alias +1 +3"
alias -2 "alias +1 +<ORIGINAL ACTION>"
alias +3 "<NEW ACTION>"

bind <KEY> +1
bind "SHIFT" +2

Rapid-fire

As in pressing a button repeatedly really quickly. Converted from Huster's bunny-jump script on fpsbanana.com
Posted by NiteCyper
//Rapid-fire

alias "+1" "alias 3 +2; +2"
alias "+2" "<KEY>;wait 3; -2"
alias "-2" "<KEY>;wait 3; 3"
alias "3" "+2"
alias "-1" "alias 3 none"
bind <KEY> "+1"

Personal tools