path_track with a parent

M0rtanius

L1: Registered
May 17, 2009
14
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?
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
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.
 

M0rtanius

L1: Registered
May 17, 2009
14
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.
 

megawac

L4: Comfortable Member
Oct 2, 2009
180
29
Can you use point_teleport on path_tracks? Might be worth checking out.
 

M0rtanius

L1: Registered
May 17, 2009
14
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.
 

CapellanCitizen

L2: Junior Member
Mar 31, 2010
77
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.