From 8cd07c04efafcd3e927a21152d10e9fafea54517 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 14:04:39 +0100 Subject: Transitions: per-trigger targets and 3D wireframe; FOV range fixes - Each changelevel trigger now shows its own target map. The trigger whose target is the map we came from is marked "<- map"; the forward one is "-> map". No more appending one global previous-map line to every box. - Draw the volume as a projected 8-corner / 12-edge wireframe with the tag above its highest visible corner instead of a screen-space rectangle. - Camera FOV is 40..140 (stock 75) and viewmodel FOV 20..120 (stock 54); 0 is no longer allowed and old configs using 0 migrate to the stock value. - Log the mat_monitorgamma readback via ICvar so we can tell whether the command is rejected or the OS/compositor ignores the gamma ramp. --- src/menu.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'src/menu.cpp') diff --git a/src/menu.cpp b/src/menu.cpp index 4e521f7..ead5f2d 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -79,8 +79,8 @@ bool g_aim_punch = true; // compensate server aim punch bool g_spread_engine = true; // zero the pellet random draws, not just the seed bool g_auto_crouchjump = false; bool g_edge_jump = false; -int g_fov_camera = 0; // 0 = game default -int g_fov_viewmodel = 0; // 0 = game default (54) +int g_fov_camera = 75; // HL2's stock camera FOV +int g_fov_viewmodel = 54; // HL2's stock viewmodel FOV int g_gamma = 22; // mat_monitorgamma x10, stock 2.2 int g_esp_col_hostile[3] = {255, 60, 60}; int g_esp_col_neutral[3] = {220, 220, 220}; @@ -393,20 +393,27 @@ static bool config_load() { } if (in_view) { int *dst = nullptr; - int lo = 0, hi = 0; + int lo = 0, hi = 0, stock = 0; if (strcmp(key, "fov") == 0) { dst = &g_fov_camera; + lo = 40; hi = 140; + stock = 75; } else if (strcmp(key, "vmfov") == 0) { dst = &g_fov_viewmodel; + lo = 20; hi = 120; + stock = 54; } else if (strcmp(key, "gamma") == 0) { dst = &g_gamma; lo = 16; hi = 30; + stock = 22; } if (dst) { int v = atoi(val); + if (v <= 0) + v = stock; // old configs used 0 as "off" if (v < lo) v = lo; if (v > hi) v = hi; *dst = v; @@ -595,8 +602,8 @@ void config_reset_defaults() { g_spread_engine = true; g_auto_crouchjump = false; g_edge_jump = false; - g_fov_camera = 0; - g_fov_viewmodel = 0; + g_fov_camera = 75; + g_fov_viewmodel = 54; g_gamma = 22; g_esp_col_hostile[0] = 255; g_esp_col_hostile[1] = 60; -- cgit v1.2.3