Creating a Repeating Razor Train?

Any aspects of level design for the Source engine.

Creating a Repeating Razor Train?

Postby Zaughi on Sun Jul 22, 2012 9:39 pm

I'm trying to make a Razor Train that continues to keep coming from one side of the tunnel to the other, first seen in the coast levels of Half-Life 2. There is a tutorial on the Half-Wit 2 website, but it's down. I'm using prop_dynamics, but I'm unsure of how to make them move along a track, or even the correct entities to use to make the track. Can anyone help with this?
Zaughi
Regular
Regular
 
Joined: Wed Jun 06, 2012 8:37 pm

Re: Creating a Repeating Razor Train?

Postby Armageddon on Sun Jul 22, 2012 10:21 pm

Do you want it to be infinite or just one train that comes and goes?
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Creating a Repeating Razor Train?

Postby Zaughi on Sun Jul 22, 2012 10:27 pm

I expected that. Just one train, it appears at one end of the tunnel, goes across a track and disappears at the other end, and repeats that infinitely, not an infinitely long train. Also, I need to parent two Metropolice to it, in the middle car of the train, which is the passenger part of the train. (combine_train2b or something, it's open on both sides.)
Zaughi
Regular
Regular
 
Joined: Wed Jun 06, 2012 8:37 pm

Re: Creating a Repeating Razor Train?

Postby jangalomph on Sun Jul 22, 2012 10:37 pm

func_tracktrain and path_tracks, and then use the teleport entity to teleport the train back over, or use a point_template to keep respawning and killing the entities.
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: Creating a Repeating Razor Train?

Postby Armageddon on Sun Jul 22, 2012 10:40 pm

Then you set up a path_track with a func_tracktrain and then parent the prop_dynamic train models to the func_tracktrain. Then You have a trigger_once that starts the func_tracktrain forward, at the end of the path you should have a trigger_multiple set up for models under the flags, that has the output, OnStartTouch<!activator<kill. So that the train models will be removed.
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Creating a Repeating Razor Train?

Postby Zaughi on Sun Jul 22, 2012 10:45 pm

Okay, thanks much.
Zaughi
Regular
Regular
 
Joined: Wed Jun 06, 2012 8:37 pm

Re: Creating a Repeating Razor Train?

Postby LordDz on Mon Jul 23, 2012 4:18 am

jangalomph wrote:func_tracktrain and path_tracks, and then use the teleport entity to teleport the train back over, or use a point_template to keep respawning and killing the entities.


Why? Doesn't the teleport TO flag in the path_track work? Just set the first path_track to have that flag.
User avatar
LordDz
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Not a serious post ---->

Re: Creating a Repeating Razor Train?

Postby Armageddon on Mon Jul 23, 2012 4:50 am

Oh didn't read you wanted to do something like that. Forget the trigger_multiple that kills things when they touch it just do what Dz said.
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Creating a Repeating Razor Train?

Postby Zaughi on Mon Jul 23, 2012 6:01 pm

One more thing: You can't parent NPCs, but I need three Combine Soldiers to be on the passenger platform, plus I need them to go through a tools/black brush (Disable collision somehow?). How can I do this?
Zaughi
Regular
Regular
 
Joined: Wed Jun 06, 2012 8:37 pm

Re: Creating a Repeating Razor Train?

Postby Zaughi on Mon Jul 23, 2012 6:23 pm

Okay, just had a BIG problem. First off, the train moves sideways. Secondly, part of the train and most of the passenger car is underground. I parented both to the func_tracktrain, what did I do wrong?
Zaughi
Regular
Regular
 
Joined: Wed Jun 06, 2012 8:37 pm

Re: Creating a Repeating Razor Train?

Postby Gary on Mon Jul 23, 2012 6:46 pm

If the soldiers don't have to do anything complex(shoot and stuff), you could just make them prop_dynamic.
Have a question related to modding or something I posted? Something that needs staff attention? PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Creating a Repeating Razor Train?

Postby Zaughi on Mon Jul 23, 2012 8:12 pm

Throw grenades, and shoot. :(

But the train moving sideways, and being underground, how do I fix that?
Zaughi
Regular
Regular
 
Joined: Wed Jun 06, 2012 8:37 pm

Re: Creating a Repeating Razor Train?

Postby LordDz on Mon Jul 23, 2012 8:58 pm

Check the flag "Fixed Orientation" or make it face north?

And put the path_tracks slightly up in the air, the train follows them with its origin, not its wheels.
User avatar
LordDz
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Not a serious post ---->

Re: Creating a Repeating Razor Train?

Postby Zaughi on Mon Jul 23, 2012 11:43 pm

Got it, thanks.
Zaughi
Regular
Regular
 
Joined: Wed Jun 06, 2012 8:37 pm

Re: Creating a Repeating Razor Train?

Postby LordDz on Wed Jul 25, 2012 1:35 am

Did you manage to parent the npcs?
Because you can parent players..
User avatar
LordDz
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Mon Sep 01, 2008 12:28 pm
Location: Not a serious post ---->

Return to Hammer Editor Help

Who is online

Users browsing this forum: Baggs, Bing [Bot], Google [Bot], greenman