Fortress Forever

Go Back   Fortress Forever > Community > Tips and Tutorials

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-22-2008, 04:09 PM   #1
Dr.Satan
Wiki Team
Fortress Forever Staff
 
Dr.Satan's Avatar
 
Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly
Gametype: PAYLOAD
Affiliations: DET-
Posts Rated Helpful 19 Times
Cleanup.cfg

Ok so I know that not everyone knows what this is or why it's useful so I will post one:

A cleanup.cfg is essentially a config that is there to unbind keys that you use to do something different for two or more classes. This is important because sometime you can actually confuse the game by not unbinding your keys. This in turn can result in you not being able to execute the desired action in game and can be detrimental to your success as a player.

An example of a set of scripts that would fall into this category is:

Code:
//in scout.cfg
bind mouse4 "+duck"
Code:
//in demoman.cfg
bind mouse4 "+attack2"
* In the example we are using the same key (mouse4) to duck for a scout and to use the secondary attack for a demo.

So what exactly does a cleanup.cfg do?

A cleanup.cfg is simply a NEW .cfg file created by you to "cleanup" your configs and binds.

Mine looks like this:

Code:
echo Clean Up Config Loaded

unbind mwheelup
unbind mwheeldown
unbind alt
unbind mouse2
unbind mouse3
unbind mouse4
unbind mouse5
unbind f
unbind g
unbind shift
unbind ctrl
You will notice that I have a lot of keys in there. This is because each of those keys is being used to preform separate commands depending on the class I am playing. Yours may not be as large or it may be larger, that depends on the scripts you are using.

Creating a cleanup.cfg.

To create a cleanup.cfg you will need to have notepad (notepad NOT wordpad).
  1. Open a blank notepad document.
  2. Place this line at the top:

    Code:
    echo Clean Up Config Loaded
    (this will let you know in console that your .cfg has been successful in loading)
  3. Next you will need to place any and all keys that you wish to unbind here.

    For instance if you use c, d, 3, and mouse2 as different things for two or more scripts then you will want to place these here. YOU WILL NEED A SEPARATE LINE FOR EACH KEY!

    Using the example above your hypothetical cleanup.cfg would look like this:
    Code:
    echo Clean Up Config Loaded
    unbind c
    unbind d
    unbind 3
    unbind mouse2
  4. Once you have put all the keys into your cleanup.cfg you need to save this AS A CONFIG FILE.
  5. To do this, go to file, saveas and navigate to your cfg folder (steam/steamapps/fortressforever/cfg). When saving the document it is important that you save it as cleanup.cfg (include the .cfg in the filename or it will not save properly!)
  6. The last step is to execute your cleanup.cfg. To do this place the following line into each <classname>.cfg (demoman.cfg, engineer.cfg, hwguy.cfg, medic.cfg, pyro.cfg, scout.cfg, sniper.cfg, soldier.cfg, spy.cfg)

    Code:
    exec cleanup.cfg
    * This line needs to be at the TOP of each <classname>.cfg before any scripts you have, but below the line: echo <classname> CFG LOADED

    Your done! To test your cleanup.cfg join a game (or create a server) and choose a class. Then check your console (~) and look for a line that says:

    Clean Up Config Loaded

    You should see this at or near the bottom of your console. If you cannot find this line then you will need to go back through the steps above.
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf
(Beta) alchimy_b1
(Lua) base_payload_2015
(Models) props_trainyard
Support FF:
Dr.Satan is offline   Reply With Quote


 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:18 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.