func_monitor
An implementation of a real-time surveillance monitor that displays video from a camera. The monitor can be black-and-white.
Spawnflags
SF_MONITOR_START_ON |
1 (initially turned on) |
SF_MONITOR_PASSABLE |
2 (intangible) |
SF_MONITOR_USEABLE |
4 (pressing +use toggles fullscreen mode, as in Duke Nukem 3D) |
SF_MONITOR_NOASPECT |
8 (use the horizontal FOV value for both sides; produces a square camera feed) |
SF_MONITOR_MONOCHROME |
16 (black-and-white screen) |
Options
camera |
Name of the camera. The camera can be an info_target entity with spawnflag 1 set. |
fov |
Field of view. |
Usage Details
- Monitors can show themselves through the camera, but you should avoid abusing this feature, because it affects performance.
- Note that a black-and-white monitor will display colour video in fullscreen mode.
- The surveillance camera can be switched in-game using trigger_changetarget. A monitor shines in the dark when it is on and does not shine when it is off.
- Monitors should be assigned a special kind of texture, whose name starts with monitor.
- If video from the monitor is upside down, simply turn the texture around in the map editor.