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. --- src/world.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/world.cpp') diff --git a/src/world.cpp b/src/world.cpp index a2e65cc..d071281 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -1065,7 +1065,8 @@ void *world_find_material(const char *name) { logf("chams: material %s = %p", name, mat); return mat; } - static const char *fallbacks[] = {"models/debug/debugwhite", "vgui/white", + static const char *fallbacks[] = {"debug/debugtranslucentsinglecolor", + "models/debug/debugwhite", "vgui/white", nullptr}; for (int i = 0; fallbacks[i]; i++) { mat = walk(fallbacks[i]); -- cgit v1.2.3