What were going to do here is have a moving point_viewcontrol. Were going to have it track Barney where ever he walks. What this is good for is having a movie like cut scene or making your own in game machinima. This is really eazy so lets get started.
The first thing your going to need is, you guessed it, is something to track. In this case we are going to use Barney. So put in a [e]generic_actor[/e] entity and make it the Barney model and give it the name of barney. Next you going to need your point_viewcontrol entity. So put that in your level (in my example map its right in front of barney). Here is the list of keyvalues to change.
Name: point_viewcontrol
Pitch Yaw Roll: click on the Point At button and point it at barney’s eyes
Entity to Look At: barney
Target Attachment Name: eyes
Path Corner: path_track01
Under the Flags tab check only Freeze Player and Infinite Hold Time.
Now that we have our point_viewcontrol ready we need to get it to move. To do this we need a path_track entity. When you put this in your level it needs to be in the same space that your point_viewcontrol is. This is because when you trigger the point_viewcontrol and want it to start moving your going to have the point_viewcontrol playing catch up to the path_track. Its eazyer to have the path_track and the point_viewcontrol right with each other so you know how its going to move. Here is the list of keyvalues to change.
Name: path_track01
Next Stop Target: path_track02
New Train Speed: This is up to you. Example map is 90
I should point out that you can also use path_corner in place of a path_track or both. The nice thing about using a path_corner is that it has a Wait Here value so you could pause your point_viewcontrol.
And thats about it. In the example map I have it set up to start as soon as you walk into the trigger. Once triggered your view will switch to the point_viewcontrol. It and barney will start moving and the point_viewcontrol will track barney.
As you can see there are endless ways to use this. The one thing that I haven’t got working yet is how to contol the speed that the point_viewcontrol looks at what you have it set to look at. It seems to have just one speed. For example, if you set the point_viewcontrol in one spot and have barney walk right pass it, it will not speed up to keep tracking right on barney’s eyes. It will move at its set speed and sort of play catch up. If anyone knows how to fix it please let me know.
Video: Half-Life 2 Tutorial: Point Viewcontrol
Latest Entries
Recent Comments
- Vista = Shit on a Stick - Part 2 1
Dave Grocott - Vista = Shit on a Stick 56
Dave Grocott, kevin, Thebadman16v [...] - The Red Ring of Death 21
sid, Preston, Scott [...] - Red Ring of Death caused by bad design 1
Henrietta - Disappearing Songs in iTunes 8
Jenna, David Ho, phil [...] - Wordpress 2.5 Gallery 1
Web Guerilla
Related Entries
Quick Bites
LittleBigPlanet levels being deleted with no warning or explanation
Sounds like Apple and the App Store.
Pastor Guns Down Family Pet For Chewing Head Off Baby Jesus Doll
Jesus H. Christ would be proud.
Best Buy Black Friday 2008 ad
Deals are not that great but its Best Buy.
Xbox 360 Cake
Its a cake, and looks like a 360. Come on!
Rock Band 2 Gameplay Trailer
Lets just hope I don't have to buy I new drum kit for it. But the new drums do look really nice.
Login
Subscribe by Email
Subscribe by RSS feed



Leave a Comment, Get a Mint.
trackback address