Book Image

Source SDK Game Development Essentials

By : Brett Joseph Bernier
Book Image

Source SDK Game Development Essentials

By: Brett Joseph Bernier

Overview of this book

Table of Contents (18 chapters)
Source SDK Game Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Point camera


Point_camera entities project an image onto a monitor. These can be useful to simulate a TV broadcast, video call, or security camera system. There are three main parts to a point_camera system:

  • Camera (point_camera)

  • Monitor (any brush-based entity)

  • Camera link (info_camera_link)

The point_camera entity is the actual camera. You simply give it a name and aim it at whatever target you want it to look at. The monitor is a special texture that will display the point_camera's image, and the info_camera_link entity specifies which camera is displayed onto the monitor texture. Let's walk through creating a simple security system.

Create a two-room map with a light in each room. In one room, place a point_camera entity and something for it to look at. Name the point_camera entity sec_cam01 and click on the look at button to easily set the camera's target. In my example, I have the camera looking at an npc_antlion.

In the other room, place an info_player_start entity and a television-sized...