diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 18:43:28 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 18:43:28 +0100 |
| commit | d7201a987ba6cc56fda3d3ea69275307385f7c3e (patch) | |
| tree | 54d5247ac75adc3b9241c323dbc0ca5db5d35c96 /src/hl2h.h | |
| parent | Chams: style flags on the resident debug material (diff) | |
| download | hl2h-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -339,6 +339,7 @@ bool esp_is_npc_index(int idx); | |||
| 339 | bool esp_is_viewmodel_index(int idx); | 339 | bool esp_is_viewmodel_index(int idx); |
| 340 | void *world_find_material(const char *name); | 340 | void *world_find_material(const char *name); |
| 341 | void chams_init(); | 341 | void chams_init(); |
| 342 | void chams_preload(); | ||
| 342 | int engine_get_local_player(); | 343 | int engine_get_local_player(); |
| 343 | void draw_text_col(int x, int y, const char *s, int r, int g, int b); | 344 | void draw_text_col(int x, int y, const char *s, int r, int g, int b); |
| 344 | void draw_text_small_col(int x, int y, const char *s, int r, int g, int b); | 345 | void draw_text_small_col(int x, int y, const char *s, int r, int g, int b); |
