summaryrefslogtreecommitdiffstats
path: root/CONTEXT.md
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 /CONTEXT.md
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 'CONTEXT.md')
-rw-r--r--CONTEXT.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/CONTEXT.md b/CONTEXT.md
index 922ea98..283784f 100644
--- a/CONTEXT.md
+++ b/CONTEXT.md
@@ -269,6 +269,20 @@ vocabulary / decisions.
269 assist deliberately writes only `m_vecAbsVelocity`; `SetAbsVelocity` syncs 269 assist deliberately writes only `m_vecAbsVelocity`; `SetAbsVelocity` syncs
270 `m_vecVelocity` after the command. 270 `m_vecVelocity` after the command.
271 271
272## World transformations
273
274### Fullbright
275
276- Visuals card with the usual Active + Bind. Unbound and Active means always
277 on; a bind makes it a hold-to-brighten key.
278- Applies the client `mat_fullbright` cvar to 1/0 through `VEngineCvar004`
279 (`FindVar` slot 12, `ConVar::SetValue(int)` slot 11), which bypasses the
280 console cheat gate. No server-side writes.
281- Re-applied after map loads/respawns (`fullbright_invalidate` on local entity
282 change) and saved as `[fullbright] active/bind`.
283- `fullbright: on/off` is logged; a missing cvar interface raises an error
284 toast instead of failing silently.
285
272## Logging 286## Logging
273 287
274- `/tmp/hl2hake.log` is opened once at startup with `"w"` (so it only contains 288- `/tmp/hl2hake.log` is opened once at startup with `"w"` (so it only contains