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/gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui.cpp') diff --git a/src/gui.cpp b/src/gui.cpp index 4adc440..9c09bec 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -454,8 +454,8 @@ static void build_cards() { "Apply chams to the first-person hands and weapon too.", &g_chams_viewmodel); static const char *const chams_mat_names[] = { - "Flat", "Wireframe", "Additive glow", "Solid", "White"}; - add_dropdown(chams, "Material", "Chams material.", chams_mat_names, 5, + "Flat", "Wireframe", "Additive glow", "Solid", "White", "Fullbright"}; + add_dropdown(chams, "Material", "Chams material.", chams_mat_names, 6, &g_chams_mat_index); add_color(chams, "Colour", "Chams colour.", g_chams_rgb); int view = add_card(2, nullptr, "Camera / display", -- cgit v1.2.3