From 892329ec78acf4d4d63749e8c248227aabc2aded Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 18:17:55 +0100 Subject: Chams: model-safe styles and a dedicated viewmodel material VGUI/white materials do not draw skinned models, so every viewmodel style except the model debug one made the hands/weapon disappear. Use model debug materials for all styles: wireframe, additive vertex colour, translucent single colour, translucent vertex colour, MRM fullbright. The viewmodel always uses debug/debugtranslucentsinglecolor. A missing style now falls back to that material instead of vgui/white. --- CONTEXT.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'CONTEXT.md') diff --git a/CONTEXT.md b/CONTEXT.md index 9233517..ce79800 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -299,11 +299,17 @@ vocabulary / decisions. - Material lookup walks the `IMaterialSystem` list (`world_find_material`), with `FindMaterial` (slot 71) as the fallback. The **exact requested style** is tried first (resident, then loaded on demand), and only if that fails does it - fall back to `models/debug/debugwhite`/`vgui/white`. Styles: Flat, Wireframe, - Additive glow, Solid, White. 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). + fall back to `debug/debugtranslucentsinglecolor`/debugwhite/vgui white. + Styles: 0 Flat (`models/debug/debugwhite`), 1 Wireframe + (`debug/debugwireframe`), 2 Additive (`debug/additivevertexcolorvertexalpha`), + 3 Solid (`debug/debugtranslucentsinglecolor`), 4 White + (`debug/debugtranslucentvertexcolor`), 5 Fullbright + (`debug/debugmrmfullbright2`). The chosen material name is logged. +- `Viewmodel (hands/weapon)` applies the override to entities whose class + contains `viewmodel` or whose model path is `.../v_...`. Viewmodels always + use the model-safe solid material (`debug/debugtranslucentsinglecolor`); + VGUI/white materials do not draw skinned models and made the hands/weapon + disappear. Only the normal-depth pass is used. - Feature is off by default; `[chams] active/bind/walls/viewmodel/material/r/g/b`, with Through walls, Viewmodel, a Material dropdown and colour in the Visuals card. -- cgit v1.2.3