summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 19:36:24 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 19:36:24 +0100
commitb661a8dfd2c02bea54d8581ebb35d0fb3267867c (patch)
tree817760a933a14cc0e6446299424a017a9a1c88cf /src/hl2h.h
parentChams: keep additive viewmodel visible on bright backgrounds (diff)
downloadhl2h-b661a8dfd2c02bea54d8581ebb35d0fb3267867c.tar.gz
hl2h-b661a8dfd2c02bea54d8581ebb35d0fb3267867c.zip
Chams: per-colour alpha and a softer viewmodel additive base
- Colour picker gains an optional alpha bar (checkerboard preview, #RRGGBBAA readout); add_color_alpha is used for the chams colours. Chams colours are now r,g,b,a and chams_apply sets $alpha plus MATERIAL_VAR_TRANSLUCENT when alpha < 255. Config stores vis_a / inv_a / vm a. - The additive viewmodel base is now a faint translucent tint (alpha/8) instead of an opaque fill, so additive/Fullbright stay see-through and the viewmodel no longer becomes a solid blob. Fullbright whitening reduced to 25% so blue stays blue instead of turning lavender.
Diffstat (limited to 'src/hl2h.h')
-rw-r--r--src/hl2h.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index 4c9012f..f7274f1 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -236,15 +236,16 @@ extern bool g_proj_fuse, g_proj_radius;
236struct ChamsGroup { 236struct ChamsGroup {
237 bool vis_on; 237 bool vis_on;
238 int vis_mat; 238 int vis_mat;
239 int vis_rgb[3]; 239 int vis_rgb[4]; // r, g, b, a (0..255)
240 bool inv_on; 240 bool inv_on;
241 int inv_mat; 241 int inv_mat;
242 int inv_rgb[3]; 242 int inv_rgb[4];
243}; 243};
244extern ChamsGroup g_chams_hostile, g_chams_neutral, g_chams_friendly; 244extern ChamsGroup g_chams_hostile, g_chams_neutral, g_chams_friendly;
245extern bool g_chams_viewmodel; 245extern bool g_chams_viewmodel;
246extern int g_chams_vm_mat; 246extern int g_chams_vm_mat;
247extern int g_chams_vm_rgb[3];extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on; 247extern int g_chams_vm_rgb[4];
248extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on;
248extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3]; 249extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3];
249extern bool g_fog_skybox, g_fog_disable; 250extern bool g_fog_skybox, g_fog_disable;
250extern int g_fog_rgb[3], g_fog_start, g_fog_end; 251extern int g_fog_rgb[3], g_fog_start, g_fog_end;