Game Development Community

Player on Jetbike

by Mark Grooby · in Torque Game Engine · 11/04/2006 (6:04 am) · 6 replies

Hey people, sorry for posting so many threads lately.
Well, I have one final question.
I managed to get my Jetbike into starter.racing and fully working.
I was wondering, how could I mount a player onto it?
Could it be done by script?
Or would I actually have to edit the jetbike.dts file.
If it could be done by script, could somebody maybe give me some example script?
Gotta go to bed now, I'm tired.
Thanx in advance

=D

EDIT: BTW, I don't want to start off as a player, and then walk over to the jetbike an mount it, I just want the jetbike to look like somebody is riding on it.

#1
11/04/2006 (9:57 am)
Hi Mark,

Editing the DTS is certainly one option, but another possibility might be to attach your objects together using Anthony Lovell's script or some variation of Ramen-Sama's resource. Here are some links . . .

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9093

www.garagegames.com/mg/forums/result.thread.php?qt=47074

These probably won't be direct solutions to your problem, but take a look at the scripts for them and see if you can extract the useful bits. I played with both of these resources a couple of months ago and was surprised how well they worked.

Good luck
#2
11/04/2006 (5:24 pm)
Umm, I checked them out, but I guess its not excactly what I'm looking for. Thanks Anyway

I actually wanted the jetbike and the person riding it to be one object, not two objects moving in tandem.
Would it work if I used "mountImage" to mount the rider? If I could get a model of somebody sitting down that is. And also, I have a model of this guy, and I have the dsq file to make him sit down, but is there anyway I could use that dsq with a 3D modelling program?
#3
11/07/2006 (1:23 am)
Umm... Anybody?
#4
11/07/2006 (5:14 am)
Mark,

I can't speak for anyone else on the forums, but I guess I'm not really understanding what you need. Sorry to be so dense, but what you've asked for sounds like two separate and conflicting things.

If you really want the jetbike and rider to be one object, there is only one solution, make a .DTS object that incorporates both shapes in the same mesh. That's it, no other options.

However, you also mentioned mountImage, which is confusing since mountImage is a different beast alltogether. In fact it's one or more objects affixed to another object, at artist-specified points/nodes -- with a few caveats. One of those being that mounted riders don't cast shadows by default (or at least that's how it worked the last time I checked).

Again, I'm not sure why you don't want your players to start as bipeds and mount their favorite jetbike. You could easily create spawn points directly over several seperate jetbikes that would plop them on their bike without the walking.

Conversely, I'm not sure why you don't just modify your jetbike mesh by adding a driver and re-exporting from Max or Milkshape (or whatever). You could use a nice player/vehicle selection system to start everyone off with a different bike and rider.

I would like to help, but apparently, I'm just not 'getting it'.
#5
11/21/2006 (5:20 am)
Hi Mark,

best thing to do is use the FPS start pack and get the bike in there then you can mount the bike with the player avatar.

if you want make your own model and export it just make sure you have a mount point on the bike and you have a sitting animation for your player.

if your unsure on how to do this i would suggest searching the resources as there are hundreds of answers for what you are asking, also get one of the books on TGE they have huge amounts of info in and not just on TGE but milkshape too.

Thanks
John
#6
11/24/2006 (1:43 am)
Simplest solution I can think of is exactly what you said; mount the player as an image at node 0. To do this, you'll have to define an image with the player model as the shape (see the crossbow.cs/whatever weapon cs files you have for a sample image DataBlock).

You'll want to have only 1 default state for the image, with the "sequence" being the name of whatever animation puts your player object into a seated position (probably "sitting"). This keeps you from actually wasting bandwidth by having a player object in scene and should be pretty easy to set up.