PL cart camera.

Discussion in 'Mapping Questions & Discussion' started by Spacemonkeynz, Jun 18, 2008.

  1. Spacemonkeynz

    Spacemonkeynz L5: Dapper Member

    Messages:
    234
    Positive Ratings:
    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?
     
  2. Lord Ned

    Lord Ned L7: Fancy Member

    Messages:
    421
    Positive Ratings:
    174
    It's the same as any other cameras used over points as far as I know, just parented or whatever.
     
  3. Spacemonkeynz

    Spacemonkeynz L5: Dapper Member

    Messages:
    234
    Positive Ratings:
    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.
     
  4. Lord Ned

    Lord Ned L7: Fancy Member

    Messages:
    421
    Positive Ratings:
    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.
     
  5. DasMatze

    DasMatze L2: Junior Member

    Messages:
    87
    Positive Ratings:
    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
     
  6. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,745
    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 :|
     
  7. Spacemonkeynz

    Spacemonkeynz L5: Dapper Member

    Messages:
    234
    Positive Ratings:
    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?
     
    • Thanks Thanks x 1
  8. Laz

    Laz L7: Fancy Member

    Messages:
    461
    Positive Ratings:
    34
    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?
     
  9. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,745
    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 :/
     
  10. Laz

    Laz L7: Fancy Member

    Messages:
    461
    Positive Ratings:
    34
    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
     
  11. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,745
    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
     
  12. Laz

    Laz L7: Fancy Member

    Messages:
    461
    Positive Ratings:
    34
    so the light is a seperate light entity? a seperate model? I must have overlooked it in the goldrush vmt
     
  13. Laz

    Laz L7: Fancy Member

    Messages:
    461
    Positive Ratings:
    34
    Oh its a particle system!
     
  14. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,745
    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
     
  15. Laz

    Laz L7: Fancy Member

    Messages:
    461
    Positive Ratings:
    34
  16. Laz

    Laz L7: Fancy Member

    Messages:
    461
    Positive Ratings:
    34
    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
     
  17. Spacemonkeynz

    Spacemonkeynz L5: Dapper Member

    Messages:
    234
    Positive Ratings:
    52
    Moving the func_train origin doesn't work, the func_train needs that origin to rotate around.

    It's really strange.
     
  18. Laz

    Laz L7: Fancy Member

    Messages:
    461
    Positive Ratings:
    34
    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.