Game Development Community

Mounting / Dismounting Vehicles question .

by Ian Roach · in Torque Game Engine · 03/25/2003 (6:21 pm) · 3 replies

Hi everyone ive got a few questions regarding vehicles.

What our team is trying to do right now is change the way a player mounts a vehicle. Instead of just walking or jumping into your desired position we are trying to use triggers.

For example when a vehicle is stopped or moving very slowly a number of small icons appear on the ground surrounding the vehicle. These icons will represent the number of slots and the function. For example a gunner position might show a small gun icon . Driver might show a steering wheel e.t.c

These icons act as triggers. When you walk over one it warps you into that respective position. If a position is full these icons are removed or simply change colour indicating position full.

The best example i can show is from planetside which does the exact thing im referring to.

www.planetside-universe.com/media/main/screenshots/previews/psu_032403/psuscreenmar24-0020.jpg
Anyone know a way to do this ?

On a related topic i also want to know a way to stop people from exiting a vehicle mid air or whilst its still in motion.

Appreciate any help .

Thanks

#1
03/25/2003 (7:34 pm)
I can't answer your question, but download the code from my Vehicle Resource. It contains code for preventing a player from dismounting while the vehicle is moving.

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

The only thing I can think of, is to spawn some triggers (you'll need to code them) around the vehicle when it stops. When it moves again, delete the triggers. While the triggers exist, if a player walks into one, he/she will be mounted into the appropriate seat. If you need help with coding a trigger, I have a .cs that might help. Let me know if you want it, and I'll try to dig it up for you.
#2
03/31/2003 (10:37 am)
Very cool vehicle--I wanna play :)
#3
03/31/2003 (11:19 am)
This would be a really good game play mechanism, mounting and un-mounting vehicles is cumbersome at best on every multi-player game I have played so far. That said I have not played planetside :)

Sort of off-topic but sort of on topic, I have been trying to decide if I am going to take the jump button away completely. I played the GameCube version of Zelda this weekend just to see what all the fuss is about. I don't like the Zelda/Mario genre games or their clones but there is one thing I DID like is they have completely simplified the controls.

Link now jumps automatically, run up to a table and he jumps up on to it, there is no jump button.
Run up against a ledge or railing and he jumps up grabs the edge and pulls him self up if you keep pushing the foward button.
None of this memorizing ridiculous numbers of keys just to simply maneuver around the environment.

I think something like this kind of mounting system or maybe one even more intuitive would be awesome.

One way that might work is to put the "icons" on boxes and "mount" them on the vehicle and then script collisions with the boxes.
Make them visible when a player gets with-in a certain distance and relative speed of the vehicle.

Also one note, disabling leaving the vehicle in motion might be a bad idea, because if the vehicle gets on an incline and is slowly sliding down a slope you can't jump out until it comes to a complete stop! And if it gets into a little crack or crag and constally woobles you can't ever get out.

Grand Theft Auto 3 had this problem, they fixed it in Vice City where you can jump out but take damage over a certain speed.