summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 18:43:28 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 18:43:28 +0100
commitd7201a987ba6cc56fda3d3ea69275307385f7c3e (patch)
tree54d5247ac75adc3b9241c323dbc0ca5db5d35c96 /src/hl2h.h
parentChams: style flags on the resident debug material (diff)
downloadhl2h-d7201a987ba6cc56fda3d3ea69275307385f7c3e.tar.gz
hl2h-d7201a987ba6cc56fda3d3ea69275307385f7c3e.zip
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.
Diffstat (limited to 'src/hl2h.h')
-rw-r--r--src/hl2h.h1
1 files changed, 1 insertions, 0 deletions
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);
339bool esp_is_viewmodel_index(int idx); 339bool esp_is_viewmodel_index(int idx);
340void *world_find_material(const char *name); 340void *world_find_material(const char *name);
341void chams_init(); 341void chams_init();
342void chams_preload();
342int engine_get_local_player(); 343int engine_get_local_player();
343void draw_text_col(int x, int y, const char *s, int r, int g, int b); 344void draw_text_col(int x, int y, const char *s, int r, int g, int b);
344void draw_text_small_col(int x, int y, const char *s, int r, int g, int b); 345void draw_text_small_col(int x, int y, const char *s, int r, int g, int b);