Skip to content

Commit

Permalink
feat: record SAR cvar differences
Browse files Browse the repository at this point in the history
and default precision to 2 because I hate fun!
  • Loading branch information
ThisAMJ committed Aug 7, 2024
1 parent d955ec6 commit 1d39f7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Features/Hud/Hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Variable sar_hud_y("sar_hud_y", "2", 0, "Y padding of HUD.\n", FCVAR_DONTRECORD)
Variable sar_hud_font_index("sar_hud_font_index", "0", 0, "Font index of HUD.\n", FCVAR_DONTRECORD);
Variable sar_hud_font_color("sar_hud_font_color", "255 255 255 255", "RGBA font color of HUD.\n", FCVAR_DONTRECORD);

Variable sar_hud_precision("sar_hud_precision", "3", 0, "Precision of HUD numbers.\n", FCVAR_DONTRECORD);
Variable sar_hud_velocity_precision("sar_hud_velocity_precision", "2", 0, "Precision of velocity HUD numbers.\n", FCVAR_DONTRECORD);
Variable sar_hud_precision("sar_hud_precision", "2", 0, "Precision of HUD numbers.\n");
Variable sar_hud_velocity_precision("sar_hud_velocity_precision", "2", 0, "Precision of velocity HUD numbers.\n");

Variable sar_hud_rainbow("sar_hud_rainbow", "-1", -1, 1, "Enables the rainbow HUD mode. -1 = default, 0 = disable, 1 = enable.\n", FCVAR_DONTRECORD);
static bool g_rainbow = false;
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/EngineDemoRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ DETOUR(EngineDemoRecorder::SetSignonState, int state) {
for (ConCommandBase *cmd = tier1->m_pConCommandList; cmd; cmd = cmd->m_pNext) {
if (!cmd->m_bRegistered) continue;
if (cmd->IsCommand()) continue;
if (Utils::StartsWith(cmd->m_pszName, "sar_")) continue;
if (cmd->m_nFlags & FCVAR_DONTRECORD) continue;
ConVar *var = (ConVar *)cmd;
if (!strcmp(var->m_pszString, var->m_pszDefaultValue)) continue;
RecordInitialVal(var->m_pszName, var->m_pszString);
Expand Down

0 comments on commit 1d39f7c

Please sign in to comment.