shake point_viewcontrol?

Any aspects of level design for the Source engine.

shake point_viewcontrol?

Postby andy4729 on Sun Mar 18, 2012 7:58 pm

Anyone know of a way to shake a point_viewcontrol? Env_shake doesn't work

Andy
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: shake point_viewcontrol?

Postby jangalomph on Sun Mar 18, 2012 8:44 pm

Are you trying to shake the player?
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: shake point_viewcontrol?

Postby andy4729 on Sun Mar 18, 2012 8:50 pm

The player walks near to an elevator model (small elevator, 1 person size), env_fade fades to black, point_viewcontrol enabled which is inside the elevator model, point_viewcontrol moves down with elevator tracktrain. I want the viewcontrol to shake as it's meant to be a rickety old elevator.
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: shake point_viewcontrol?

Postby jangalomph on Sun Mar 18, 2012 8:53 pm

parent the env_shake to it, and in flags check Global Shake.
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: shake point_viewcontrol?

Postby andy4729 on Sun Mar 18, 2012 8:58 pm

To the train or the viewcontrol?
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: shake point_viewcontrol?

Postby Dives on Sun Mar 18, 2012 9:31 pm

I've run into this problem before. Env_shakes don't effect point_viewcontrols, so I devised an incredibly hacky (but very effective) method. Put a nodraw physbox inside of a nodraw containment box with 2 units of room on all sides for the physbox to get knocked around inside. Parent the camera to the physbox. Then make an env_shake with the physics, global shake, and in air flags checked.

The physbox will be jolted all around inside it's containment box, shaking the camera.
Current project: Journey to Splash Mountain [L4D2]
User avatar
Dives
May Contain Skills
May Contain Skills
 
Joined: Sat Feb 28, 2009 9:54 pm
Location: Moorpark, CA

Re: shake point_viewcontrol?

Postby andy4729 on Sun Mar 18, 2012 9:39 pm

When you say a nodraw containment box, do you just mean a func_detail or is there actually a brush entity for such a thing?
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: shake point_viewcontrol?

Postby jangalomph on Sun Mar 18, 2012 9:46 pm

make containment box func_brush so it can be parented.
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: shake point_viewcontrol?

Postby Dives on Sun Mar 18, 2012 9:54 pm

Why would you want to parent the containment box? It doesn't move. It should be func_detail.
Also remember that the physbox is the pivot point for the camera, so you'll want to put the camera pretty close or else it'll swing pretty wildly.
Current project: Journey to Splash Mountain [L4D2]
User avatar
Dives
May Contain Skills
May Contain Skills
 
Joined: Sat Feb 28, 2009 9:54 pm
Location: Moorpark, CA

Re: shake point_viewcontrol?

Postby jangalomph on Sun Mar 18, 2012 9:58 pm

because he wants it to move with the elevator.
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: shake point_viewcontrol?

Postby andy4729 on Sun Mar 18, 2012 10:13 pm

jangalomph wrote:because he wants it to move with the elevator.


Yeah, surely the camera needs to be parented to the physbox and the containment needs to be parented to the elevator? I just tried it like that and the camera went mental and I'm not even sure where it ended up looking... :\
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: shake point_viewcontrol?

Postby zombie@computer on Sun Mar 18, 2012 10:16 pm

why not make the elevator follow a 'bumpy' path?
When you are up to your neck in shit, keep your head up high
User avatar
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Oss, netherlands

Re: shake point_viewcontrol?

Postby andy4729 on Sun Mar 18, 2012 10:25 pm

That would involve a HUGE amount of path_tracks though :\
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: shake point_viewcontrol?

Postby andy4729 on Sun Mar 18, 2012 10:55 pm

Ok, I've managed to get it shaking with the camera moving down with the elevator. Only problem is that when the camera is enabled, it moves so that you are looking about 45 degrees to one side instead of straight out of the elevator. It's also been shifted down slightly...
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Return to Hammer Editor Help

Who is online

Users browsing this forum: Google [Bot]