summaryrefslogtreecommitdiffstats
path: root/src/gui.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-03 22:22:08 +0100
committersalmonik <salmonik@tuta.io>2026-11-03 22:22:08 +0100
commit4b7dd1ca76ff0f97d53038ac9a11165f2fc68528 (patch)
treed30473e54ecbb18f14e54e7cf678e7e7dc1a2a52 /src/gui.cpp
parentVischeck: only glass materials are glass; log font/glass diagnostics (diff)
downloadhl2h-4b7dd1ca76ff0f97d53038ac9a11165f2fc68528.tar.gz
hl2h-4b7dd1ca76ff0f97d53038ac9a11165f2fc68528.zip
World: add Fullbright visual feature
- New Visuals card with the usual Active + Bind; default off. Unbound+Active is always-on, a bind makes it hold-to-brighten. - Resolve VEngineCvar004 and set mat_fullbright 1/0 through FindVar (slot 12) and ConVar::SetValue(int) (slot 11), bypassing the console cheat gate. Fall back to ClientCmd if the cvar interface is unavailable. - Reapply after map loads/respawns and persist [fullbright] active/bind. - Log on/off; show an error toast if the cvar cannot be applied.
Diffstat (limited to 'src/gui.cpp')
-rw-r--r--src/gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui.cpp b/src/gui.cpp
index b02e88a..3f1651d 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -372,6 +372,9 @@ static void build_cards() {
372 10000, &g_item_max_dist); 372 10000, &g_item_max_dist);
373 g_ctrls[g_nctrl - 1].zero_unlimited = true; 373 g_ctrls[g_nctrl - 1].zero_unlimited = true;
374 374
375 add_card(2, &g_fullbright, "Fullbright",
376 "Ignore world lighting so dark areas are visible.", true);
377
375 int spread = add_card(3, &g_spread, "Spread control", 378 int spread = add_card(3, &g_spread, "Spread control",
376 "Choose a server shot seed that tightens the cone.", 379 "Choose a server shot seed that tightens the cone.",
377 true); 380 true);