summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 18:58:13 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 18:58:13 +0100
commit5ddc9eb9d02ddc84e4c3a45bdcb2941513fb0346 (patch)
treec83aa673488b0628e0f63cdc8b82e45c7693be9d /src/hl2h.h
parentChams: apply model-safe styles to the viewmodel (diff)
downloadhl2h-5ddc9eb9d02ddc84e4c3a45bdcb2941513fb0346.tar.gz
hl2h-5ddc9eb9d02ddc84e4c3a45bdcb2941513fb0346.zip
Chams: per-relationship, visible/invisible styles and viewmodel
- Hostile/neutral/friendly each have independent visible and through-wall settings: enable, style and colour. Viewmodel has its own enable/style/colour. - Styles: Flat, Wireframe, Additive, Solid, White, Fullbright, Glow outline. Additive uses the model solid material + ADDITIVE flag (the VGUI additive was invisible on NPCs). White/fullbright are solid-based, so the viewmodel no longer disappears/checkerboards. Glow outline adds a wireframe contour pass for depth. - Config: [chams] active/bind, [chams_hostile|neutral|friendly] vis/inv settings, [chams_vm]. GUI sections for each group.
Diffstat (limited to '')
-rw-r--r--src/hl2h.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index 0f7e1f2..4c9012f 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -230,11 +230,21 @@ extern FeatureState g_bhop, g_abh, g_jumpbug, g_melee, g_spread, g_esp,
230 g_aimbot, g_triggerbot, g_silentaim, g_item_esp, g_fullbright, 230 g_aimbot, g_triggerbot, g_silentaim, g_item_esp, g_fullbright,
231 g_world_tint, g_fog, g_skybox, g_projectiles, g_chams; 231 g_world_tint, g_fog, g_skybox, g_projectiles, g_chams;
232extern bool g_proj_fuse, g_proj_radius; 232extern bool g_proj_fuse, g_proj_radius;
233extern bool g_chams_walls; 233
234// Chams settings per relationship, and separate visible / through-wall
235// (invisible) material and colour. The viewmodel has a single style.
236struct ChamsGroup {
237 bool vis_on;
238 int vis_mat;
239 int vis_rgb[3];
240 bool inv_on;
241 int inv_mat;
242 int inv_rgb[3];
243};
244extern ChamsGroup g_chams_hostile, g_chams_neutral, g_chams_friendly;
234extern bool g_chams_viewmodel; 245extern bool g_chams_viewmodel;
235extern int g_chams_mat_index; 246extern int g_chams_vm_mat;
236extern int g_chams_rgb[3]; 247extern int g_chams_vm_rgb[3];extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on;
237extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on;
238extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3]; 248extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3];
239extern bool g_fog_skybox, g_fog_disable; 249extern bool g_fog_skybox, g_fog_disable;
240extern int g_fog_rgb[3], g_fog_start, g_fog_end; 250extern int g_fog_rgb[3], g_fog_start, g_fog_end;
@@ -337,6 +347,7 @@ void silentaim_reset_lock();
337void *entitylist_get(int idx); 347void *entitylist_get(int idx);
338bool esp_is_npc_index(int idx); 348bool esp_is_npc_index(int idx);
339bool esp_is_viewmodel_index(int idx); 349bool esp_is_viewmodel_index(int idx);
350int esp_npc_relation(int idx);
340void *world_find_material(const char *name); 351void *world_find_material(const char *name);
341void chams_init(); 352void chams_init();
342void chams_preload(); 353void chams_preload();