how do you add a cart to bomb cart?

Discussion in 'Mapping Questions & Discussion' started by maxtraxv2, Jan 25, 2009.

  1. maxtraxv2

    maxtraxv2 L3: Member

    Messages:
    103
    Positive Ratings:
    3
    how would i go about adding a cart connected to the first one?
     
  2. zornor

    zornor L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    23
    Like in pl_frontier?

    I think what you do is just make another path_track behind your first one, then add your second carriage on it. Then set it to follow the same track as the first carriage.
     
  3. AWESOME-O

    AWESOME-O L10: Glamorous Member

    Messages:
    782
    Positive Ratings:
    67
    nope, parent it to your train.
    Way easier
     
    • Thanks Thanks x 1
  4. maxtraxv2

    maxtraxv2 L3: Member

    Messages:
    103
    Positive Ratings:
    3
    um.. alittle more info plz becase in a n00b at this becuase atm i got it to follow but you can walk throw it and doesnt quite follow the tracks also how can i link it to the Bomb_CapArea to another cap area i make for the cart to follow
     
  5. AWESOME-O

    AWESOME-O L10: Glamorous Member

    Messages:
    782
    Positive Ratings:
    67
    most entities have parent settings.
    [Parent][Input field]
    Lets say your bomb is named "awesometasticbomb".
    You would fill this in the parent field:
    [Parent][awesometasticbomb]

    A parented entity does the exact same thing as the parent.
    The parent moves forward, the child moves forward, etc.
    I hope this is clear enough.
     
  6. maxtraxv2

    maxtraxv2 L3: Member

    Messages:
    103
    Positive Ratings:
    3
    ya i got that...now did ya read what i sed....could ya explane that, because that's what im asking....
     
  7. zornor

    zornor L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    23
    he explained it well enough. Go read some articles in the Valve Developer Community.

    Oh and AWESOME-O, as awesome as your avatar is, it hasn't been Christmas for a month... :O
     
    Last edited: Jan 25, 2009
  8. Ezekel

    Ezekel L11: Posh Member

    Messages:
    818
    Positive Ratings:
    244
    basically if i understand right you want to have a carriage that is pulled by a train/bombcart

    what you do is make a 2nd track train, and use the 1st one to control it's starts/stops (i.e. when the 1st one isn't moving, it sets speed on the 2nd one to 0.
    have the carriage train use the same path nodes as the "pulling" train.
    the only other thing you ahve to do is make sure that the carriage has a track path, the correct distance behind the start point of the "pulling" train, to make sure they start (and stay) the right distance apart.

    now if there's nocorners involved, you can make the carriage and train both into a single track train.

    ok i hope that helps
     
  9. zornor

    zornor L4: Comfortable Member

    Messages:
    195
    Positive Ratings:
    23
    I tested out AWESOME-O's version. If your path is perfectly straight it'll look ok. However if not, it'll move stiffly behind the parent as if it were glued on.

    Go with Ezekel's explanation.
     
  10. maxtraxv2

    maxtraxv2 L3: Member

    Messages:
    103
    Positive Ratings:
    3
    yer so ill have to try Ezekel way
     
  11. MangyCarface

    aa MangyCarface Mapper

    Messages:
    1,616
    Positive Ratings:
    1,309
    This is way more complicated than you think, especially when you deal with control points.
    When frontier's done I'll release a prefab.
     
  12. Ezekel

    Ezekel L11: Posh Member

    Messages:
    818
    Positive Ratings:
    244
    well i did make a silly lil "train set" of a train with 2 carriages for a learning excercise for using trains