Post: [1.12]CFG: Basic Commands (Noobs)
07-30-2011, 09:21 PM #1
XILE_
This is Epic
(adsbygoogle = window.adsbygoogle || []).push({});
A Basic Tutorial


Well Here goes Nothing.

Here is a list of the Commonly used Commands in CFG:
    [COLOR="#FF0000"]say
set
bind
unbind
vstr
map_restart
fast_restart
kick
toggle
exec[/COLOR]



An example to use is:
    [COLOR="#FF0000"]bind[/COLOR]


If you would like for dpad up to do a fast_restart, the code would be like this:
    [COLOR="#FF0000"]bind[/COLOR] DPAD_UP "[COLOR="#FF0000"]fast_restart[/COLOR]"

(I think the quotes aren't really needed, but just to stay organized or for practice"

you can bind any control to any command or set of commands as many times as you want.

you can also group a set of Command Codes together to be used via the command "set".

"Set" can set DVAR values and also create variable string. A variable string is a set of command codes, stated earlier.

Command Codes are separated with
    ;


Example:
    [COLOR="#FF0000"]set[/COLOR] TEST "[COLOR="#FF8C00"]Code; Code; Code[/COLOR]"



You can then execute a variable string with the command "vstr"

Example:
    [COLOR="#FF0000"]vstr[/COLOR] TEST



Any command can be in a variable string, so you can execute a "vstr" command in a variable string.
This is how Mod Menus in .CFG workCool Man (aka Tustin)

Example of binding dpad up to a variable string:
    [COLOR="#FF0000"]bind[/COLOR] DPAD_UP "[COLOR="#FF0000"]vstr[/COLOR] TEST"


Dvars- you can have a Dvar value with sets. You also have an option to toggle a dvar value if you want(I'm not entirely sure how many values you can have).

Example:
    Toggle cg_laserForceOn 1 0


I'm not sure if that's the correct/right Dvar but it's just an example for you to seeSmile
well that's just to get you started about what the basic commands are like and what they can do.
There are many ways you can use these to extend the CFG commands into something extraordinary, but just use these commands correctly and you'll surely prosperSmile

I know this tutorial isn't the best, but hopefully it helped out those who are curious about what is/what are .CFG Commands.:bro:

**Feedback are always welcome:y:

*Edit: Darn!! it wasn't suppose to be thumbs down in the title :/ any way to switch it?
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to XILE_ for this useful post:

aerosoul94, Blackstorm, Downhunter, KeithH4666, wowaka, zFlaVouR

The following 6 users groaned at XILE_ for this awful post:

.Pluto, MeowDev, KCxFTW, User23434, Matt1511, User2340034u
07-31-2011, 12:27 AM #11
.Pluto
Splicer


Originally posted by Downhunter View Post
Why Groan then? A little bit mean :(

---------- Post added at 12:42 AM ---------- Previous post was at 12:40 AM ----------

Question:
Say My char is too long and I want to put my biggest menu into another .cfg.
I put it into a a .cfg, will i have to type this in under the Main Menu Option... exec .cfg;vstr Chat_Menu
Will that work?


no it would be vstr [MENU-1-NAME] in my patch it would be vstr Menu2
07-31-2011, 05:25 AM #12
Thanks man, tend to refer back to this. Happy
07-31-2011, 11:47 AM #13
KeithH4666
Social engineering <3
Originally posted by .Pluto View Post




no it would be vstr [MENU-1-NAME] in my patch it would be vstr Menu2


so i could have like another menu and activate it using 'vstr' ?
07-31-2011, 01:10 PM #14
.Pluto
Splicer
Originally posted by KeithH4666 View Post
so i could have like another menu and activate it using 'vstr' ?


then your menu code yes
08-04-2011, 08:55 PM #15
XILE_
This is Epic
Originally posted by 9819
Thanks man, tend to refer back to this. Happy


haha same here... well before i use too Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo