CVAR Last edited 2 months ago2024-06-30 00:24:09 UTC

A CVAR (console variable) is a way for the engine to store values that can be accessed globally by any part of the game code, including the user-facing part through the console.

Here's a simplified illustration of the relationship:
code ⇄ CVAR ← console
CVARs are set with console commands and scripts. The game engine loads CVARs by reading the file config.cfg, and saves CVARs between sessions by writing over that same file with both CVARs and key bindings (bind command). Skill related CVARs are read from skill.cfg.

Comments

You must log in to post a comment. You can login or register a new account.