summaryrefslogtreecommitdiffstats
path: root/src/hl2h.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-03 23:51:02 +0100
committersalmonik <salmonik@tuta.io>2026-11-03 23:51:02 +0100
commit95b5be2299b332917ae63c45252cb9744a3460cd (patch)
tree1da6d89d8ddf9f724368738a4969f8dd308cbcce /src/hl2h.cpp
parentAI: treat scripted NPCs as neutral; Lamarr neutral (diff)
downloadhl2h-95b5be2299b332917ae63c45252cb9744a3460cd.tar.gz
hl2h-95b5be2299b332917ae63c45252cb9744a3460cd.zip
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/<name>... 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).
Diffstat (limited to '')
-rw-r--r--src/hl2h.cpp1
1 files changed, 1 insertions, 0 deletions
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) {
592 fullbright_invalidate(); 592 fullbright_invalidate();
593 world_tint_invalidate(); 593 world_tint_invalidate();
594 fog_invalidate(); 594 fog_invalidate();
595 skybox_invalidate();
595 } 596 }
596 597
597 if (feature_active(FEAT_SPREAD)) { 598 if (feature_active(FEAT_SPREAD)) {