[REP+]car wheelie? is this possible with setvehiclevelocity?
#1

hey guys,

i saw this video of a car mod which can do a wheelie:
[ame="http://www.youtube.com/watch?v=Z3t8WcpVsoY"]http://www.youtube.com/watch?v=Z3t8WcpVsoY[/ame]

but now i was wondering if this is possible to make a filterscript with, cuz this car wheelie only works in gta sa single player, is it possible to make in a filterscript a setvehiclevelocity that the car makes a wheelie if a player presses a button? so just for 2 or 3 seconds and then the car falls back on the ground... anyone knows how to make this?

greets niels

and REP+
Reply
#2

Never seen it.. But if you can find it out i would love to know! :P

maybe with
pawn Код:
SetVehicleAngularVelocity
Reply
#3

client sided via cleo mods
Reply
#4

Not possible with setvehiclevelocity. It doesn't change the rotation.

Not sure if it's possible at all, would love to see someone post a way though! (w/o mods)
Reply
#5

Quote:
Originally Posted by SnG.Scot_MisCuDI
Посмотреть сообщение
Never seen it.. But if you can find it out i would love to know! :P

maybe with
pawn Код:
SetVehicleAngularVelocity
This function would indeed allow you to do a car wheelie. Probably do something with the y-value.
Reply
#6

yea.. i don't think its possible.. maybe sometime soon in the future..

try maybe? SetVehicleAngularVelocity
Reply
#7

I can't believe i missed a function like that, i never knew it existed.
wiki.sa-mp.com/wiki/SetVehicleAngularVelocity
Reply
#8

Here you go

pawn Код:
JumpStartCar(vehicleid)
{
    new Float:Xv, Float:Yv, Float:Zv, Float:absV;
    GetVehicleVelocity(vehicleid, Xv, Yv, Zv);
    absV = floatsqroot(floatpower(floatabs(Xv),2)+floatpower(floatabs(Yv),2)+floatpower(floatabs(Zv),2));
    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;
}
Reply
#9

thnx for all guys, but Kar that code of you, should i just paste: JumpStartCar(vehicleid); in a command? or at onplayerkeystatechange? anyways thnx guys and ALL REP+! im so happy that this is possible

EDIT: also does anyone knows wut the Left ALT key is? like something like KEY_ALT? or KEY_LALT?

ty, also i gave everyone REP+
Reply
#10

whereever you want to use it..?

Also it only works if the car is not moving or going very very very slow.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)