Post: [TUTORIAL] How to create CFG Mods
03-24-2011, 11:34 PM #1
pcfreak30
>> PCFreak30.com Happy<<
(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 :P, 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..
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to pcfreak30 for this useful post:

baremo, chickensamw1993, Chrome Playa, emsp, FrozN, ilikecl, Joshhyyy-, PunjabiBoii, shotkillah55
03-24-2011, 11:37 PM #2
wowaka
Former Staff
Good for the noobs (me). I need to figure out how to get my convertor to work now /facepalm.

The following user thanked wowaka for this useful post:

pcfreak30
03-24-2011, 11:39 PM #3
Okami
Known As Yukuku
Originally posted by pcfreak30 View Post
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 :P, 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..


nice tut for de people thet dont know how to make em good job Happy
03-24-2011, 11:41 PM #4
Chrome Playa
Chrome Gaming Reloaded
Originally posted by pcfreak30 View Post
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 :P, 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..


Nice work. I'm sure it will be helpful to those who are new to CFG commands.

---------- Post added at 07:41 PM ---------- Previous post was at 07:39 PM ----------

Originally posted by julianportman View Post
Good for the noobs (me). I need to figure out how to get my convertor to work now /facepalm.


I use Mossy's tool. I love it.
I'm able to open, edit, and save 1.12 patches easily Smile
03-24-2011, 11:42 PM #5
wowaka
Former Staff
Originally posted by Chrome
Nice work. I'm sure it will be helpful to those who are new to CFG commands.

---------- Post added at 07:41 PM ---------- Previous post was at 07:39 PM ----------



I use Mossy's tool. I love it.
I'm able to open, edit, and save 1.12 patches easily Smile


Isn't mossy's tool only from xbox to ps3? If not, a link would be appreciated =D .
03-24-2011, 11:44 PM #6
pcfreak30
>> PCFreak30.com Happy<<
Random question. Anyone explain the NGU rep system. it confuses me how +rep gives someone 500+ rep points. I just boosted 2 ppl in here, just interested.

The following user thanked pcfreak30 for this useful post:

yankeefan09ws
03-24-2011, 11:47 PM #7
Chrome Playa
Chrome Gaming Reloaded
Originally posted by julianportman View Post
Isn't mossy's tool only from xbox to ps3? If not, a link would be appreciated =D .


I'm talking about his PS3 FastFile Tool that he sold for $10. I bought it from him a while back and for some reason he gave me my money back, lol.

You must login or register to view this content.

---------- Post added at 07:47 PM ---------- Previous post was at 07:45 PM ----------

The following user thanked Chrome Playa for this useful post:

wowaka
03-24-2011, 11:48 PM #8
wowaka
Former Staff
Originally posted by Chrome
I'm talking about his PS3 FastFile Tool that he sold for $10. I bought it from him a while back and for some reason he gave me my money back, lol.

You must login or register to view this content.

---------- Post added at 07:47 PM ---------- Previous post was at 07:45 PM ----------



That's rep power. Different people have different rep power based on their reputation. If your rep power is 100, when you -rep someone, it goes down by 100.


Fix your post, that's very wrong.
03-24-2011, 11:51 PM #9
Chrome Playa
Chrome Gaming Reloaded
Originally posted by pcfreak30 View Post
Random question. Anyone explain the NGU rep system. it confuses me how +rep gives someone 500+ rep points. I just boosted 2 ppl in here, just interested.


What's your rep power: You must login or register to view this content.
03-24-2011, 11:54 PM #10
Okami
Known As Yukuku
Originally posted by Chrome
What's your rep power: You must login or register to view this content.


mines 14 Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo