[REP+]car wheelie? is this possible with setvehiclevelocity?
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)