Skip to content

Add documentation for undocumented cvars (game.cfg / README) - #1187

Open
Nord1cWarr1or wants to merge 1 commit into
rehlds:masterfrom
Nord1cWarr1or:docs/missing-cvars
Open

Add documentation for undocumented cvars (game.cfg / README)#1187
Nord1cWarr1or wants to merge 1 commit into
rehlds:masterfrom
Nord1cWarr1or:docs/missing-cvars

Conversation

@Nord1cWarr1or

Copy link
Copy Markdown
Member

Summary

Systematic comparison of all cvar definitions in the codebase (dlls/game.cpp, bot/cs_bot_init.cpp, hostage/hostage.cpp, tutor.cpp, voice_gamemgr.cpp) against README.md, dist/game.cfg and dist/game_init.cfg revealed several cvars missing from the documentation:

  • mp_chat_loc_fallback — had no own entry anywhere; was only mentioned inside the NOTE of mp_location_area_info. Added a standalone block next to it in game.cfg and a table row in README.
  • mp_logkills — documented in README but missing from dist/game.cfg.
  • bot_mimic / bot_mimic_yaw_offset — REGAMEDLL_ADD debug cvars (registered in Bot_RegisterCVars() under #ifdef REGAMEDLL_ADD), never documented anywhere.
  • hostage_debug / hostage_stop — debug cvars for improved CZ hostage AI, never documented anywhere. Noted that they require hostage_ai_enable 1.

Not included: game_version (informational cvar, intentionally left undocumented).

Both files updated in the existing documentation style. No code changes.

- mp_chat_loc_fallback: own entry next to mp_location_area_info
  (previously mentioned only as a NOTE inside its description)
- mp_logkills: present in README but was missing from game.cfg
- bot_mimic / bot_mimic_yaw_offset: REGAMEDLL_ADD debug cvars,
  never documented anywhere
- hostage_debug / hostage_stop: improved CZ hostage AI debug cvars,
  never documented anywhere (require hostage_ai_enable 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant