• Announcements

    • Brentonator

      Forum Rules (Please Read)

      Hello everyone and welcome to the No More Room In Hell Forums! We greatly appreciate your interest and support. Please feel free to begin post and become a part of this community. But please make sure that you read and understand the following rules so things can stay as clean and as orderly as possible around here. These rules are expected to be follow by any and all members at all times. Disobeying these rules will result in disciplinary action by a moderator. #1. Off color remarks are acceptable but can be deemed inappropriate at the discretion of the moderators. #2. Flaming and disrespecting other members of this community or this mod is strictly prohibited. #3. Please do not post links relating to warez or illegal downloading. #4. No offensive content is to be posted (gore, dead babies, porn). #5. Please do not spam topics to increase your post count. #6. No excessively large signatures. Signatures that violate this will be modified. #7. Signatures are not to be used as a spamming tool. If your signature's sole purpose is to annoy or distract other members, it will be removed. #8. Please do your part to be as friendly, respectful, and helpful to anyone and everyone on this forum. #9. Your posts may be removed at any time at our sole discretion. #10. Remember the terms of your registration...a copy is posted below but may not represent the latest version of our terms of use. #11. No advertising other communities or products. Have fun.
Sign in to follow this  
Followers 0
Tron762

Pathing a helicopter

14 posts in this topic

Hi all,

I'm attempting to add in a helicopter to a map.

I want it to spawn, fly along a path_track and then disappear at the end of the path.

I have a vague working example using a prop_dynamic which I will endeavour to post later on. I can get the helicopter to spawn and move along the path, however the issue I'm struggling to overcome is that the helicopter's orientation is wrong - it moves sideways along it's path.

I've tried modifying the orientation type but it doesn't seem to help - is there something I'm missing? Does anyone have a working example of a dynamic prop following a path and correctly orienting itself I could take a peek at?

Any help much appreciated!

- Tron.

Share this post


Link to post
Share on other sites

Just rotate it in hammer so it looks the wrong way then it'll be the correct way ingame

Share this post


Link to post
Share on other sites

Thanks for the swift reply!

I've tried doing this - it doesn't seem to work, unless I'm doing something wrong? What settings should the on the path_track ?

Share this post


Link to post
Share on other sites

I cant think of the top of my head so I'll check when i get home you could look up a simple track train tutorial it may explain it there

Share this post


Link to post
Share on other sites

func_track trains are quirky, when it spawns ingame it automaticly rotates by 90/180 cant remeber which, theres nothing you can do to change the way it likes play, so you just ottta compensate in hammer man, cant remember which way it rotates either but once you know which way and by how much, then adjust accordingly

voila

Share this post


Link to post
Share on other sites

Oh forgot to mention, if your not turning any corners and orientation doesnt need to change, go to flags and enable "fixed orientation" if ur using a straight line you may as well, should have posted this one first, but hey both are valid solutions.

Share this post


Link to post
Share on other sites

Truth be told, none of what is said will work.

You need to hire a licensed pilot.

Jokes aside, the vehicle needs to be facing east ( to the right in the lower right hand view box) in hammer for it to spawn facing west in game.


Share this post


Link to post
Share on other sites

You need to hire a licensed pilot.

but we already have the best pilot.. he can fly sideways and backwards without looking where he's going

Share this post


Link to post
Share on other sites

In my opinion, you don't ever need to have it facing a weird direction in hammer. In your func_tracktrain class 'change angles' to 'never (fixed orientation)', then in the flags check 'fixed orientation'. Then on each path_track you put class 'orientation type' to 'no change'. Obviously with this setting it will never change orientation, but you can change this by changing the orientation type in the path_track class.

Share this post


Link to post
Share on other sites

Thanks for the suggestions everyone.

I think I might have worked it out - I've changed the orientation to be the same as the path_track's, then gone along my path and made each path_track face the direction I want for that leg of the journey :)

I've been having graphics card issues at the moment so I haven't had a chance to test this out fully though. I hope to have a map ready to show with this working at some point soon!

Share this post


Link to post
Share on other sites

Best to always build your track_train facing east in hammer.

Share this post


Link to post
Share on other sites

Ok - I will take a look and see which way mine are facing and whether it would be do-able to change without too much upheaval.

Why is it that they should face east?

Share this post


Link to post
Share on other sites

the trains use path_tracks for directions/angles to work out which way to face. Have it facing east in hammer and it will auto rotate to the direction of which the path_tracks go when ingame.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0