From d7201a987ba6cc56fda3d3ea69275307385f7c3e Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 18:43:28 +0100 Subject: Chams: preload style materials outside the model draw FindMaterial inside DrawModelExecute did not load the style VMTs, so every style fell back to the solid material. Preload the six style materials from outer_draw (throttled) and have the render hook use the cached pointers only. world_find_material now returns only the exact requested material; the caller falls back to the solid style. Add a vgui/white probe and per-style preload logs. --- src/hl2h.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/hl2h.h') diff --git a/src/hl2h.h b/src/hl2h.h index 1be1bb1..0f7e1f2 100644 --- a/src/hl2h.h +++ b/src/hl2h.h @@ -339,6 +339,7 @@ bool esp_is_npc_index(int idx); bool esp_is_viewmodel_index(int idx); void *world_find_material(const char *name); void chams_init(); +void chams_preload(); int engine_get_local_player(); void draw_text_col(int x, int y, const char *s, int r, int g, int b); void draw_text_small_col(int x, int y, const char *s, int r, int g, int b); -- cgit v1.2.3