PL cart camera.

Spacemonkeynz

L5: Dapper Member
Jan 31, 2008
234
52
Have some of you noticed that when playing a custom PL map, one of the cart has it's own camera? (If you die and cycle through the cameras, one is in the bomb cart and moves along with it.)

Does anyone know how to change the position of this camera?
 

Lord Ned

L420: High Member
Feb 11, 2008
421
174
It's the same as any other cameras used over points as far as I know, just parented or whatever.
 

Spacemonkeynz

L5: Dapper Member
Jan 31, 2008
234
52
No, there is no camera entity in hammer, just the func_train. But it the game there is a camera view from the center of the func_train.
 

Lord Ned

L420: High Member
Feb 11, 2008
421
174
De compile the custom one then. Cause there's a camera model that I think is used for it.



Use the camera that goes over control points. I'ld look it up, but I don't have time, leaving for vacation, sorry.
 

DasMatze

L2: Junior Member
May 17, 2008
87
31
The spectator camera entitiy is info_observer_point. The camera that is already on the payload cart works like the camera when watching a player. You can rotate it around the cart. At least so it works on all the payload (test-) maps I have done.

DasMatze
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
See I had that when I was using the official cart for hoodoo then when I changed to snipergen's model it stopped being a certain radius away and is now fixed inside the model :|
 

Spacemonkeynz

L5: Dapper Member
Jan 31, 2008
234
52
I found a solution, it appears the location of the camera it determined from the origin of the func_train, just move the origin to where you would like the camera.

As for the direction of the camera, I haven't tested it yet, so it's just a guess, but maybe the angle of the func_train?
 

Laz

L420: High Member
Jul 5, 2008
461
35
I use the default bomb cart model, but the camera is inside the model. if I understand correctly, there should be a default cam added in automaticly that lets you turn about the cart? like you would follow players, so no camere adding is needed?

I;ve added some observer points now, so Im guessing the default cam won't switch back to the inside cart model?
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
There is a way to fix this, I fixed mine, the problem is I fixed it by copying my entity system from an older version that was absolutely identical as far as I could see :/
 

Laz

L420: High Member
Jul 5, 2008
461
35
camera still inside the cart :( what do you mean copying your entity system? all the entities from your map replaced by those from an earlier version? Perhaps if I rebuild my cart from scratch, that would fix it? or not?

Oh, one more thing! how do I get the flashlight on top of the cart to start going off when it's pushed, they do it on goldrush, I have no idea how... Gonna keep looking in the decompiled goldrush for now :p
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Yeah I removed my cart system and replaced it with an earlier version I had that worked, I'd obviously changed something but I've no idea what.

The light on top can be turned on/off one of the trigger brushes you have that detect when a player is near simply give them the following output:

OnStartTouchAll | <light name> | Start
OnEndTouchAll | <light name> | Stop
 

Laz

L420: High Member
Jul 5, 2008
461
35
The light on top can be turned on/off one of the trigger brushes you have that detect when a player is near simply give them the following output:

OnStartTouchAll | <light name> | Start
OnEndTouchAll | <light name> | Stop

so the light is a seperate light entity? a seperate model? I must have overlooked it in the goldrush vmt
 

YM

LVL100 YM
aa
Dec 5, 2007
7,135
6,056
Ah, I thought you already knew what it was, my bad. Its as you say, a particle system, as is smoke from chimneys, steam from the rockets but not the dispencer beam, thats a mapobj_cart_dispenser. But you already knew that didn't you
 

Laz

L420: High Member
Jul 5, 2008
461
35
my camera worked, but my cart didn't. I adjusted the func_tracktrain brush's origin so the cart would go nicely on the track, and added the 3 Manual values you have to insert with turning smartedit off.
my cart worked again, but my camera is broken again. stuck inside the cart. So the cause of this issue, is the traintrack's origin, or those 3 values. I'll continue research tonight :p
 

Spacemonkeynz

L5: Dapper Member
Jan 31, 2008
234
52
Moving the func_train origin doesn't work, the func_train needs that origin to rotate around.

It's really strange.
 

Laz

L420: High Member
Jul 5, 2008
461
35
I moved the origin originally to adjust the hight above the track, as I thought the brush is aligned with the track nodes on it's origin. so I wouldn't have to adjust the height of my entire track, or would not have to expiriment with values for the height-above-track key on the func_tracktrain.
but indeed, I do not think this is the cause for the strange camera behaviour.