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

Long Configs

These scripts are quite long and therefore have been moved to their own pages. They are both General scripts.

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"

Complete Voice Menu Aliases

  • I haven't made this script, but I wanted to post it here anyway. Explantion is all included in the script.
  • --By (µÞ{}fT¡34¡™ 11:33, 28 October 2008 (UTC)
echo Voice Menu Aliases by ++ungood
//
// This is the simple way to bind voice menu commands.
// This does not pop up the little voice menu dialog
// To use:
// bind "x" "v_cloakedspy"
// obviously, replace the key and the voice command you want to bind.
//
alias "v_medic" "voicemenu 0 0"
alias "v_thanks" "voicemenu 0 1"
alias "v_gogogo" "voicemenu 0 2"
alias "v_moveup" "voicemenu 0 3"
alias "v_goleft" "voicemenu 0 4"
alias "v_goright" "voicemenu 0 5"
alias "v_yes" "voicemenu 0 6"
alias "v_no" "voicemenu 0 7"
//
alias "v_incoming" "voicemenu 1 0"
alias "v_cloakedspy" "voicemenu 1 1"
alias "v_sentryahead" "voicemenu 1 2"
alias "v_teleporterhere" "voicemenu 1 3"
alias "v_dispenserhere" "voicemenu 1 4"
alias "v_sentryhere" "voicemenu 1 5"
alias "v_activateuber" "voicemenu 1 6"
alias "v_uberready" "voicemenu 1 7"
//
alias "v_help" "voicemenu 2 0"
alias "v_battlecry" "voicemenu 2 1"
alias "v_cheers" "voicemenu 2 2"
alias "v_jeers" "voicemenu 2 3"
alias "v_positive" "voicemenu 2 4"
alias "v_negative" "voicemenu 2 5"
alias "v_niceshot" "voicemenu 2 6"
alias "v_goodjob" "voicemenu 2 7"

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

Turn Down Volume While Speaking

Instead of totally muting your game, this will only lower the volume while speaking.
--(µÞ{}fT¡34¡™ 19:32, 27 October 2008 (UTC)
alias "+mic" "volume 0.5; +voicerecord"
alias "-mic" "-voicerecord; volume 1"
bind "MICROPHONE-BUTTON" "+mic"

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

The Way To Quit

  • Press 1 button, and you'll spin around, taunt, in the middle of the taunt you will explode, and then quit TF2. You'll also say a goodbye message.
  • ! Set the key to a key you won't accidently hit, because you will quit no matter what you try!
  • --(µÞ{}fT¡34¡™ 11:15, 28 October 2008 (UTC)
//The Way To Quit - By CupOfTea
alias "goodbye" "say GOODBYE_MESSAGE_HERE" //put you're goodbye message here.
alias "superquit" "goodbye; cl_yawspeed 5000; +right; wait 100; cl_yawspeed 210; -right; lastinv; taunt; wait 300; explode; wait 20; exit"
bind "KP_MULTIPLY" "superquit" //you may change this key

Toggle Crouched State

Press duck key once to crouch. Press again to stand up.
A hidden ingame keybind, can be entered using the console.
bind "KEY" "toggle_duck"

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 "ÜberCharge 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

Class Changer Scripts

Class Changer v1

  • Script to easely change class. I don't take credit for this script. Don't know who actually made it.
  • --(µÞ{}fT¡34¡™ 19:33, 27 October 2008 (UTC)
// Quick Class Joiner Script. It has been tested and works.
alias +joinclass "bind 1 scout; bind 2 soldier; bind 3 pyro; bind 4 demoman; bind 5 heavy; bind 6 engineer; bind 7 medic; bind 8 sniper; bind 9 spy"
alias "-joinclass" "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"
//
alias scout "join_class scout"
alias soldier "join_class soldier"
alias pyro "join_class pyro"
alias demoman "join_class demoman"
alias heavy "join_class heavyweapons"
alias engineer "join_class engineer"
alias medic "join_class medic"
alias sniper "join_class sniper"
alias spy "join_class spy"
//
bind "shift" "+joinclass"

Class Changer v2

  • Changes: Possibility to set automatic suicide after joining a class.
  • I only did the changes. The orginal script (see above) is not made by me.
  • --By (µÞ{}fT¡34¡™ 12:54, 1 November 2008 (UTC)
// Quick Class Joiner Script. It has been tested and works.
alias +joinclass "bind 1 scout; bind 2 soldier; bind 3 pyro; bind 4 demoman; bind 5 heavy; bind 6 engineer; bind 7 medic; bind 8 sniper; bind 9 spy; bind 0 csuicide"
alias "-joinclass" "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; bind 0 slot10"
//
alias "csuicide" "other_suicide; csuicideoff"
alias "csuicideoff" "alias suicide default_suicide csuicideon"
alias "csuicideon" "alias suicide other_suicide csuicideoff"
alias "default_suicide" "hud_classautokill 0" //set hud_classautokill 0 if you don't want to commit suicide after choosing class as default. Set to 1 if you do want to commit suicide after choosing a class.
alias "other_suicide" "hud_classautikill 1" //set hud_classautokill to the opposite number of default_suicide.
default_suicide
//
alias scout "join_class scout"
alias soldier "join_class soldier"
alias pyro "join_class pyro"
alias demoman "join_class demoman"
alias heavy "join_class heavyweapons"
alias engineer "join_class engineer"
alias medic "join_class medic"
alias sniper "join_class sniper"
alias spy "join_class spy"
//
bind "shift" "+joinclass"

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_fallpain.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" "<ACTION>;wait 3; -2"
alias "-2" "<ACTION>;wait 3; 3"
alias "3" "+2"
alias "-1" "alias 3 none"
bind <KEY> "+1"

Demo Playback Assistance

These binds were someone else's idea. I apologize, but I cannot remember the source. Credit goes to that person.
They help me immensely in putting together several clips using the Source Recorder (see Recording Demos).
F12 is a universal startmovie button. Queue up a demo to whatever you want to record, then hit F12. The startmovie frame files will be prefixed with a_, such as a_0000.tga, and the accompanying WAV audio file will be a_.wav . Then, hit F9 to STOP the startmovie process (endmovie). The next time you hit F12, the prefix will be b_, c_ and so on because of the "alias train". You can extend it to support prefixes beyond Z, but I don't usually go that far!
F1, F2, F3 and F4 are useful speed controls that manipulate the host_framerate variable. F1 is a good fast-forward key. F4 gives you slow-motion. F2 is DEFAULT!! host_framerate 0 is your friend.
F5 is a Play / Pause button!
I also have binds for r_drawviewmodel 0 (removes first-person gun) and such but it overwrites default keys so I excluded them. As it is, F5 (default: screenshot) is overwritten by this script's play / pause function so be careful.
Posted by Wipnum
//Recording Assistance

bind j "cl_drawhud 0"
bind k "cl_drawhud 1"

bind f12 "strta"
alias strta "startmovie a_;bind f12 strtb"
alias strtb "startmovie b_;bind f12 strtc"
alias strtc "startmovie c_;bind f12 strtd"
alias strtd "startmovie d_;bind f12 strte"
alias strte "startmovie e_;bind f12 strtf"
alias strtf "startmovie f_;bind f12 strtg"
alias strtg "startmovie g_;bind f12 strth"
alias strth "startmovie h_;bind f12 strti"
alias strti "startmovie i_;bind f12 strtj"
alias strtj "startmovie j_;bind f12 strtk"
alias strtk "startmovie k_;bind f12 strtl"
alias strtl "startmovie l_;bind f12 strtm"
alias strtm "startmovie m_;bind f12 strtn"
alias strtn "startmovie n_;bind f12 strto"
alias strto "startmovie o_;bind f12 strtp"
alias strtp "startmovie p_;bind f12 strtq"
alias strtq "startmovie q_;bind f12 strtr"
alias strtr "startmovie r_;bind f12 strts"
alias strts "startmovie s_;bind f12 strtt"
alias strtt "startmovie t_;bind f12 strtu"
alias strtu "startmovie u_;bind f12 strtv"
alias strtv "startmovie v_;bind f12 strtw"
alias strtw "startmovie w_;bind f12 strtx"
alias strtx "startmovie x_;bind f12 strty"
alias strty "startmovie y_;bind f12 strtz"
alias strtz "startmovie z_;echo STRTZ DANGER"

bind f9 "endmovie"

bind f1 "host_framerate .1" // fast forward
bind f2 "host_framerate 0"
bind f3 "host_framerate 30"
bind f5 "demo_togglepause"
bind f4 "host_framerate 120" // slow-mo

Demo Playback Assistance alternative

These playback assistants use demo_timescale, which seems to work better. F7 brings up demo playback UI (make sure to close it after loading a demo so you can use binds) F8 pauses/resumes. Press and hold f9 or f10 for different degrees of fast forward. F11/F12 plays in slowmotion.

alias +scale6 "demo_timescale 6"
alias -scale6 "demo_timescale 1"

alias +scale3 "demo_timescale 3"
alias -scale3 "demo_timescale 1"

alias +scale05 "demo_timescale 0.5"
alias -scale05 "demo_timescale 1"

alias +scale025 "demo_timescale 0.25"
alias -scale025 "demo_timescale 1"

bind "F7" "demoui2"
bind "F8" "demo_togglepause"
bind "F9" "+scale6"
bind "F10" "+scale3"
bind "F11" "+scale05"
bind "F12" "+scale025"


Server music stopping bind

Are you annoyed by music played by admin but you don't want to put download filters on? This next small script will bind the "F10" key to stop the music. (Note that by default the F10 key will quit the game.)

bind "F10" "play common/null"
Posted by AciD

Auto-spammer

Wait 1000 = 13 wrench swings which is the right amount of time to spam spraypaint. 300/350 = voice commands.
Posted by --NiteCyper 16:54, 15 August 2008 (UTC)
//Auto-spammer (Rapid-fire inside toggle script)
alias "+1" "alias 2 +3; +3"
alias "+3" "<ACTION>; -3"
alias "-3" "<ACTION>; 2"
alias "2" "+3"
alias "-1" "alias 2 none"
alias "togglespamon" "+1; developer 1; echo ON; wait 100; developer 0; alias togglespam2on togglespamoff "
alias "togglespamoff" "-1; developer 1; echo OFF OFF OFF OFF OFF; echo OFF OFF OFF OFF OFF; echo OFF OFF OFF OFF OFF; wait 100; developer 0; alias togglespam2on togglespamon"
alias togglespam2on togglespamon
bind "<KEY>" "togglespam2on"

Personal tools