diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 18:17:55 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 18:17:55 +0100 |
| commit | 892329ec78acf4d4d63749e8c248227aabc2aded (patch) | |
| tree | 187490c992e028221599e43d1846399c4c34462d /CONTEXT.md | |
| parent | Chams: exact material styles, GUI dropdown, viewmodel hookup (diff) | |
| download | hl2h-892329ec78acf4d4d63749e8c248227aabc2aded.tar.gz hl2h-892329ec78acf4d4d63749e8c248227aabc2aded.zip | |
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.
Diffstat (limited to 'CONTEXT.md')
| -rw-r--r-- | CONTEXT.md | 16 |
1 files changed, 11 insertions, 5 deletions
| @@ -299,11 +299,17 @@ vocabulary / decisions. | |||
| 299 | - Material lookup walks the `IMaterialSystem` list (`world_find_material`), with | 299 | - Material lookup walks the `IMaterialSystem` list (`world_find_material`), with |
| 300 | `FindMaterial` (slot 71) as the fallback. The **exact requested style** is | 300 | `FindMaterial` (slot 71) as the fallback. The **exact requested style** is |
| 301 | tried first (resident, then loaded on demand), and only if that fails does it | 301 | tried first (resident, then loaded on demand), and only if that fails does it |
| 302 | fall back to `models/debug/debugwhite`/`vgui/white`. Styles: Flat, Wireframe, | 302 | fall back to `debug/debugtranslucentsinglecolor`/debugwhite/vgui white. |
| 303 | Additive glow, Solid, White. The chosen material name is logged. | 303 | Styles: 0 Flat (`models/debug/debugwhite`), 1 Wireframe |
| 304 | - `Viewmodel (hands/weapon)` also applies the override to entities whose class | 304 | (`debug/debugwireframe`), 2 Additive (`debug/additivevertexcolorvertexalpha`), |
| 305 | contains `viewmodel` or whose model path is `.../v_...`. The viewmodel gets | 305 | 3 Solid (`debug/debugtranslucentsinglecolor`), 4 White |
| 306 | only the normal-depth pass (no ignorez). | 306 | (`debug/debugtranslucentvertexcolor`), 5 Fullbright |
| 307 | (`debug/debugmrmfullbright2`). The chosen material name is logged. | ||
| 308 | - `Viewmodel (hands/weapon)` applies the override to entities whose class | ||
| 309 | contains `viewmodel` or whose model path is `.../v_...`. Viewmodels always | ||
| 310 | use the model-safe solid material (`debug/debugtranslucentsinglecolor`); | ||
| 311 | VGUI/white materials do not draw skinned models and made the hands/weapon | ||
| 312 | disappear. Only the normal-depth pass is used. | ||
| 307 | - Feature is off by default; `[chams] active/bind/walls/viewmodel/material/r/g/b`, | 313 | - Feature is off by default; `[chams] active/bind/walls/viewmodel/material/r/g/b`, |
| 308 | with Through walls, Viewmodel, a Material dropdown and colour in the Visuals | 314 | with Through walls, Viewmodel, a Material dropdown and colour in the Visuals |
| 309 | card. | 315 | card. |
