Bandit5k's Config Read Me

The start

Basic Binding
Advanced Binding
Advanced Advanced Binding
Commands
Config Keys

When you want to make a CFG file (config) there are two ways of doing it.
You can A) set your keys in the RTCW menu or B) make a config file with Notepad or Metapad.
I use Metapad because it has extra features but you could use Microsoft Word if you wanted!
Why make a config that you write your self?

- To make your own features

- To have separate configs

- To make class configs

The reason I make my configs from scratch is so they are neat, easy to follow and have my own features, and example of a feature:
Ranger : One button ranger grab
Sniper : Press 1 button to prone and zoom in
Demolition Expert : One button det script
Medic : Hold a key and it starts Injecting or hands out Medi Packs
Infiltrator : A quick and easy disguise menu and a drop documents and hide script
Engineer : A sentry build and rotate script as well as some thing like the Medi dropper
Those are the reasons to make your own configs.
Later on in the read me I will teach you to config to a level where just about any thing you want is possible

Basic Binding

Even the most advanced configs use the command "bind". This is an essential part of ANY config.
When the command "bind" is used it binds that key to a command. As demonstrated below:

bind e "+forward"

That's just a simple forward command. Click here to see the full command list, not only binds but in game settings.
These commands are easy to bind to keys but don't offer you as much freedom as the more advanced.

Advanced Binding

Simple Advanced Binds

These "Simple Advanced Binds" as it says, are simple! In this type of binding you will use the commands "Set" and "vstr"
To make a key run your command you bind as so:

bind x vstr "walk"

Now that command isn't very useful because it doesn't exist yet, so now we "make" it.
To "make" the command we need to "set" it. when you "set" the command you tell it what to do.
Below is a demonstration of the "set" command in use.

set walk "+speed"

There we go. The command set will make you walk. But it wont allow you to run again. the only way to do that is to have another key bound the "run" but that's a bit stupid. But if u want to do it go ahead. What we are about to do is a toggle.
When a toggle is made, the command bound to the key (walk) will vstr another command (walkon) this is done like binding.

set walk vstr "walkon"

There we go, now we set walkon, when we do this we MUST make walk run walkoff. This is done like so.

set walkon "+speed; set walk vstr walkoff"

Now the next press of key "x" will run "walkoff". So now we set walkoff to make you run. Now assuming there have been no other keys using the command -speed this should work.

set walkoff "-speed; set walk vstr walkon"

So now when walkoff is triggered it sets walk to walkon. So when the button is pressed down first it makes you walk and pressed again makes you run.
Only problem is the only way you can tell your walking is by speed. This usually isn't a good way to judge speed.
So now we make the game tell you when your walking and when your running.
The command "echo" is used for this, this is useful for finding problems with scripts and keeping track of commands being used.
Echo's are used on their own like so.

echo This is an echo

That will say on your screen "This is an echo" (with out the speech marks). That's another thing, to make one command run many things you MUST have it in speech marks or it wont work and in an echo speech marks are ignored.
Now time to add echo's to our walk commands!

set walkon "+speed; set walk vstr walkoff; echo You are walking"

set walkoff "-speed; set walk vstr walkon; echo You are running"

You can add colour to your text with the colour command. To do this use ^ and a number to add colour! Not being the sort of person that remembers all the colours you will have to find most out, but I know ^1 is the colour red. Time to add colour to the echoes!

set walkon "+speed; set walk vstr walkoff; echo ^1You are walking^7"

set walkoff "-speed; set walk vstr walkon; echo ^1You are running^7"

Now the reason I put ^7 at the end is to stop colour "leaking" to other things, if your name has colours and you don't end with ^7 the last colour will leak to death messages! Which is bad.
So now we got basic toggles. You can also just have a command made by you that just does many things. Like this simple script for the Demolitions Expert to quickly det his pipes.
There is something very important about using multiple commands, only a few commands can be run at once, so you can have to many commands running at once, so we make them "wait" a bit. The wait command is useful but can be very bad if misused. During a wait all commands won't run. So your running along and you have bound a key to "wait 9999" which is 9999 server ticks as far as I know. You will continue to run forwards until the waits stop, waits are VERY bad for modemers. But you usually cannot modem in RTCW. So remember use your waits wisely!
Any way back to this quick det script. You bind your key to what u wanna call it, i called mine quickdet, so you should know it follows like so.

bind a vstr "quickdet"

Then then we set quick det as u should know.

set quickdet "special; wait 3; +attack; wait 3; -attack"

The command "special" for the Demolitions Expert brings out the detonator, and to fire it normally you use the attack button.
So figure i use the command "+attack". Back to the waits. The reason we wait 3 server ticks is so you wait for the detonator to come out. It might take more or less waits, i spent ages finding the right wait time for it. Then you attack, then you wait 3 so its giving time as not to use to many commands. After you attack with teh detonator it switches to the most powerful weapon with ammo. Thats atually quite simple isn't it? This entier section was just "simple" advanced commands. Now for the REAL advanced binds! :)

Advanced Advanced Binds

Get aload of that sub title. :)
So now we move onto UP and DOWN commands. When you bind e to forward you do it like this

bind e +forward

The game knows the up and down motion of the key, so u only say the down one. (down + up -)
If you wanted to do that with "vstr"'s you couldn't, the best you can do is a toggle, but because of Hawkks lovelyness we can use our own + and - commands! \o/
When you bind a key to a + and - command you do it like so.

bind e "+lol"

You can call it what the fuck you like! I just used lol because its the first thing i thought of. So now to set the up and down of lol.
This is atually really simple! You specify what you want it to do on the down press and the up press like so.

set loldown "+forward"

set lolup "-forward"

Is that simple or what?! You can use waits or what ever in it! That is basicly it. There are a few things you MUST know, if you make a command that toggles a command and that command toggles the first command then u crash the game! The game CANNOT handle infinate commands! So dont try it! So now you know the secrets of advanced scripting, have fun! Thats the end!
You can now read it a couple of thousand times and try figure out what the fuck im on about!
Ill leave you with the names of class configs and the command that auto exec's them.
Ranger.cfg
Sniper.cfg
Soldier.cfg
Demo.cfg
Medic.cfg
Venom.cfg
Pyro.cfg
Infiltrator.cfg (Could Hawkk just call it spy or agent? No!)
Engineer.cfg
cg_execclassconfigs 0 = off 1 = exec when u become that class 2 = every time you respawn (i might be wrong!)

You can rip up my configs all you want, its not like im going to copy write them!
And again Have Fun!

(P.S. I atually LIKE making configs, i find it fun!)