path_track with a parent

Discussion in 'Mapping Questions & Discussion' started by M0rtanius, May 30, 2010.

  1. M0rtanius

    M0rtanius L1: Registered

    Messages:
    14
    Positive Ratings:
    0
    I'm trying to assign path_track a parent and when I do so, the train mothing toward it doesn't move toward it at all, instead it moves towards the center of the map.

    Does anyone know how to fix this? Or maybe a workaround?

    I'm trying to make a snake map (where you have a huge snake made of several trains that the team can control in different directions).

    I hate how if you start to do anyting non-trivial in Hammer it starts breaking and doesn't work for shit. Why did they even give path_track a parent field when you can't put anything in there?
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    It's just how it is. I experimented extensively with things in this realm, and when a track is parented it effectively goes dormant and the train is confused and heads for the origin.

    As for giving it a parent, they didn't really, it's just that everything can be parented by default. Some things break when you do so, though.
     
  3. M0rtanius

    M0rtanius L1: Registered

    Messages:
    14
    Positive Ratings:
    0
    That sucks, is there any other way? Will env_entity_maker to make the path_tracks work?

    I'll have to try it out and see.
     
  4. megawac

    megawac L4: Comfortable Member

    Messages:
    180
    Positive Ratings:
    29
    Can you use point_teleport on path_tracks? Might be worth checking out.
     
  5. M0rtanius

    M0rtanius L1: Registered

    Messages:
    14
    Positive Ratings:
    0
    I just checked and no, you can't. The train just stops and can't find the teleported path_track.

    It appears that path_tracks are all hard coded into the map at spawn and cannot be changed after.

    I'll try using another way now, with doors spawned using env_entity_maker.
     
  6. CapellanCitizen

    CapellanCitizen L2: Junior Member

    Messages:
    77
    Positive Ratings:
    16
    There is a switch option on path_tracks so that you can choose between two different tracks, but that's about it. If you do use it, and have a train like you said, you will also need some entity trickery to prevent the train cars from separating.