diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-03 23:32:16 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-03 23:32:16 +0100 |
| commit | edba65625dd5823705619a2e682a99d6ad91ae8b (patch) | |
| tree | cae03d46267469d1076937ad22c7b2aec63b068e /src/hl2h.h | |
| parent | GUI: add inline colour picker control (diff) | |
| download | hl2h-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.h | 14 |
1 files changed, 10 insertions, 4 deletions
| @@ -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 | }; |
| 184 | enum EspOption { | 185 | enum EspOption { |
| 185 | ESP_OPT_SHOW_NEUTRAL = 0, | 186 | ESP_OPT_SHOW_NEUTRAL = 0, |
| @@ -212,9 +213,11 @@ struct FeatureState { | |||
| 212 | 213 | ||
| 213 | extern FeatureState g_bhop, g_abh, g_jumpbug, g_melee, g_spread, g_esp, | 214 | extern 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; |
| 216 | extern bool g_tint_world_on, g_tint_sky_on; | 217 | extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on; |
| 217 | extern int g_tint_world_rgb[3], g_tint_sky_rgb[3]; | 218 | extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3]; |
| 219 | extern bool g_fog_skybox, g_fog_disable; | ||
| 220 | extern int g_fog_rgb[3], g_fog_start, g_fog_end; | ||
| 218 | extern bool g_bhop_autostrafe; | 221 | extern bool g_bhop_autostrafe; |
| 219 | extern bool g_jumpbug_assist; | 222 | extern bool g_jumpbug_assist; |
| 220 | extern bool g_spread_no_spread; | 223 | extern bool g_spread_no_spread; |
| @@ -249,11 +252,14 @@ void fix_verified_crc(int seq, uint32_t crc); | |||
| 249 | uint32_t usercmd_checksum(const CUserCmd *c); | 252 | uint32_t usercmd_checksum(const CUserCmd *c); |
| 250 | bool find_input_global(); | 253 | bool find_input_global(); |
| 251 | void resolve_netvars(); | 254 | void resolve_netvars(); |
| 255 | bool console_cmd(const char *cmd); | ||
| 252 | bool cvar_set_int(const char *name, int value); | 256 | bool cvar_set_int(const char *name, int value); |
| 253 | void fullbright_update(); | 257 | void fullbright_update(); |
| 254 | void fullbright_invalidate(); | 258 | void fullbright_invalidate(); |
| 255 | void world_tint_update(); | 259 | void world_tint_update(); |
| 256 | void world_tint_invalidate(); | 260 | void world_tint_invalidate(); |
| 261 | void fog_update(); | ||
| 262 | void fog_invalidate(); | ||
| 257 | bool resolve_server_netvars(); | 263 | bool resolve_server_netvars(); |
| 258 | int server_entity_health(int idx, int *maxhealth, int *lifestate, void **base_out); | 264 | int server_entity_health(int idx, int *maxhealth, int *lifestate, void **base_out); |
| 259 | bool server_set_velocity_z(int idx, float vz); | 265 | bool server_set_velocity_z(int idx, float vz); |
