How could I make the cart go forward, AND BACKWARDS ?

Discussion in 'Mapping Questions & Discussion' started by Burnout6010, Oct 24, 2012.

  1. Burnout6010

    Burnout6010 L5: Dapper Member

    Messages:
    207
    Positive Ratings:
    23
    Hello

    I am currently making a Tug O' War style map and am making the cart. My problem here is that I don't want to use the Tug O' War prefab because of the text messages on screen, which I can replace by the normal and official way with "SetNumTrainCappers" sent to the train watcher by "OnNumCappersChanged"

    My first problem is that the cart is stuck half way in the ground and thus moves barely and if it ever moves, it provocates A HOLY EARTHQUAKE ON THE WHOLE MAP :O

    The second problem, is that if the cart is asked to move backwards, the console says something in the lines "Bad SetLocalAngularVelocity"

    Do I need to provide the .vmf ? :S

    Thanks !
     
  2. Jyyst

    Jyyst L1: Registered

    Messages:
    33
    Positive Ratings:
    8
    I'm pretty sure that the cart doesn't mind going through solid brushes if the track it's on says that it goes through a solid brush. Then again I have very limited experience with payload. :D
     
  3. Burnout6010

    Burnout6010 L5: Dapper Member

    Messages:
    207
    Positive Ratings:
    23
    Well actually since it's a physic prop it does interact with world geometry, this is what causes it to do the huge earthquake but I have no idea how to fix it ;_;
     
  4. Faux Rhinoceros

    aa Faux Rhinoceros Also known as Dr. Element

    Messages:
    1,479
    Positive Ratings:
    1,369
    Just a wild guess, but maybe it would move backwards if the speed is <0
     
    • Thanks Thanks x 1
  5. Burnout6010

    Burnout6010 L5: Dapper Member

    Messages:
    207
    Positive Ratings:
    23
    Thanks ! It worked :3

    Now I just have to find a way to move the cart so that I can finally prepare for a gameday but making a Tug O War cart is like planting a stick up your arse ... :O
     
  6. Idolon

    aa Idolon the worst admin

    Messages:
    1,557
    Positive Ratings:
    4,479
    To get the cart out of the ground, make sure that the path_tracks are above the ground. I don't have a reference in front of me, but I believe 48 units is the correct distance.
     
    • Thanks Thanks x 1
  7. Burnout6010

    Burnout6010 L5: Dapper Member

    Messages:
    207
    Positive Ratings:
    23
    Thank you also :)
    I wonder how I can make the CP capturing work right ... I'll look into the tug o war prefab
     
  8. henke37

    aa henke37

    Messages:
    1,927
    Positive Ratings:
    454
    Actually, the cart will travel with the origo of the func_tracktrain at the set distance above the track. You don't have to move the path_tracks if you set the distance.
     
  9. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    The height of the cart can actually be adjusted in three ways: moving the path_track, moving the func_tracktrain origin, changing the "height above track" key in the train properties. They don't all work the same either, since changing the point of rotation will affect how it behaves on hills.

    The cart shouldn't be colliding with the world if it is set high enough, unless your track props are set to be solid (they shouldn't be).
     
  10. henke37

    aa henke37

    Messages:
    1,927
    Positive Ratings:
    454
    Additionally, the settings also control where the cart generated spectator camera is.