From 95b5be2299b332917ae63c45252cb9744a3460cd Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 3 Nov 2026 23:51:02 +0100 Subject: World: add skybox changer New Visuals -> Skybox card with a runtime sv_skyname override using the same mechanism as the stock skybox_swapper entity. The choice list is the HL2 skybox set extracted from the game VPKs. The map's own sky is captured from loaded materials (SkyBox group, parsing skybox/... face names) before the first override, so turning the feature off or picking "Map default" restores it; a level change restores it implicitly. Sky changes invalidate the world tint so new sky materials are tinted as well. GUI: add a CK_CHOICE control (value box with < / > zones). --- src/hl2h.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/hl2h.cpp') diff --git a/src/hl2h.cpp b/src/hl2h.cpp index 3f1acb4..4ba1af3 100644 --- a/src/hl2h.cpp +++ b/src/hl2h.cpp @@ -592,6 +592,7 @@ static void do_move(int seq, float frametime) { fullbright_invalidate(); world_tint_invalidate(); fog_invalidate(); + skybox_invalidate(); } if (feature_active(FEAT_SPREAD)) { -- cgit v1.2.3