Auto CFGs - VSTR Mode
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 to1
cg_teamCFGs
is set to2
mapCFGs/generic.cfg
containsset teamvstr_generic "unbind x"
andset teamvstr_blue "bind x say_team incoming"
mapCFGs/siege_cargobarge2.cfg
containsset teamvstr_blue "bind x say_team incoming vent"
Cvar | Description | Generic VSTR | Specific VSTR | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Cvar: cg_demoCFGs New in version 1.11.0! | Description: VSTRs dependent on whether a demo is playing. Executes on any map load (not restart). | Generic VSTR:
| Specific VSTR:
| ||||||||||||
Cvar: cg_gametypeCFGs | Description: Gametype-dependent VSTRs. Executes on any map load (not restart). | Generic VSTR:
| Specific VSTR:
| ||||||||||||
Cvar: cg_mapCFGs | Description: Map-dependent VSTRs. Executes on any map load (not restart). Make sure to include | Generic VSTR:
| Specific VSTR:
| ||||||||||||
Cvar: cg_teamCFGs | Description: Team-dependent VSTRs. Executes on any team change. | Generic VSTR:
| Specific VSTR:
| ||||||||||||
Cvar: cg_objectiveCFGs | Description: Siege objective-dependent CFGs. Executes when joining or an objective is completed. Make sure to include | Generic VSTR:
Examples:
| Specific VSTR:
Examples:
| ||||||||||||
Cvar: cg_classCFGs | Description: Siege class-dependent VSTRs. Executes on respawn, but not on consecutive respawns as the same class. Make sure to include | Generic VSTR:
| Specific VSTR:
Examples:
| ||||||||||||
Cvar: cg_ctfPosCFGs New in version 1.11.0! | Description: CTF position-dependent VSTRs (on supporting servers). Executes when position is set and on map change. | Generic CFG: | Specific CFG:
| ||||||||||||
Cvar: cg_weaponCFGs | Description: 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: | Specific VSTR:
|