From b3003583a1a66f5ae2eae63763f285635b43d58f Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 18:08:07 +0100 Subject: Chams: material styles and viewmodel support - Material selector 0..4: debugwhite, debug wireframe (ignorez), vgui white_additive, debugtranslucentsinglecolor, vgui/white; cached per index with a debugwhite fallback. - Add "Viewmodel (hands/weapon)" toggle; viewmodel entities (class contains viewmodel or model path /v_...) get a normal-depth chams pass. - [chams] gains viewmodel= and material=. --- CONTEXT.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'CONTEXT.md') diff --git a/CONTEXT.md b/CONTEXT.md index 60a5a91..c95095b 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -293,12 +293,17 @@ vocabulary / decisions. materials ignore ColorModulate. The shared material's flag and colour are restored to (false, white) after the draw. - Material lookup walks the `IMaterialSystem` list (`world_find_material`), with - `FindMaterial` (slot 71) as the fallback. Candidates, in order: - `models/debug/debugwhite{2,3}`, `vgui/white`, - `debug/debugtranslucentsinglecolor`, `debug/debugwireframevertexcolorignorez`. - The chosen material name is logged. -- Feature is off by default; `[chams] active/bind/walls/r/g/b`, with a - "Through walls" toggle and colour picker in the Visuals card. + `FindMaterial` (slot 71) as the fallback. The style index selects: + 0 `models/debug/debugwhite`, 1 `debug/debugwireframevertexcolorignorez`, + 2 `vgui/white_additive`, 3 `debug/debugtranslucentsinglecolor`, + 4 `vgui/white`; if the requested style is unavailable it falls back to the + first available debugwhite candidate. The chosen material name is logged. +- `Viewmodel (hands/weapon)` also applies the override to entities whose class + contains `viewmodel` or whose model path is `.../v_...`. The viewmodel gets + only the normal-depth pass (no ignorez). +- Feature is off by default; `[chams] active/bind/walls/viewmodel/material/r/g/b`, + with Through walls, Viewmodel, Material (0..4) and colour in the Visuals + card. - This is a flat material override, not stencil outlines; depth handling is the simple ignorez/normal two-pass. -- cgit v1.2.3