SA-MP Forums Archive
[FilterScript] Burnout vehicle start - because burnouts are for the win - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Burnout vehicle start - because burnouts are for the win (/showthread.php?tid=338344)



Burnout vehicle start - because burnouts are for the win - Hiddos - 29.04.2012

Note: I do not own the code that makes the vehicle jump, I copied it from Kar's post whom I think also copied it.

About

What this does is give you a boost when you do a burnout and start driving again. That's all.

Install it as a filterscript and load it. It works on every vehicle that can do burnouts, including the Caddy and the Combine Harvester.

Download
Pastebin - source
SolidFiles - source + AMX

That's it folks. Report bugs and enjoy it.


Re: Burnout vehicle start - because burnouts are for the win - Niko_boy - 29.04.2012

WTF a Burnout :O
indeed it is v
______ftw
u too ^ for great release
i too ^ for first post :
and yeah i too was gonna try the code from that post xD
thanks to Kar too


Re: Burnout vehicle start - because burnouts are for the win - niels44 - 29.04.2012

nice done mate, i just made the same too but a bit else, you mind if i post that one too? it is more nicer with maps and commands included and its just nicer XD, this one is also nice REP+, but i will post mine too ill maybe post here link when i posted it


Re: Burnout vehicle start - because burnouts are for the win - System64 - 29.04.2012

wow, it's awesome man
Will add it to one stunt server which I sold!


Re: Burnout vehicle start - because burnouts are for the win - niels44 - 29.04.2012

eehm i just tested it... and it doesnt really makes a wheelie.. it comes a bit from the ground... but not much, even when i hold W and S for long time it doenst does much, i will make a topic with mine too


Re: Burnout vehicle start - because burnouts are for the win - Hiddos - 29.04.2012

Quote:
Originally Posted by niels44
View Post
eehm i just tested it... and it doesnt really makes a wheelie.. it comes a bit from the ground... but not much, even when i hold W and S for long time it doenst does much, i will make a topic with mine too
Ah, I think I misunderstood that part. I was thinking about some sort of kickstart where the wheels would temporarily come off the ground. Publish whatever you want, and maybe I can also try to post what you mean .


Re: Burnout vehicle start - because burnouts are for the win - niels44 - 29.04.2012

ah okay anyways the thing i mean is that when i tried it my car didnt got that far from the ground as on your picture, anyways im now putting all the things together in a FS


Re: Burnout vehicle start - because burnouts are for the win - Hiddos - 29.04.2012

Quote:
Originally Posted by niels44
View Post
ah okay anyways the thing i mean is that when i tried it my car didnt got that far from the ground as on your picture, anyways im now putting all the things together in a FS
You can tweak it easily. Search for this (Should be at the bottom)
pawn Code:
Xv = (0.07 * floatsin(Zangle, degrees) * mp);
                Yv = (0.07 * floatcos(Zangle, degrees) * mp);
Change the '0.07' to any value. I recommend not going over 0.15


Re: Burnout vehicle start - because burnouts are for the win - Kar - 29.04.2012

I didn't really copy it, it wasn't working because i posted a test version

the original creator is [HiC]TheKiller. He gave it to me and I edited it a bit

This is the fixed stock

pawn Code:
JumpStartCar(vehicleid)
{
    new Float:Xv, Float:Yv, Float:Zv, Float:absV;
    GetVehicleVelocity(vehicleid, Xv, Yv, Zv);
    absV = floatsqroot((Xv * Xv) + (Yv * Yv) + (Zv * Zv));
    if(absV < 0.04)
    {
        new Float:Zangle;
        GetVehicleZAngle(vehicleid, Zangle);
        GetVehicleVelocity(vehicleid, Xv, Yv, Zv);
        Xv = (0.11 * floatsin(Zangle, degrees));
        Yv = (0.11 * floatcos(Zangle, degrees));
        SetVehicleAngularVelocity(vehicleid, Yv, Xv, 0);
    }
    return 1;
}
I would recommend not going over 0.13.. not 0.15.. 0.14+ is just unlogical


Re: Burnout vehicle start - because burnouts are for the win - TheDominator - 29.04.2012

Could someone edit this to make it command based? Like you'd type /wheelie and it would activate this script, typing again would deactivate it?