Hover Vehicle in starter.fps?
by Richard Borba · in General Discussion · 12/05/2007 (8:58 pm) · 9 replies
I have made a vehicle model and have named is "HoverCar". I went into the "GPGT LessonKit\gpgt\3DLessons\Volume1\010_GameElements\Vehicles\FlyingVehicle\FlyingVehicles_BoxFlyer.cs" and changed it so that it uses my vehicle model in place of their model. It works fine, I got in it and it flys around. Now, I want to take that code and use it in the "starter.fps" folder for a game that I am making. I dont know what files to copy or where I need to copy them to in order to use them for my HoverCar. Please be as detailed as possible. Thank you for the help.
#2
12/05/2007 (11:55 pm)
What engine are you guys using? The HoverCraft is pretty broken from what I recall...it tends to float up in the air since the code cancels out gravity entirely (not really how hovercraft work.... It shouldn't be *too* hard to fix that, basically you'd want it to apply gravity to keep your position low to the ground or water, and then apply your lift force based on the pressure differential between the air under the hovercraft and the air above it).
#3
12/06/2007 (1:34 am)
I use TGE xD
#4
12/06/2007 (2:36 am)
Your files would go in "starrter.fps/server/scripts" and be exec'd from within game.cs
#5
12/06/2007 (5:35 am)
I am using TGE 1.5.2. Thanks Ill try that out.
#6
12/10/2007 (7:31 pm)
Sorry for the long wait, but I am still having some problems. Do you think that it matters weather or not I put the vehicle in the "starter.fps\data\shapes"?
#7
12/11/2007 (5:56 pm)
Quote:Sorry for the long wait, but I am still having some problems. Do you think that it matters weather or not I put the vehicle in the "starter.fps\data\shapes"?That's where it should go. "starter.fps/data/shapes/MyCoolHoverCar" (or whatever you named your folder)
#8
12/11/2007 (9:22 pm)
When I place it that folder, it is just a static object in the game.
#9
12/13/2007 (12:46 pm)
You need to look at server/scripts/car.cs to see how to make it a vehicle. Once you have your script done, you'll see it in it's proper place.
Torque Owner Jonathan