summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-03 23:32:16 +0100
committersalmonik <salmonik@tuta.io>2026-11-03 23:32:16 +0100
commitedba65625dd5823705619a2e682a99d6ad91ae8b (patch)
treecae03d46267469d1076937ad22c7b2aec63b068e /src/hl2h.h
parentGUI: add inline colour picker control (diff)
downloadhl2h-edba65625dd5823705619a2e682a99d6ad91ae8b.tar.gz
hl2h-edba65625dd5823705619a2e682a99d6ad91ae8b.zip
World: add prop tint and fog override
- World tint now also colours prop materials (models/props*) with their own colour, covering static props and prop_physics while leaving NPC, player and weapon materials untouched. - New Fog card: fog_override colour/start/end via ClientCmd, optional skybox fog, and a Remove fog mode. Restores the map fog (fog_override 0) when disabled and re-applies after level changes. - Config sections [worldtint] prop/colour keys and [fog].
Diffstat (limited to 'src/hl2h.h')
-rw-r--r--src/hl2h.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index e90ba91..6f23221 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -179,7 +179,8 @@ enum FeatureId {
179 FEAT_ITEM_ESP = 9, 179 FEAT_ITEM_ESP = 9,
180 FEAT_FULLBRIGHT = 10, 180 FEAT_FULLBRIGHT = 10,
181 FEAT_WORLD_TINT = 11, 181 FEAT_WORLD_TINT = 11,
182 FEAT_COUNT = 12 182 FEAT_FOG = 12,
183 FEAT_COUNT = 13
183}; 184};
184enum EspOption { 185enum EspOption {
185 ESP_OPT_SHOW_NEUTRAL = 0, 186 ESP_OPT_SHOW_NEUTRAL = 0,
@@ -212,9 +213,11 @@ struct FeatureState {
212 213
213extern FeatureState g_bhop, g_abh, g_jumpbug, g_melee, g_spread, g_esp, 214extern FeatureState g_bhop, g_abh, g_jumpbug, g_melee, g_spread, g_esp,
214 g_aimbot, g_triggerbot, g_silentaim, g_item_esp, g_fullbright, 215 g_aimbot, g_triggerbot, g_silentaim, g_item_esp, g_fullbright,
215 g_world_tint; 216 g_world_tint, g_fog;
216extern bool g_tint_world_on, g_tint_sky_on; 217extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on;
217extern int g_tint_world_rgb[3], g_tint_sky_rgb[3]; 218extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3];
219extern bool g_fog_skybox, g_fog_disable;
220extern int g_fog_rgb[3], g_fog_start, g_fog_end;
218extern bool g_bhop_autostrafe; 221extern bool g_bhop_autostrafe;
219extern bool g_jumpbug_assist; 222extern bool g_jumpbug_assist;
220extern bool g_spread_no_spread; 223extern bool g_spread_no_spread;
@@ -249,11 +252,14 @@ void fix_verified_crc(int seq, uint32_t crc);
249uint32_t usercmd_checksum(const CUserCmd *c); 252uint32_t usercmd_checksum(const CUserCmd *c);
250bool find_input_global(); 253bool find_input_global();
251void resolve_netvars(); 254void resolve_netvars();
255bool console_cmd(const char *cmd);
252bool cvar_set_int(const char *name, int value); 256bool cvar_set_int(const char *name, int value);
253void fullbright_update(); 257void fullbright_update();
254void fullbright_invalidate(); 258void fullbright_invalidate();
255void world_tint_update(); 259void world_tint_update();
256void world_tint_invalidate(); 260void world_tint_invalidate();
261void fog_update();
262void fog_invalidate();
257bool resolve_server_netvars(); 263bool resolve_server_netvars();
258int server_entity_health(int idx, int *maxhealth, int *lifestate, void **base_out); 264int server_entity_health(int idx, int *maxhealth, int *lifestate, void **base_out);
259bool server_set_velocity_z(int idx, float vz); 265bool server_set_velocity_z(int idx, float vz);