A little help please. Created 15 years ago2009-05-30 13:11:03 UTC by Tycell Tycell

Created 15 years ago2009-05-30 13:11:03 UTC by Tycell Tycell

Posted 15 years ago2009-05-30 13:11:03 UTC Post #267666
Hi all,

I have a source issue (HL EP2 SP) I was wondering if anyone had an answer too. I know its possible (its done in Ep1) but I am not sure how to do it myself.

Basically I want a map to load and the player to start in the Ep2 jeep. The player will be locked in at this point and have no control - not even the ability to get out. The car will start and drive foward through several physics objects - note the car doesnt actually have to drive, I could just drag it foward and play a driving sound.

Once through the objects the car will come to a stop. At this point the player will be ejected from the car and the car will cease to function so player cant get in.

If anyone knows how to do this or knows of a tut that will help please speak up. :)
  • Thanks
Posted 15 years ago2009-05-30 16:09:40 UTC Post #267670
Why not put a camera in the car instead and freeze the player until you need to start the actual level play. You can make the camera "eject" from the jeep with no problem , i think.

Somebody help him out on the exact entity set-up. I forgot which camera he needs. Parent the camera to the jeep, move the jeep (drag it if you want, laughing my ass off), and then eject the camera and resume from player prospective, game-on!

peace
dunivan
Posted 15 years ago2009-05-30 18:18:10 UTC Post #267675
I considered a camera - but I would prefer the interactivity of the player being sat in the car while they drove through, being able to look around. Also a camera would mean having to teleport the player - which isnt that hard.

Right now I will settle for an answer to my dilema. :) - If you can give me instructions onto how to do what I have described with cameras then please do. :)
Posted 15 years ago2009-06-10 14:23:48 UTC Post #268173
You can get a basic work-around for it.
Here's what i would do:

Make a func_tracktrain to follow a set of paths.
First path: Jeep path
Second path: camera eject path

Parent the jeep to the tracktrain and parent the point_viewcontrol to the jeep. Start your tracktrain moving on the course you want your jeep to follow and when it gets to the last path_track in the jeep part, have it do the following:

Say the last path_track in the jeep thing is called: jeep_end and the viewcontrol is called camera_start. Make sure you have Camera_start set to teleport, else the controls will get all wierd.

jeep_end:
OnPass > viewcontrol > parent > tracktrain
OnPass > jeep > disable? (Not too sure on that one, or how to kill the parent-relationship)

anyway, after that's all done, you can just end the camera sequence at the playerstarts head because the player model isnt visible when you're 3rd person anyway. If you need a picture, i'll draw one up. I'm at work right now else i'd test it myself.
Good luck.
You may want to do some research into wether or not the jeep can follow paths itself. I just think that if you parent it to a tracktrain, the jeep won't really bounce on the ground and stuff. You know.
Tetsu0 Tetsu0Positive Chaos
You must be logged in to post a response.