Scripts to help your game

virus.rpm

Rookie
Joined
Feb 27, 2012
Messages
52
The file you want to edit is in program files/steam/steamapps/<username>/team fortress 2/tf/cfg.

It is called "autoexec.cfg", and you may have to create it. If you do, use notepad and make sure you're not saving it as a .txt when you save.

autoexec.cfg will be executed automatically every time you enter the game, and you can put general scripts in there. Each class also has a .cfg file for custom binds, like rocket jumps or medic autoheal. If the files are not already in the folder, each is called <class name>.cfg, with the exception of heavyweapons.cfg.

First and most important are going to be your network scripts. These will improve your game noticeably if you play projectile classes because of the artificial delay between your mouse click and the exit of the projectile, which this script works to remove.

Taken from Chris' network settings for good connections ( <80-100 ping )

cl_cmdrate "66"
cl_interp "0.0152"
cl_interp_ratio "1"
cl_lagcompensation "1"
cl_pred_optimize "2"
cl_smooth "0"
cl_smoothtime "0.01"
cl_updaterate "66"
rate "60000"

For bad connections:

cl_cmdrate "40"
cl_interp "0.025"
cl_interp_ratio "1"
cl_lagcompensation "1"
cl_pred_optimize "2"
cl_smooth "0"
cl_smoothtime "0.01"
cl_updaterate "40"
rate "35000"

Next, for those with the high or low end computers, there are custom graphic configs, from quakelike to movie quality. These are far too detailed to paste into a forum, but I've always had success with Chris' configs.

There are also class specific configs. Chris has a medic config under the last link, and enterprising spies should check out Stabby's spy scripts.

For the lazy soldiers, I find it nice to bind to Mouse 2.

alias +rocketjump "+jump;+duck;+attack"
alias -rocketjump "-jump;-duck;-attack"
bind "mouse2" "+rocketjump"

Engineer oneclick build/destroy scripts are also important for min-maxing. This was taken from tf2wiki's engineer scripts page. http://pastebin.com/raw.php?i=8hAnr8wE

By default, the buildings are bound to F1-F4. To change this, change these values:
alias engieEnable "bind mouse2 +upgrade2; bind mouse3 build_move; bind f1 sentry; bind f2 dispenser; bind f3 entrance; bind f4 exit; bind 1 fixBinds; alias engieToggle engieDisable"
alias engieDisable "bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 +powerJump; bind 1 slot1; unbind f1; unbind f2; unbind f3; unbind f4; alias engieToggle engieEnable"
alias engieToggle engieEnable

And finally, I use and heartily recommend tf2mate to automate most of this stuff.
 
Thanks for helping me virus I can somewhat rage less when versing a pomson engie -.-
 
I'm like one of those guys who use 0 scripts. I'm try 'em soon tho.
 
Some of my favourites:

Remove the crosshair on ONLY the sniper rifle: (doesnt work amazingly if you use the quickswitch button often because the crosshair wont switch automatically unless you switch weapons with mouse wheel or the number buttons)

//Sniper crosshair

alias s1 "crosshair 0; slot1"
alias s2 "crosshair 1; slot2"
alias s3 "crosshair 1; slot3"

bind 1 s1
bind 2 s2
bind 3 s3

crosshair 0

copy ^^ into sniper.cfg and copy

//CH Fix
bind 1 slot1
bind 2 slot2
bind 3 slot3

crosshair 1

into every other classes .cfg

Autoreload on only specific classes: copy either of the below into each classes .cfg file (particularly useful for ambassador spies because it covers the entire crosshair while it reloads making it difficult to aim)

cl_autoreload 0 (for off)

cl_autoreload 1 (for on)

Other than that and what's in the OP scripts tend to be just lazy.
 
These scripts are made for the sole purpose of improving FPS? or I actually can remove the 1 sec delay between click and shooting a rocket becuase of my high ping?
 
These scripts are made for the sole purpose of improving FPS? or I actually can remove the 1 sec delay between click and shooting a rocket becuase of my high ping?

Chris' scripts are the graphical config, but you might want to use the second script I listed, the one for bad connection. It won't completely mitigate the effect of your ping, but even on a 1ping connection, there is an artificial, game added delay. The script removes that.
 
I used to use scripts when I first started playing this game, I had auto disguise and fast disguise scripts for spy, but Im used to all things spy. Thats pretty much the only script I used.
 
Engie auto-repair bind FTW!

But I also like the rocket jump one.
 
Thanks for the wiki link, very interesting read. After reading that and the article on interpolation though, I do recommend at least trying cl_interp 0.0152 and cl_interp_ratio 1, as those reduce the artificial lag created by the engine to the bare minimum. (The interp article says the default lerp is optimized for dialup modems :O)
 
after learning about scripts, i cant play with out them. They simplify (depending on how you use them, it can also complicate things) gameplay in my opinion. a 1 button Rocket jump, or a quick axe as pyro, it all helps. Then all the noobs will claim your cheating and you can simply direct them to the wiki with a troll face on. :P
 
Back
Top