Author Topic: The crouch keybind as a drift button for vehicles  (Read 1685 times)

Wouldn't have this be damn near impossible due to blocklands horrid physics?
This is totally unrelated, drifting is possible in blockland

inb4 being able to drift in mid air

inb4 being able to drift in mid air
Now that is an idea for a brutally hard speedkart track.

hmm

yeah this seems easy enough, package the onTrigger function to catch spacebar triggers and then change the datablock to a drifting one

EDIT:
I haven't tested this but this is pretty much it:
Code: [Select]
package drift
{
    function Armor::onTrigger(%datablock,%player,%slot,%val)
    {
        if(!%slot == 2 && !%player.getMountedObject().getDatablock() == VehicleDatablock.getid()) //Not sure about the getMountedObject and I'm too lazy to search for the function which gets the players vehicle datablock
            Parent::onTrigger(%datablock,%player,%slot,%val)
        %vehicle = %player.getMountedObject(); //same thing here, I have no idea if this is the right function
        if(%val)
            %vehicle.changeDatablock(VehicleThatDriftsDatablock); //I keep forgetting function names agh (idk if it's setdatablock or changedatablock)
        else
            %vehicle.changeDatablock(VehicleDatablock); //sets it back to the original car if the spacebar is up    
    }
}
activatepackage(drift);

I'm wayy too busy at the moment but if someone else can debug/package this that would be nice
« Last Edit: April 04, 2014, 06:22:54 PM by Aide33 »

But the spacebar already does something else. It gives you an actual handbrake and makes the car stop. Sure, the wheels are the drifting ones, but that wont help if you have the brakes on.

wait the spacebar actually does something? I though you just jumped out of the car

wait the spacebar actually does something? I though you just jumped out of the car
You jump out of the car with right click on the mouse

wait the spacebar actually does something? I though you just jumped out of the car
We've caught you red-handed! You were playing Roblox! That's why you are used to jumping out with space!
jk lol

Lots of support over here

Lots of support over here
There is a bunch of suggestion topics which have lot's of support but nothing is actually done, I just hope this won't be another

Wait wait I got a better idea, how about use another keybind instead of replacing the brake on the spacebar, for example use the crouch button to drift? So you can have both drift and brake