scripting

Us3rnam3

I made one post
Joined
Mar 2, 2013
Messages
11
I am having scripting issues. everytime i input a script on my console it works but only until i exit the game, everytime i get bac on it doesnt work anymore, is there a was to save a script?
 
Eh I think you have to put it somewhere in your TF Folder but I don't remember.
 
you have to put your script in your auto exec file.

Depends of the script, if it's a general (all purpose script then yes it goes into your auto exec ) <Steam Folder>\SteamApps\<account_name>\team fortress 2\tf\cfg\autoexec.cfg

If it's a class specific (or duel class say Solder/demoman) needs to go in the appropriate class .cfg folder(s)
 
Well I found the class file I want to move the script into, so how do I turn the scri[pt into a file to move into the folder?
 
Well I found the class file I want to move the script into, so how do I turn the script into a file to move into the folder?

Assuming the file you found is something along the lines of say scout.cfg, all you have to do is put the console commands in the .cfg and save. That's it.
 
Well I found the class file I want to move the script into, so how do I turn the scri[pt into a file to move into the folder?

Example Script:
// ---------------------------------------------------------------------------------------------------------------------------------
// w0lvesy's scout script
// -----------------------------------------------------------------------------------------------------

// scattergun
alias "+scatter" "slot1;+attack;"
alias "-scatter" "-attack"

// pistol
alias "+pistol" "slot2;+attack;"
alias "-pistol" "-attack"

// bat
alias "+bat" "slot3;+attack;"
alias "-bat" "-attack"

//JEERS!
alias "jeersm8" "voicemenu 2 3"

//NEEDADISPENSAHEEYA
alias "dispenser" "voicemenu 1 4"

bind "mouse1" "+scatter"
bind "mouse2" "+pistol"
bind "mouse4" "+bat"
bind "mwheelup" "jeersm8"
bind "mwheeldown" "dispenser"
-----------------------------------------------------------------------------------------------------

Get Notepad ++ (download here http://notepad-plus-plus.org/) You want to use Notepad ++, note notepad

Open your class.cfg file (in my example scout.cfg with notepad++ Copy & paste (or write your script) in that folder (if you don't have the proper class.cfg folder make on) and save.


Note on the "binds", if you bind a key to do something that's class specific (as in the above example) it's best to put the below in all the other class.cfg files. So when you load another class it does a true "unbind"

//Paste to other cfgs
unbind "mouse1"
unbind "mouse2"
unbind "mouse4"
unbind "mwheelup"
unbind "mwheeldown"


Decent enough scripting read if you are interested http://forums.steampowered.com/forums/showthread.php?t=709568
 
Last edited:

Latest posts

Back
Top