Welcome, Guest! Login | Register

Making a camera , Part 2 [Print this Article]
Posted by: slackiller
Date posted: Mar 04 2006
User Rating: 5 out of 5.0
Number of views: 2430
Number of comments: 0
Description: these cameras are working monitors that turn on when a button is pushed.
Let's make a camera and have it show on a monitor. (try using the custom FGD @ EditLife )

The entity's used are a Point_camera entity, info_camera_link entity, a func_monitor brush entity,
func_button brush entity.

First build your map and a place to build your monitor. Then place the point_camera
and info_camera_link entities around your map in the areas you want shown on monitor

user posted image

Point_camera entity in the properties window you will have to name it (example: cam2a), you can also change
the FOV(field of view) to different degrees. Under the Flags option check off the " Start Off "
box if you have multiple cameras around your map,except for the first camera in the rotation.

user posted image

Info_camera_link entity in the properties window you will have to enter the name of the monitor
in the Entity Whose Material Uses_rt_cam parameter.(example: monitor).
Then in the camera name parameter enter the name of the camera (example: cam2a)

user posted image

Next let's make some buttons to switch the monitor views. Func_buttons that is.
Make a button out of a brush, then hit the "To Entity" button and tie the brush to a func_button.
Then in the properties window of the func_button go to the Outputs Tab and click on the Add...
button at bottom, on My output named click the drop down menu and select OnPressed ,
Then the Targets entities named select your camera name Camera name.(Example: cam2a).
Then the Via this input select Set On And Turn Others Off.
Under the Flags tab you can select some other options like Use Activates and Don't Move.

user posted image
user posted image

Now you can build your monitor. Make another brush (the brush you want the view of the cameras on)
and hit the "To Entity" button and make it a func_monitor. In the properties window name it the
name of your monitor (Example: monitor) Now highlight the brush and place a Dev_Monitor texture
on the face you want the picture on. Use the Texture Application Tool to do this.
Browse for texture name by typing key word in filter box. (Filter word: monitor).
As you can see below the dev_monitor textures look weird in Hammer, but show up properly in game.

user posted image

If you have more than one camera, just make additional Point_camera, info_camera_link
and func_button entities. naming each set of camera entites different.

there are different types of monitor
effects you can get.Apply the different type dev_monitor textures and compile the map to see the differences.

Ingame screenshot
user posted image

*On a side note , you can not see your self in the monitor view.
*you can not have more than one active monitor per PVS at a time in most mods.

Rate This Article
This article is currently rated: 5 out of 5.0 (1 Votes)

You have to register to rate this article.
User Comments

No User Comments

You must register to post a comment. If you have already registered, you must login.

Latest Articles
3rd person View in Multiplayer
Half-Life 2 | Coding | Client Side Tutorials
How to enable it in HL2DM

By: cct | Nov 13 2006

Making a Camera
Half-Life 2 | Level Design
This camera is good for when you join a map, it gives you a view of the map before you join a team

By: slackiller | Mar 04 2006

Making a camera , Part 2
Half-Life 2 | Level Design
these cameras are working monitors that turn on when a button is pushed.

By: slackiller | Mar 04 2006

Storing weapons on ladder
Half-Life 2 | Coding | Snippets
like Raven Sheild or BF2

By: British_Bomber | Dec 24 2005

Implementation of a string lookup table
Half-Life 2 | Coding | Snippets
A string lookup table is a set of functions that is used to convert strings to pre-defined values

By: deathz0rz | Nov 13 2005


Latest Comments
Where do we go from here
General | News
By: MIFUNE | Jun 09 2008
 
The Input/Output system
Half-Life 2 | Level Design
By: nazitaco | Dec 23 2007
 
Where do we go from here
General | News
By: Rob_F | Nov 22 2007
 
Rescaling Half-Life
Half-Life | Coding | Shared Tutorials
By: christoph | Nov 12 2007
 
GameUI
Half-Life 2 | Coding | Client Side Tutorials
By: Evil_j | Oct 29 2007
 
3 State Zoom For Any Weapon
Half-Life 2 | Coding | Server Side Tutorials
By: Ennuified | Oct 18 2007
 
Storing weapons on ladder
Half-Life 2 | Coding | Snippets
By: cct | Sep 07 2007
 
CTF Gameplay Part 1
Half-Life | Coding | Shared Tutorials
By: DarkNight | Aug 28 2007
 
CTF Gameplay Part 1
Half-Life | Coding | Shared Tutorials
By: deedok | Aug 20 2007
 
Debugging your half-life 2 mod
Half-Life 2 | Coding | Articles
By: blackshark | Aug 17 2007
 

Site Info
296 Approved Articless
5 Pending Articles
3940 Registered Members
0 People Online (19 guests)
About - Credits - Contact Us

Wavelength version: 3.0.0.9
Valid XHTML 1.0! Valid CSS!