From 49df428d95a7c443d418d5b7e2a93af599b54f76 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 17:51:20 +0100 Subject: Add chams - Hook IVModelRender::DrawModelExecute (VEngineModel016 slot 19) and force models/debug/debugwhite for NPC models, identified by ModelRenderInfo_t::entity_index. - Two passes: MATERIAL_VAR_IGNOREZ through walls, then normal depth, with IMaterial::ColorModulate for the configured colour; restore the shared material's flag/colour afterwards. - Material lookup via the IMaterialSystem list, FindMaterial fallback. - New Chams feature/card with Through walls and colour; [chams] config. - Remove the temporary ammo/projectile/fuse diagnostics. --- src/gui.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui.cpp') diff --git a/src/gui.cpp b/src/gui.cpp index 2f832a2..a38f537 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -423,6 +423,13 @@ static void build_cards() { add_toggle(proj, "Blast radius", "Draw the projectile's damage radius on the ground.", &g_proj_radius); + int chams = add_card(2, &g_chams, "Chams", + "Flat-colour NPC models.", true); + add_toggle(chams, "Through walls", + "Draw a second pass with the depth test disabled.", + &g_chams_walls); + add_color(chams, "Colour", "Chams colour.", g_chams_rgb); + int view = add_card(2, nullptr, "Camera / display", "Camera FOV, viewmodel FOV and HDR brightness.", true); add_slider(view, "Camera FOV", -- cgit v1.2.3