[REP+]car wheelie? is this possible with setvehiclevelocity? -
niels44 - 28.04.2012
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+
Re: [REP+]car wheelie? is this possible with setvehiclevelocity? -
SnG.Scot_MisCuDI - 28.04.2012
Never seen it.. But if you can find it out i would love to know! :P
maybe with
pawn Код:
SetVehicleAngularVelocity
Re: [REP+]car wheelie? is this possible with setvehiclevelocity? -
tyler12 - 28.04.2012
client sided via cleo mods
Re: [REP+]car wheelie? is this possible with setvehiclevelocity? -
iggy1 - 28.04.2012
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)
Re: [REP+]car wheelie? is this possible with setvehiclevelocity? -
Hiddos - 28.04.2012
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.
Re: [REP+]car wheelie? is this possible with setvehiclevelocity? -
Crazymax - 28.04.2012
yea.. i don't think its possible.. maybe sometime soon in the future..
try maybe? SetVehicleAngularVelocity
Re: [REP+]car wheelie? is this possible with setvehiclevelocity? -
iggy1 - 28.04.2012
I can't believe i missed a function like that, i never knew it existed.
wiki.sa-mp.com/wiki/SetVehicleAngularVelocity
Re: [REP+]car wheelie? is this possible with setvehiclevelocity? -
Kar - 28.04.2012
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;
}
Re: [REP+]car wheelie? is this possible with setvehiclevelocity? -
niels44 - 28.04.2012
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+
Re: [REP+]car wheelie? is this possible with setvehiclevelocity? -
Kar - 28.04.2012
whereever you want to use it..?
Also it only works if the car is not moving or going very very very slow.