Game Development Community

Porting the Death Car Example?

by James Sparkman · in Torque Game Engine · 08/13/2003 (1:46 pm) · 3 replies

Has anyone successfully converted the death car example from from 'racing' to 'fps'? I've added another mount point for the driver and switched the guns into mount points 1 and 2 but I'm still not able to mount the vehicle. Any help is appreciated.

#1
08/13/2003 (1:50 pm)
You prolly need to adjust the player.cs file
in the onCollision method.
needs to support wheeled vehicles?

or maybe that the vehicle itself does not have the mountable tag set?
#2
08/13/2003 (2:26 pm)
I can already mount other wheeled vehicles. And I've added the following to make the vehicle mountable.

maxMountSpeed = 0.1;
mountDelay = 2;
dismountDelay = 1;
stationaryThreshold = 0.5;
maxDismountSpeed = 0.1;
numMountPoints = 1;
mountable = true;
mountPose[0] = "Sitting";
mountPointTransform[0] = "0 0 0 0 0 1 0";
isProtectedMountPoint[0] = false;
#3
08/13/2003 (2:42 pm)
Interesting ..
with the mountable flag true..
you should be able to mount it.
sounds like you need some echo's to print some results in the onCollision for the player.

I would echo the mountable flag of the vehicle
as well I would echo the players can mount variable

these are the common areas.