Grims TF2 Aliases

From TF2 Wiki

Jump to: navigation, search

Grim's TF2 Aliases

This is my entire autoexec.cfg file. I have been scripting for Valve games since CS 1.0 and have found that simplification is best for the vast majority of users. It has many of the same features as individual scripts you will find on this page, with minor alterations here and there. My work is always accompanied by the file needed to use the IN-GAME binding menu, so you can bind them to anything you wish. It is an edited version of the Valve binding menu that adds functionality to some original Valve entries, as well as entirely new entries for the aliases I create.
These files are available for download with a nearly fool-proof installer at GsXclan.com in the Downloads section. Please note that you must register with the site to download. It is also important to note that the installer will overwrite any existing ../../tf/cfg/autoexec.cfg and ../../tf/scripts/kb_act.lst files you may be using. It comes with an uninstaller shortcut, and the standard Control Panel Add/Remove Software uninstaller.
I would assume you know that aliases are put into the autoexec.cfg file that should be located in the "C:\Program Files\Steam\steamapps\YOUR USERNAME\Team Fortress 2\tf\cfg" folder, or your equivelent installation location. You may need to copy and paste this code into a text editor and save the file to that folder. Make sure it has the *.cfg extension NOT *.cfg.txt extension.
Posted by GrimReaper

Autoexec.cfg

					// GrimReaper's key binds and aliases




echo "~~~~~LOADING AUTOEXEC.CFG~~~~~"
echo "~~~~~LOADING AUTOEXEC.CFG~~~~~"

jpeg_quality 100			// Gives the best posibble screenshots
hud_fastswitch 1			// Enables these scripts to work properly



// ALIAS				// ACTION

// Toggle Crouch/Duck

alias "toggle_crouch"			"kneal"
alias "kneal"				"+duck; alias toggle_crouch standup"
alias "standup"				"-duck; alias toggle_crouch kneal"

// Classic Jump-Duck aka Big Jump to replace normal jump entirely
// To Rocketjump, just Big Jump while looking down and fire rocket
// To Bombjump, just Big Jump while running over a stickybomb then detonate it(right click)

alias "+jumpduck"			"+jump; +duck"
alias "-jumpduck"			"-jump; -duck"


// Weapon scrolling w/out menus - Reset Melee Autofire toggle and fix stuck fire command

alias "weapon1"				"-attack; slot1; alias nextweap weapon2; alias prevweap weapon3; resetmelee"
alias "weapon2"				"-attack; slot2; alias nextweap weapon3; alias prevweap weapon1; resetmelee"
alias "weapon3"				"-attack; slot3; resetweap; resetmelee"
alias "weapon4"				"-attack; slot4; resetweap; resetmelee"
alias "weapon5"				"-attack; slot5; resetweap; resetmelee"
alias "resetweap"			"alias nextweap weapon1; alias prevweap weapon2"
alias "nextweap"			"weapon2"
alias "prevweap"			"weapon3"

// Toggle Auto Melee' 
alias "toggle_auto_melee"		"swingaway" 
alias "swingaway"			"slot3; +attack; resetweap; alias toggle_auto_melee weapon1"
alias "resetmelee"			"alias toggle_auto_melee swingaway"

// Spy Quick Sapper
alias "+sapper"				"weapon2; +attack"
alias "-sapper"				"weapon3; -attack"

// Engineer Quick Build/Destroy Toggles

alias "quick_dispensor"			"qb0"
alias "quick_sentry"			"qb3"
alias "quick_enter"			"qb1"
alias "quick_exit"			"qb2"
alias "qb0"				"build 0; alias quick_dispensor qd0"
alias "qb3"				"build 3; alias quick_sentry qd3"
alias "qb1"				"build 1; alias quick_enter qd1"
alias "qb2"				"build 2; alias quick_exit qd2"
alias "qd0"				"destroy 0; alias quick_dispensor qb0"
alias "qd3"				"destroy 3; alias quick_sentry qb3"
alias "qd1"				"destroy 1; alias quick_enter qb1"
alias "qd2"				"destroy 2; alias quick_exit qb2"

// Spy Quick Disguise

alias "spy2"				"r2"			//sniper
alias "spy3"				"r3"			//soldier
alias "spy4"				"r4"			//demoman
alias "spy5"				"r5"			//medic
alias "spy6"				"r6"			//heavy
alias "spy7"				"r7"			//pyro
alias "spy9"				"r9"			//engineer
alias "toggle_spy_color"		"spy_blue"		//switch colors

alias "spy_blue"			"alias spy2 b2; alias spy3 b3; alias spy4 b4; alias spy5 b5; alias spy6 b6; alias spy7 b7; alias spy9 b9; alias toggle_spy_color spy_red"
alias "spy_red"				"alias spy2 r2; alias spy3 r3; alias spy4 r4; alias spy5 r5; alias spy6 r6; alias spy7 r7; alias spy9 r9; alias toggle_spy_color spy_blue"

alias "r2"				"disguise 2 2"
alias "r3"				"disguise 3 2"
alias "r4"				"disguise 4 2"
alias "r5"				"disguise 5 2"
alias "r6"				"disguise 6 2"
alias "r7"				"disguise 7 2"
alias "r9"				"disguise 9 2"

alias "b2"				"disguise 2 1"
alias "b3"				"disguise 3 1"
alias "b4"				"disguise 4 1"
alias "b5"				"disguise 5 1"
alias "b6"				"disguise 6 1"
alias "b7"				"disguise 7 1"
alias "b9"				"disguise 9 1"


// BINDS

// You can manually bind these here, or use the in-game menu I have created
// These are meant to add function to the default slot binds and are critical
//bind "1"				"weapon1"
//bind "2"				"weapon2"
//bind "3"				"weapon3"
//bind "4"				"weapon4"
//bind "5"				"weapon5"
//bind "MWHEELUP"			"prevweap"
//bind "MWHEELDOWN"			"nextweap"
//bind "f"				"toggle_auto_melee"
//bind "SHIFT"				"toggle_crouch"
//bind "SPACE"				"+jumpduck"
//bind "x"				"+sapper"
//bind "F1"				"quick_dispensor"
//bind "F2"				"quick_sentry"
//bind "F3"				"quick_enter"
//bind "F4"				"quick_exit"
//bind "F5"				"toggle_spy_color"
//bind "F6"				"spy2"
//bind "F7"				"spy3"
//bind "F8"				"spy4"
//bind "F9"				"spy5"
//bind "F10"				"spy6"
//bind "F11"				"spy7"
//bind "F12"				"spy9"

 

echo "~~~~~AUTOEXEC LOADED SUCCESSFULLY~~~~~"
echo "~~~~~AUTOEXEC LOADED SUCCESSFULLY~~~~~"
As you can see, I have listed the SUGGESTED binds at the bottom and then commented them out. To use this file without the ingame menu system, simply remove the "//" from each bind.
It has duck toggle and jumping abilities.
The weapon scroller section scrolls your primary, secondary and melee. It resolves the autofire stuck on scenario and resets the Auto Melee script no matter how you manage to switch weapons.
The Auto Melee section doubles as a quick upgrade script.
The Sapper entry will select the sapper and fire it while you hold the button, then switch to your knife upon button release, so as to not cause you to lose your disguise. It is suggested to bind "v" to "lastdisguise" so it's handy whenever you do need it.
The Spy Quick Disguise system has a button to toggle which color your disguises will be, along with disguises for Sniper, Soldier, Demoman, Medic, Heavy Weapons Guy, Pyro, and Engineer. Scout was left out because it is obvious when a Spy can't run as fast as a Scout. Spy was left out because it is obvious when you see a spy that has no paper facemask, because odds are, a friendly spy would be disguised. Medic is included, but please note that when looking at a Spy disguised as a Medic, he has no Uber meter, so it's not a good disguise either.
And finally, my favorite, the Engineer Quick Build/Destroy Toggles. These four buttons toggle individually for building and then destroying your items. The worst that can happen is if you build something and someone else destroys it, you will need to press the corresponding button twice to build again. This does not place the item, so you can still position it and rotate it to your liking.

kb_act.lst

Now, on to the IN-GAME menu file. It is called kb_act.lst and belongs in the "C:\Program Files\Steam\steamapps\YOUR USERNAME\Team Fortress 2\tf\scripts" folder, or your equivelent installation location. You can create this yourself making sure to use the *.lst extension.
"blank"			"=========================="
"blank"				"GrimReaper's CUSTOM ALIASES are in ALL CAPS"
"fake"				"-----www.GsXclan.com-----"
"blank"				"=========================="
"admin"				"OPEN MANI ADMIN MENU"
"blank"				"."
"blank"				"=========================="
"blank"				"#Valve_Movement_Title"
"blank"				"=========================="
"+forward"			"#Valve_Move_Forward"
"+back"				"#Valve_Move_Back"
"+moveleft"			"#Valve_Move_Left"
"+moveright"			"#Valve_Move_Right"
"+jumpduck"			"BIG JUMP aka JUMPDUCK"
"toggle_crouch"			"TOGGLE DUCK/CROUCH"
"+moveup"			"#Valve_Swim_Up"
"+movedown"			"#Valve_Swim_Down"
"blank"				"=========================="
"blank"				"#Valve_Communication_Title"
"blank"				"=========================="
"+voicerecord"			"#Valve_Use_Voice_Communication"
"say"				"#Valve_Chat_Message"
"say_team"			"#Valve_Team_Message"
"voice_menu_1"			"#TF_Voice_Menu_A"
"voice_menu_2"			"#TF_Voice_Menu_B"
"voice_menu_3"			"#TF_Voice_Menu_C"
"voicemenu 0 0"			"#TF_Call_For_Medic"
"blank"				"=========================="
"blank"				"#TF_Title"
"blank"				"=========================="
"changeclass"			"#Valve_Change_Class"
"changeteam"			"#Valve_Change_Team"
"dropitem"			"#TF_DropFlag"
"taunt"				"#TF_Taunt"
"showmapinfo"			"#TF_MapInfo"
"blank"				"=========================="
"blank"				"#TF_ClassSpecific_Keys"
"blank"				"=========================="
"+attack2"			"#TF_ClassSkill_Demoman"
"+attack2"			"#TF_ClassSkill_Heavy"
"+attack2"			"#TF_ClassSkill_Medic"
"+attack2"			"#TF_ClassSkill_Sniper"
"+attack2"			"#TF_ClassSkill_Spy"
"+sapper"			"SPY QUICK SAPPER USE"
"toggle_spy_color"		"SPY TOGGLE DISGUISE COLOR"
"spy2"				"SPY QUICK DISGUISE - SNIPER"
"spy3"				"SPY QUICK DISGUISE - SOLDIER"
"spy4"				"SPY QUICK DISGUISE - DEMOMAN"
"spy5"				"SPY QUICK DISGUISE - MEDIC"
"spy6"				"SPY QUICK DISGUISE - HEAVY"
"spy7"				"SPY QUICK DISGUISE - PYRO"
"spy9"				"SPY QUICK DISGUISE - ENGINEER"
"lastdisguise"			"#TF_ClassSkill_Spy_LastDisguise"
"blank"				"=========================="
"blank"				"ENGINEER QUICK TOGGLES"
"blank"				"=========================="
"quick_dispensor"		"BUILD/DESTROY DISPENSOR"
"quick_sentry"			"BUILD/DESTROY SENTRY"
"quick_enter"			"BUILD/DESTROY ENTER"
"quick_exit"			"BUILD/DESTROY EXIT"
"blank"				"=========================="
"blank"				"#Valve_Combat_Title"
"blank"				"=========================="
"+attack"			"#Valve_Primary_Attack"
"toggle_auto_melee"		"TOGGLE MELEE AUTOSWING"
"+reload"			"#Valve_Reload_Weapon"
"prevweap"			"#Valve_Previous_Weapon"
"nextweap"			"#Valve_Next_Weapon"
"lastinv"			"#Valve_Last_Weapon_Used"
"weapon1"			"#Valve_Weapon_Category_1"
"weapon2"			"#Valve_Weapon_Category_2"
"weapon3" 			"#Valve_Weapon_Category_3"
"weapon4"			"#Valve_Weapon_Category_4"
"weapon5"			"#Valve_Weapon_Category_5"
"blank"				"=========================="
"blank"				"#Valve_Miscellaneous_Title"
"blank"				"=========================="
"impulse 201"			"#Valve_Spray_Logo"
"+showscores"			"#Valve_Display_Scores"
"screenshot"			"#Valve_Take_Screen_Shot"
"quit prompt"			"QUIT TO DESKTOP"
"quit"				"#Valve_Quit_Game"
"toggleconsole"			"#Valve_Console_Toggle"

Personal tools