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 usage of VSTR mode
A bind that says "incoming" when on blue team, but changes to say "incoming vent" when on the siege_cargobarge3 map and on blue team:cg_mapCFGsis set to1cg_teamCFGsis set to2mapCFGs/generic.cfgcontainsset teamvstr_generic "unbind x"andset teamvstr_blue "bind x say_team incoming"mapCFGs/siege_cargobarge3.cfgcontainsset teamvstr_blue "bind x say_team incoming vent"
| Cvar | Description | Generic VSTR (executes first) | Specific VSTR (executes second) | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Cvar: cg_demoCFGs | 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 | 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:
|