You can automatically execute CFGs based on certain conditions. To enable auto CFGs, set any of the following cvars to 1. These cvars are listed here in order of execution (e.g. demo CFGs are first; weapon CFGs are last).

A generic CFG executes first (if it exists), followed by a specific CFG (if it exists). For example, you can specify a "normal" mouse sensitivity for all weapons in /weaponCFGs​/generic​.cfg, but use a lower mouse sensitivity just for disruptor in /weaponCFGs​/disruptor​.cfg.

Advanced users can use VSTRs instead of CFGs.

CvarDescriptionGeneric CFGSpecific CFG
Cvar: cg_demoCFGs

Description: CFGs dependent on whether a demo is playing. Executes on any map load (not restart).Generic CFG:

/demoCFGs​/generic​.cfg

Specific CFG:

/demoCFGs​/demo​.cfg (if playing demo)

/demoCFGs​/notdemo​.cfg (if NOT playing demo)

Cvar: cg_gametypeCFGsDescription: Gametype-dependent CFGs. Executes on any map load (not restart).Generic CFG:

/gametypeCFGs​/generic​.cfg

Specific CFG:

/gametypeCFGs​/ffa​.cfg

/gametypeCFGs​/duel​.cfg

/gametypeCFGs​/powerduel​.cfg

/gametypeCFGs​/tffa​.cfg

/gametypeCFGs​/siege​.cfg

/gametypeCFGs​/ctf​.cfg

Cvar: cg_mapCFGsDescription:

Map-dependent CFGs. Executes on any map load (not restart).

Make sure to include /mp/ sub-folder for map names, if necessary.

Generic CFG:

/mapCFGs​/generic​.cfg

Specific CFG:

/mapCFGs​/<mapname>​.cfg

Cvar: cg_teamCFGsDescription: Team-dependent CFGs. Executes on any team change.Generic CFG:

/teamCFGs​/generic​.cfg

Specific CFG:

/teamCFGs​/red​.cfg

/teamCFGs​/blue​.cfg

/teamCFGs​/spec​.cfg

/teamCFGs​/free​.cfg

Cvar: cg_objectiveCFGsDescription:

Siege objective-dependent CFGs. Executes when joining or an objective is completed.

Make sure to include /mp/ sub-folder for map names, if necessary.

Generic CFG:

/objectiveCFGs​/<mapname>​/<team>​_generic​.cfg

Examples:

ObjectiveGeneric CFG
Objective: Any objective on Korriban, offenseGeneric CFG: /objectiveCFGs​/mp​/siege_korriban​/o_generic​.cfg
Objective: Any objective on Nar Shaddaa, defenseGeneric CFG: /objectiveCFGs​/siege_narshaddaa​/d_generic​.cfg
Specific CFG:

/objectiveCFGs​/<mapname>​/<team>​_<objective>​.cfg

Examples:

ObjectiveSpecific CFG
Objective: First objective on Korriban, offenseSpecific CFG: /objectiveCFGs​/mp​/siege_korriban​/o_1​.cfg
Objective: Third objective on Nar Shaddaa, defenseSpecific CFG: /objectiveCFGs​/siege_narshaddaa​/d_3​.cfg
Cvar: cg_classCFGsDescription:

Siege class-dependent CFGs. Executes on respawn, but not on consecutive respawns as the same class.

Make sure to include /mp/ sub-folder for map names, if necessary.

Generic CFG:

/classCFGs​/generic​/assault​.cfg

/classCFGs​/generic​/hw​.cfg

/classCFGs​/generic​/demo​.cfg

/classCFGs​/generic​/tech​.cfg

/classCFGs​/generic​/scout​.cfg

/classCFGs​/generic​/jedi​.cfg

Specific CFG:

/classCFGs​/<mapname>​/<team>​_<class>​.cfg

Examples:

ClassSpecific CFG
Class: Offense demo on KorribanSpecific CFG: /classCFGs​/mp​/siege_korriban​/o_demo​.cfg
Class: Defense HW on DesertSpecific CFG: /classCFGs​/mp​/siege_desert​/d_hw​.cfg
Cvar: cg_ctfPosCFGs

Description: CTF position-dependent CFGs (on supporting servers). Executes when position is set and on map change.

Generic CFG: /ctfPosCFGs​/generic​.cfg

Specific CFG:

/ctfPosCFGs​/base​.cfg

/ctfPosCFGs​/chase​.cfg

/ctfPosCFGs​/offense​.cfg

Cvar: cg_weaponCFGsDescription: Weapon-dependent CFGs. Executes on respawn, when changing weapons, or when entering free spectator camera mode (e.g. on map load, going spec, etc.).

Generic CFG: /weaponCFGs​/generic​.cfg

Specific CFG:

/weaponCFGs​/freespec​.cfg

/weaponCFGs​/stunbaton​.cfg

/weaponCFGs​/melee​.cfg

/weaponCFGs​/saber​.cfg

/weaponCFGs​/pistol​.cfg

/weaponCFGs​/e11​.cfg

/weaponCFGs​/disruptor​.cfg

/weaponCFGs​/bowcaster​.cfg

/weaponCFGs​/repeater​.cfg

/weaponCFGs​/demp​.cfg

/weaponCFGs​/golan​.cfg

/weaponCFGs​/rocket​.cfg

/weaponCFGs​/thermal​.cfg

/weaponCFGs​/mine​.cfg

/weaponCFGs​/detpack​.cfg

/weaponCFGs​/conc​.cfg

/weaponCFGs​/eweb_emplaced​.cfg

/weaponCFGs​/vehicle​.cfg