Func_train problem


Genie
07-05-2003, 02:17 PM
Well, I've been thinking of somthing to do latly and the thought of roller-coasters in a Sven Coop map sounds like fun. Well I've experimented a bit and I can get the "press button to start" and get the car to follow the path I'm laying out however I don't know how to rotate or adjust the car in any way. turning left/right, pitch, roll, etc.

Anyone know how to do it? I tried adjusting the entities but I cant get it to work. Any ideas guys?

BloodBurp
07-05-2003, 07:52 PM
Hey Genie try looking at this tutorial from Vladitude
http://www.vlatitude.com/tutorials.php?tutID=20
hope this help but what from I gather you may not be able to pivot or rotate using the func_train entity...

07-05-2003, 09:48 PM
I think the func_train rotates to the settings of the path_track whereas func_tracktrain draws a line between the 2 and rotates itself so its along that line.

Genie
07-06-2003, 06:18 AM
I read the tutorial and everything but I still can't get it to turn it, just moves itself along constantly facing the same direction.:(

Genie
07-09-2003, 11:59 AM
bumpzors before it diezors

Draft Dodger
07-09-2003, 01:07 PM
You need to use func_tracktrain instead of func_train. Then the train will always point to the next path_track.

Genie
07-09-2003, 03:41 PM
Ok I did what you said but now the train just warps under the level. I did'nt change any settings, just the train entity. What's wrong?

07-09-2003, 03:43 PM
the path_track has an option "teleport to next point" or something like that. mebe thats ur prob?

tommy14
07-11-2003, 02:56 AM
use func track train.

set the wheel base further apart to get a smoother track action. put it closer together to get "funky chicken dance" at tight corners..... :D

the bank angle sets the banking action, play with it on a small test map.

you NEED to use path tracks, and not corners....

other notes:
//*
//*if startspeed is not 0, then maybe no train sounds
//*

//*
//*distance between wheels relates to stability in turns
//*
wheels(integer) : "Distance between the wheels" : 50
//*
//*relates to how high above track ORIGIN brush for train runs.
//*
height(integer) : "Height above track" : 4
//*
//*note: max speed is >2000 or things go wrong
//*and if startspeed is not 0, then maybe no train sounds
//*
startspeed(integer) : "Initial speed" : 0
speed(integer) : "Speed (units per second)" : 64
dmg(integer) : "Damage on crush" : 0
volume(integer) : "Volume (10 = loudest)" : 10
//*stabilty of turn Banking depends on distance between wheels
bank(string) : "Bank angle on turns" : "0"
_minlight(string) : "Minimum light level" : "0"
]


//* A func_train will not be rendered correctly once it has gone about
//* 4096 units from its spawn position (ie where it sits in worldcraft
//* space). An invisible func_train will still be correctly moving
//* around your train path, it is only the visible piece of the train
//* that gets 'stuck'.
//* So try having your train sitting in the middle of worldcraft's
//* space when you compile the level.
//*(note- a func_train gets its lighting info from where it sits when
//* compiled)

Genie
07-11-2003, 06:10 AM
Ok I did everything you said but now when I compile the map. I set a regular button to trigger the start of the train. I press the button but the train doesn't move. I've checked the names and everything and I cant figure out why it wont start.

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.