← Back to Auto CFGs

Advanced users can set auto CFGs cvars to 2. Instead of executing CFGs, VSTRs (variable strings) will be executed. These cvars are listed here in order of execution (e.g. demo CFGs are first; weapon CFGs are last).

The idea behind a VSTR is that you execute the contents of a cvar rather than the contents of a CFG file.

The advantage of VSTRs is that they can be quickly modified in-game (via binds, CFGs, or other VSTRs). This allows for greater, more dynamic customization; for example, you can execute different instructions per-team per-map.

Example: using a bind to say "incoming" when on blue team, but changing it to say "incoming vent" on siege_cargobarge2 and on blue team

  • cg_mapCFGs is set to 1
  • cg_teamCFGs is set to 2
  • mapCFGs​/generic​.cfg contains set teamvstr​_generic "unbind x" and set teamvstr​_blue "bind x say_team incoming"
  • mapCFGs​/siege_cargobarge2​.cfg contains set teamvstr​_blue "bind x say_team incoming vent"
CvarDescriptionGeneric VSTRSpecific VSTR
Cvar: cg_demoCFGs

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

demovstr​_generic

Specific VSTR:

demovstr​_demo (if playing demo)

demovstr​_notdemo (if NOT playing demo)

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

gametypevstr​_generic

Specific VSTR:

gametypevstr​_ffa

gametypevstr​_duel

gametypevstr​_powerduel

gametypevstr​_tffa

gametypevstr​_siege

gametypevstr​_ctf

Cvar: cg_mapCFGsDescription:

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

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

Generic VSTR:

mapvstr​_generic

Specific VSTR:

mapvstr​_<mapname>

Cvar: cg_teamCFGsDescription: Team-dependent VSTRs. Executes on any team change.Generic VSTR:

teamvstr​_generic

Specific VSTR:

teamvstr​_red

teamvstr​_blue

teamvstr​_spec

teamvstr​_free

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 VSTR:

objectivevstr​_<mapname>​_<team>​_generic

Examples:

ObjectiveGeneric VSTR
Objective: Any objective on Korriban, offenseGeneric VSTR: objectivevstr​_mp​_siege_korriban_o_generic
Objective: Any objective on Nar Shaddaa, defenseGeneric VSTR: objectivevstr​_siege_narshaddaa​_d_generic
Specific VSTR:

objectivevstr<mapname>​_<team>​_<objective>

Examples:

ObjectiveSpecific VSTR
Objective: First objective on Korriban, offenseSpecific VSTR: objectivevstr​_mp​_siege_korriban​_o_1
Objective: Third objective on Nar Shaddaa, defenseSpecific VSTR: objectivevstr​_siege_narshaddaa​_d_3
Cvar: cg_classCFGsDescription:

Siege class-dependent VSTRs. 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 VSTR:

classvstr​_generic​_assault

classvstr​_generic​_hw

classvstr​_generic​_demo

classvstr​_generic​_tech

classvstr​_generic​_scout

classvstr​_generic​_jedi

Specific VSTR:

classvstr​_<mapname>​_<team>​_<class>

Examples:

ClassSpecific VSTR
Class: Offense demo on KorribanSpecific VSTR: classvstr​_mp​_siege_korriban​_o_demo
Class: Defense HW on DesertSpecific VSTR: classvstr​_mp​_siege_desert​_d_hw
Cvar: cg_ctfPosCFGs

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

Generic CFG: ctfposvstr​_generic

Specific CFG:

ctfposvstr​_base

ctfposvstr​_chase

ctfposvstr​_offense

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

Generic VSTR: weaponvstr​_generic

Specific VSTR:

weaponvstr​_freespec

weaponvstr​_stunbaton

weaponvstr​_melee

weaponvstr​_saber

weaponvstr​_pistol

weaponvstr​_e11

weaponvstr​_disruptor

weaponvstr​_bowcaster

weaponvstr​_repeater

weaponvstr​_demp

weaponvstr​_golan

weaponvstr​_rocket

weaponvstr​_thermal

weaponvstr​_mine

weaponvstr​_detpack

weaponvstr​_conc

weaponvstr​_eweb_emplaced

weaponvstr​_vehicle

← Back to Auto CFGs