04.08.2011, 19:03
It's possible, but it won't be very 'smooth' like the flyhacks your mentioned.
Just warp a vehicle into the air with SetVehicleVelocity. Then, use a custom function like this to set the vehicle speed:
For example, use the speed 220 (mode 0). Then you'll have to make a timer where you repeat this function in (every 500 milliseconds for example)
Use SetVehicleZAngle to steer in the air. Good luck!
Just warp a vehicle into the air with SetVehicleVelocity. Then, use a custom function like this to set the vehicle speed:
Код:
stock SetVehicleSpeed(vehicleid, Float: speed, mode = 1) { new Float: vAngle; GetVehicleZAngle(vehicleid, vAngle); speed = ((!mode) ? (speed / 105.0) : (speed / 170.0)); return SetVehicleVelocity(vehicleid, speed * floatsin(-vAngle, degrees), speed * floatcos(-vAngle, degrees), 0.0); }
Use SetVehicleZAngle to steer in the air. Good luck!