diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 18:58:13 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 18:58:13 +0100 |
| commit | 5ddc9eb9d02ddc84e4c3a45bdcb2941513fb0346 (patch) | |
| tree | c83aa673488b0628e0f63cdc8b82e45c7693be9d /src/hl2h.h | |
| parent | Chams: apply model-safe styles to the viewmodel (diff) | |
| download | hl2h-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 'src/hl2h.h')
| -rw-r--r-- | src/hl2h.h | 19 |
1 files changed, 15 insertions, 4 deletions
| @@ -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; |
| 232 | extern bool g_proj_fuse, g_proj_radius; | 232 | extern bool g_proj_fuse, g_proj_radius; |
| 233 | extern 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. | ||
| 236 | struct 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 | }; | ||
| 244 | extern ChamsGroup g_chams_hostile, g_chams_neutral, g_chams_friendly; | ||
| 234 | extern bool g_chams_viewmodel; | 245 | extern bool g_chams_viewmodel; |
| 235 | extern int g_chams_mat_index; | 246 | extern int g_chams_vm_mat; |
| 236 | extern int g_chams_rgb[3]; | 247 | extern int g_chams_vm_rgb[3];extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on; |
| 237 | extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on; | ||
| 238 | extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3]; | 248 | extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3]; |
| 239 | extern bool g_fog_skybox, g_fog_disable; | 249 | extern bool g_fog_skybox, g_fog_disable; |
| 240 | extern int g_fog_rgb[3], g_fog_start, g_fog_end; | 250 | extern int g_fog_rgb[3], g_fog_start, g_fog_end; |
| @@ -337,6 +347,7 @@ void silentaim_reset_lock(); | |||
| 337 | void *entitylist_get(int idx); | 347 | void *entitylist_get(int idx); |
| 338 | bool esp_is_npc_index(int idx); | 348 | bool esp_is_npc_index(int idx); |
| 339 | bool esp_is_viewmodel_index(int idx); | 349 | bool esp_is_viewmodel_index(int idx); |
| 350 | int esp_npc_relation(int idx); | ||
| 340 | void *world_find_material(const char *name); | 351 | void *world_find_material(const char *name); |
| 341 | void chams_init(); | 352 | void chams_init(); |
| 342 | void chams_preload(); | 353 | void chams_preload(); |
