summaryrefslogtreecommitdiffstats
path: root/src/gui.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 17:51:20 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 17:51:20 +0100
commit49df428d95a7c443d418d5b7e2a93af599b54f76 (patch)
tree604e64048aacc5e2b86f441e03e5e5ab8600bef2 /src/gui.cpp
parentItems: skip the CNetworkArray length header for m_iAmmo/m_hMyWeapons (diff)
downloadhl2h-49df428d95a7c443d418d5b7e2a93af599b54f76.tar.gz
hl2h-49df428d95a7c443d418d5b7e2a93af599b54f76.zip
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.
Diffstat (limited to '')
-rw-r--r--src/gui.cpp7
1 files changed, 7 insertions, 0 deletions
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() {
423 add_toggle(proj, "Blast radius", 423 add_toggle(proj, "Blast radius",
424 "Draw the projectile's damage radius on the ground.", &g_proj_radius); 424 "Draw the projectile's damage radius on the ground.", &g_proj_radius);
425 425
426 int chams = add_card(2, &g_chams, "Chams",
427 "Flat-colour NPC models.", true);
428 add_toggle(chams, "Through walls",
429 "Draw a second pass with the depth test disabled.",
430 &g_chams_walls);
431 add_color(chams, "Colour", "Chams colour.", g_chams_rgb);
432
426 int view = add_card(2, nullptr, "Camera / display", 433 int view = add_card(2, nullptr, "Camera / display",
427 "Camera FOV, viewmodel FOV and HDR brightness.", true); 434 "Camera FOV, viewmodel FOV and HDR brightness.", true);
428 add_slider(view, "Camera FOV", 435 add_slider(view, "Camera FOV",