From edba65625dd5823705619a2e682a99d6ad91ae8b Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 3 Nov 2026 23:32:16 +0100 Subject: 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]. --- src/hl2h.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/hl2h.h') 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 { FEAT_ITEM_ESP = 9, FEAT_FULLBRIGHT = 10, FEAT_WORLD_TINT = 11, - FEAT_COUNT = 12 + FEAT_FOG = 12, + FEAT_COUNT = 13 }; enum EspOption { ESP_OPT_SHOW_NEUTRAL = 0, @@ -212,9 +213,11 @@ struct FeatureState { extern FeatureState g_bhop, g_abh, g_jumpbug, g_melee, g_spread, g_esp, g_aimbot, g_triggerbot, g_silentaim, g_item_esp, g_fullbright, - g_world_tint; -extern bool g_tint_world_on, g_tint_sky_on; -extern int g_tint_world_rgb[3], g_tint_sky_rgb[3]; + g_world_tint, g_fog; +extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on; +extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3]; +extern bool g_fog_skybox, g_fog_disable; +extern int g_fog_rgb[3], g_fog_start, g_fog_end; extern bool g_bhop_autostrafe; extern bool g_jumpbug_assist; extern bool g_spread_no_spread; @@ -249,11 +252,14 @@ void fix_verified_crc(int seq, uint32_t crc); uint32_t usercmd_checksum(const CUserCmd *c); bool find_input_global(); void resolve_netvars(); +bool console_cmd(const char *cmd); bool cvar_set_int(const char *name, int value); void fullbright_update(); void fullbright_invalidate(); void world_tint_update(); void world_tint_invalidate(); +void fog_update(); +void fog_invalidate(); bool resolve_server_netvars(); int server_entity_health(int idx, int *maxhealth, int *lifestate, void **base_out); bool server_set_velocity_z(int idx, float vz); -- cgit v1.2.3