aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-12 02:37:03 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-12 02:37:03 +0000
commit4da39d6714da0c09750f6197048322815a61a3d1 (patch)
tree03226f16c16cb7fdadf6d2f3a42f82f455705e4e /Northstar.CustomServers/mod
parent36c08fa5f800e3fdff4690417ce756c20e6ec8f5 (diff)
downloadNorthstarMods-4da39d6714da0c09750f6197048322815a61a3d1.tar.gz
NorthstarMods-4da39d6714da0c09750f6197048322815a61a3d1.zip
fix angel city skybox fog
Diffstat (limited to 'Northstar.CustomServers/mod')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city.nut7
1 files changed, 7 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city.nut
index 87c9ea985..e7cc82241 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/levels/mp_angel_city.nut
@@ -13,6 +13,7 @@ void function CodeCallback_MapInit()
// there are some really busted titan startspawns that are on the fucking other side of the map from where they should be, so we remove them
AddSpawnCallback( "info_spawnpoint_titan_start", TrimBadTitanStartSpawns )
+ AddSpawnCallback( "sky_camera", FixSkycamFog )
}
void function TrimBadTitanStartSpawns( entity spawn )
@@ -24,4 +25,10 @@ void function TrimBadTitanStartSpawns( entity spawn )
if ( Distance2D( spawn.GetOrigin(), comparisonOrigin ) >= 2000.0 )
spawn.Destroy()
+}
+
+void function FixSkycamFog( entity skycam )
+{
+ if ( skycam.GetTargetName() == "skybox_cam_level" )
+ skycam.kv.useworldfog = 1
} \ No newline at end of file