CPointCamera
Jump to navigation
Jump to search
Code classes:
CPointCamera
CBaseEntity
(all ents)
CPointCamera
is a code class in all Source games except .
Classnames:
point_camera
- Multiple entities use this entity to show a view of the map from another place.
All of the following entities use point_camera
:
Bug: In rendering issues can occur when portals are involved.
- Fix: Turning the camera off and on may fix it.
Bug: Players are not rendered if they aren't visible to the viewing player after accounting for PVS, viewcone, and occlusion checks.
Flags[edit | edit source]
- 1: Start Off - Camera is not active immediately.
Keyvalues[edit | edit source]
- FOV
(FOV)
<float>
- How wide the camera's view is in degrees.
Resolution (Not in FGD)(resolution)
<float>
- No effect.
- Screen Aspect Ratio
(UseScreenAspectRatio)
<boolean>
- To do: Description.
- Fog Enable
(fogEnable)
<boolean>
- Enables fog in the camera view.
- Fog Color
(fogColor)
<color255>
- Self-explanatory.
- Fog Start
(fogStart)
<float>
- Distance from the camera at which fog will start to fade in.
- Fog End
(fogEnd)
<float>
- Distance from the camera at which the fog is at full density.
- Fog Max Density [0..1]
(fogMaxDensity)
<float>
- How dense fog can be. 1.0 = full density (all pixels are the color of Fog Color beyond Fog End), 0.5 = half density.
Inputs[edit | edit source]
- ChangeFOV
<string>
- Takes two numbers, first is what to change FOV to, and the second is how many seconds to spend shifting to the new FOV.
- SetOnAndTurnOthersOff
- Turns this camera on, and turns all other
point_camera
s off. - SetOn
- Turns the camera on. (Does not affect the HUD camera in .)
- SetOff
- Turns the camera off. (Does not affect the HUD camera in .)
- Activate (only available in )
- Makes this camera the one used by
asw_stylincam
. - Deactivate (only available in )
- Shuts camera off on the HUD and any other objects in the map.