Anomaly's TF2 Scripts

Post Reply
User avatar
Anomaly
Veteran
Posts: 672
Joined: Sun Jun 08, 2014 6:31 am
Location: Maineville, OH

Anomaly's TF2 Scripts

Post by Anomaly »

Anomaly's TF2 Scripts V1.0 (Updated 09/04/2015)

Since I have been playing for a long time and have always faced limitations, I decided to share some of my scripts that I actively use. Note that not all of these are my own creation. Some people might find these useful at some point. I will describe what all of these do as much as I can. No, you will not get VAC banned for using these. They just use commands that already exist in the game and are allowed in multiplayer.

Don't worry, these scripts do not require administrator powers. These are for the general player.

How-To:
1.) Ensure TF2 is closed and navigate to your Steam/steamapps/common/Team Fortress 2/tf/cfg folder.
2.) If there is a file named autoexec.cfg open it, if not create it and paste any of my scripts in there on a blank line and save.
3.) That is it! Things in autoexec.cfg automatically load when you launch the game.


Anomaly's Advanced Scoreboard
This is my advanced scoreboard. It does not replace your normal scoreboard, it just adds a net graph with frames per second, in/out, and other details for troubleshooting. It will also show other information on the top-left. This also automatically enables your mouse while on the scoreboard so you can click peoples names and see their stats and go to their Steam profile.

Code: Select all

// Anomalys Advanced Scoreboard
alias +scoreboard "+showscores;tf_scoreboard_mouse_mode 1;net_graph 4;"
alias -scoreboard "-showscores;net_graph 0;"
bind KP_SLASH +scoreboard
Graphical Glitch/HUD Refresh Quick Fix Button
Ever see someone with two weapons in their hand at once? Ever seen a spy with a rocket launcher in a normal game? Ever had your HUD not refresh when doing an achievement or getting points for a contract? This fixes exactly that. Just press F8! Note: This will freeze the game for 1-2 seconds.

Code: Select all

// Graphical Glitch HUD Refresh Quick Fix Button
bind "f8" "record temp; stop; snd_restart; hud_reloadscheme;heartbeat;"
Firstperson Thirdperson Toggle
Toggles between first and third person with one button (by default the [ button).

Code: Select all

// Firstperson Thirdperson Toggle
alias fpv "fp; firstperson; sm_firstperson"
alias tpv "tp; thirdperson; sm_thirdperson"
alias firstpersontoggle "fpt"
alias thirdpersontoggle "fpv; alias firstpersontoggle fpt" 
alias fpt "tpv; alias firstpersontoggle thirdpersontoggle"
bind "[" "firstpersontoggle"
Chat Toggle
Toggles text chat on and off with one button (by default the ] button).

Code: Select all

// Chat Toggle
alias togglechat chaton
alias chaton "hud_saytext_time 12; alias togglechat chatoff" 
alias chatoff "hud_saytext_time 0; alias togglechat chaton" 
bind "]" togglechat
Null-Cancelling Movement Script
Ever notice when you're holding D to strafe right that if you tap A to strafe left while still holding D it completely stops you from moving, even mid-air? The same for W and S? This prevents that. It also makes it a lot easier to airstrafe when rocket/sticky jumping. This is safe, and it's even allowed in all competitive leagues as it does not actually improve performance, it just makes things a bit easier.

Code: Select all

// Null-Cancelling Movement Script
bind "w" +mfwd
bind "s" +mback
bind "a" +mleft
bind "d" +mright
alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""
All-In-One Script
All of the above. Just copy and paste on a new line at the bottom of your autoexec.cfg file.

Code: Select all

// Begin Anomalys Scripts

// Anomalys Advanced Scoreboard
alias +scoreboard "+showscores;tf_scoreboard_mouse_mode 1;net_graph 4;"
alias -scoreboard "-showscores;net_graph 0;"
bind KP_SLASH +scoreboard

// Graphical Glitch HUD Refresh Quick Fix Button
bind "f8" "record temp; stop; snd_restart; hud_reloadscheme;heartbeat;"

// Firstperson Thirdperson Toggle
alias fpv "fp; firstperson; sm_firstperson"
alias tpv "tp; thirdperson; sm_thirdperson"
alias firstpersontoggle "fpt"
alias thirdpersontoggle "fpv; alias firstpersontoggle fpt" 
alias fpt "tpv; alias firstpersontoggle thirdpersontoggle"
bind "[" "firstpersontoggle"

// Chat Toggle
alias togglechat chaton
alias chaton "hud_saytext_time 12; alias togglechat chatoff" 
alias chatoff "hud_saytext_time 0; alias togglechat chaton" 
bind "]" togglechat

// Null-Cancelling Movement Script
bind "w" +mfwd
bind "s" +mback
bind "a" +mleft
bind "d" +mright
alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""

echo Anomalys Scripts Loaded Successfully
// End Anomalys Scripts
That's it for now. I will add more later.

Changelog:

Code: Select all

09/04/2015:
- Fixed broken scoreboard script.

09/02/2015:
- Initial Post
Last edited by Anomaly on Fri Sep 04, 2015 2:53 pm, edited 4 times in total.
Image
Image
Feel free to add me!

<22:54:21> "Person_Unknown": Anomaly, you're a great admin and you've got a bitchin' asss
Post Reply