(adsbygoogle = window.adsbygoogle || []).push({});
Ok, so I am bored so I am going to tell you how to write mods in CFG files. This is mostly from COD4/COD5, but everyone is creating mod menus in mw2 update 1.12.
The easiest way to create a mod menu IMHO, is my generator, but I won't talk about that.
First to know is CFG mods ARE NOT PROGRAMMING. There is no logic in it. That means, no special stuff, no zombie mods, no custom game modes (unless they are already in the game).
CFG files merely contain game commands
List of commonly used commands:
- say
- set
- bind
- unbind
- unbindall
- vstr
- map_restart
- fast_restart
- kick
- clientkick
- toggle
- setplayerdata (can NOT be ran in game)
- exec
Now for the most basic mods, which use the bind command
If you want to have dpad left do a quick restart, the code looks like this:
bind dpad_left "fast_restart"
I do believe the double-quotes are optional, but its good practice to use them.
You can bind any control you want you want to any command or set of commands as many times as you want.
You also separate commands with a ";".
You can group a set of command together to be called at any time via the command "set"
set can set DVAR values as well as create a variable string. A variable string is simple a set of commands as previously stated.
Example:
set TEST "code; code; code"
You can then run a variable string with the command "vstr"
Example:
vstr TEST
Any command can be in a variable string, so you of course can run a vstr command in a variable string itself.That is how mod menus in CFG actually work.
A random example of binding doad down to a variable string is:
bind DPAD_DOWN "vstr TEST"
On the topic of dvars, you can set a dvar value with set. You can also toggle a dvar value as well. When toggling, you can switch between upto 3 values.
Example:
toggle bg_maxjumpheight 999 500 0
Sorry if thats not the correct dvar

, but hopefully you get the point.
Well that about all I can think of. Only advanced part is creativity and knowing how to use the game commands properly.
I realize this tutorial is badly written, but I am not a great writer.
I hope this helped SOME people.
Peace and Good Luck..