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=. --- src/gui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui.cpp') diff --git a/src/gui.cpp b/src/gui.cpp index a38f537..4a949f0 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -428,6 +428,12 @@ static void build_cards() { add_toggle(chams, "Through walls", "Draw a second pass with the depth test disabled.", &g_chams_walls); + add_toggle(chams, "Viewmodel (hands/weapon)", + "Apply chams to the first-person hands and weapon too.", + &g_chams_viewmodel); + add_slider(chams, "Material", + "0 Flat, 1 Wireframe, 2 Additive glow, 3 Solid, 4 White.", 0, 4, + &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