sky_camera
sky_camera is an existing point entity available
with all versions of Mapbase.Outside of Mapbase, sky_camera is static. Once it’s been placed, the skybox can’t move. You can move the sky_camera itself through things like logic_measure_movement, but it doesn’t update the skybox. There is a trick to update the skybox by continuously removing and respawning the sky_camera, but this is a complicated workaround and usually isn’t very smooth. sky_camera is also not capable of rotating the skybox.
Moving skyboxes
In Mapbase, sky_camera has been updated to support parenting and continuous updating. There’s also a new keyvalue to use the sky_camera’s angles for actual skybox rotation rather than fog direction. Together, these changes create the ability for the skybox to move around freely relative to the world.
Multiple skyboxes
Multiple skybox support from HL2: Downfall has been added as well. If you have multiple sky_camera entities, you can assign one of them as the main one with the ‘Master’ keyvalue, and then activate one of them later using the ActivateSkybox input.
Being able to set different skyboxes between different players is not yet supported.
KeyValues
The name of the entity to move with. NOTE: sky_camera's position is normally only updated on spawn. Fire the ForceUpdate or StartUpdating inputs to update the sky_camera's position! You might also want to enable Use Angles for Sky.
Causes the skybox to use a solid color instead of the sky texture specified in worldspawn. Blended alpha is unfortunately not supported, but an alpha of '0' disables the effect and any alpha greater than that (e.g. 255) enables the effect.
Uses angles for actual skybox rotation, as if the world were tilted on this entity's axis.
None
Clips the sky.
Flags
Inputs
Forces the 3D skybox to update with this sky_camera's position.
Begins per-tick skybox updating, which is needed if you want this sky_camera to move.
Ends per-tick skybox updating if it was enabled before.
Makes this sky_camera the active skybox.
Stops making this sky_camera the active skybox if it is currently the active skybox, which causes the sky to clear.
Sets the fog start distance.
Sets the fog end distance.
Turns the fog on.
Turns the fog off.
Sets the primary fog color.
Sets the secondary fog color.
Sets the far clip plane distance.
Sets the sky color.
Copies the target fog controller's exact fog parameters.
Copies the target fog controller's exact fog parameters.
Sets the skybox scale.
