Poll

Should I make a Gravity Skateboard

Yes
No

Author Topic: Basic Skateboard  (Read 43417 times)

I'm afraid of RTB. :o
I'm afraid it might fail or be in the bargain bin. And I don't know how to update to another version.

me neither.  I sent the arwing to a friend that really likes lylat wars but all he got was a grey box that shoots brown squares.  I want to update it to get him a fixed version but I cant.  Wait until you get the ollie working then rtb it.  P.S.  try talking to the maker of the hover board, he might help you with it.

FINALLY a skatebourd add on yay heres your cookie  :cookie:

Of Topic: Yummeh

On Topic: I'm going to take another look at the script and see what I can do to keep the error from happening. It disables the hoverboard's script.

awesome can i get a download of that build?

awesome can i get a download of that build?
DON'T FRIKKIN MEGABUMP!

Build it yourself lazy


The build is just a groupof people's work to build a skatepark. If I could get Torque Constructor to work, I make a map.

Anyways, I'm going to make a gravity Skateboard now.

Uxie be sure to upload it Here for better hosting!
Media fire can have a lot of spammy ads in it

No, I'm jus going to give a direct link.

Anyways, It's done!


I am so now at jur command.
ITS.. TOO.... EPIC!

Since the help topic is too old to bamp really and you apparently can't PM, I'll just dump this here:

Code: [Select]
function bskateboardVehicle::OnTrigger(%data,%obj,%slot,%trig)
{
if(%slot == 2)
{
%data.ollie(%obj,%trig);
}
}

function bskateboardVehicle::ollie(%this,%obj,%o)
{
if(%o)
{
%obj.chargeOllieTime = $Sim::Time;
} else {
%time = mClampF(($Sim::Time - %obj.chargeOllieTime) * 10,3,8);
%obj.chargeOllieTime = "";
%up = %obj.getUpVector();
%down = vectorScale(%up,-1);
%pos = %obj.getWorldBoxCenter();
%end = vectorAdd(%pos,%down);

// Checking beneath it to jump off stuff btw
%mask = $TypeMasks::fxBrickObjectType | $TypeMasks::TerrainObjectType | $TypeMasks::InteriorObjectType;
%col = containerRayCast(%pos,%end,%mask);
if(isObject(%col))
{
%vel = %obj.getVelocity();
%newvel = vectorAdd(%vel,vectorScale(%up,2));
%newvel = vectorAdd(%newvel,vectorScale("0 0 1",%time));
%obj.setVelocity(%newvel);
}
}
}
Throw into your skateboard's server.cs file and it works fine so far as I can tell. Though you can't ollie off players or vehicles (or bricks with no raycasting)

Oh and you'll probably also want to set the brakeTorque to 0. The ollies on this aren't particularly high (up to about... I think about three bricks high, which is reasonable) and you have to hold for a moment to get the full height, much like in skating games.

If you Hadn't noticed, I've tried that many times. It just that it overwrites the Hoverboard's script and screws it up.

I'd be honestly quite surprised if that code overwrote it, on account of it being totally different - there's no servercmd in there, there's no reference to the hoverboard, etc. It's completely handwritten and separate.

I'd be honestly quite surprised if that code overwrote it, on account of it being totally different - there's no servercmd in there, there's no reference to the hoverboard, etc. It's completely handwritten and separate.
Oh, I never thought about the servercmd in it.
Thanks.