I wanna make auto drive on one wheel , but i don't know what i must searchi thin is different in every directions x, y
there's address for that i think, like for vehicle when you drive on two wheel and you get some bonus stunt moneyI wanna make auto drive on one wheel , but i don't know what i must search
I had made something like that.
Uhh yes. ArabDrift in OP-HaX works like that!
All you need for that is:
03C0: 1@ = actor $PLAYER_ACTOR car
077D: 2@ = car 1@ x_angle
06BE: 3@ = car 1@ y_angle
07DA: set_car 1@ rotation_velocity_XYZ 0.0 -0.3 0.0 through_center_of_body // links kippen
or you just freeze the rotation like FREEZEROT.cs
0xBA18FC - Current vehicle pointer:
+20 = [byte] Contains a pointer to the rotation/position matrix (84 bytes):
- +0 = [float] X-axis Rotation (Grad)
- +4 = [float] Y-axis Rotation (Grad)
- +8 = [float] Z-axis Rotation (Grad)
- +16 = [float] X-axis Rotation (Looking)
- +20 = [float] Y-axis Rotation (Looking)
- +24 = [float] Z-axis Rotation (Looking)
{$CLEO .cs}
0000: NOP
wait 10000
while true
wait 0
if or
00DD: actor $PLAYER_ACTOR driving_car_with_model 581 // BF-400
00DD: actor $PLAYER_ACTOR driving_car_with_model 462 // Faggio
00DD: actor $PLAYER_ACTOR driving_car_with_model 521 // FCR-900
00DD: actor $PLAYER_ACTOR driving_car_with_model 522 // NRG-500
00DD: actor $PLAYER_ACTOR driving_car_with_model 461 // PCJ-600
00DD: actor $PLAYER_ACTOR driving_car_with_model 448 // Pizza Boy
00DD: actor $PLAYER_ACTOR driving_car_with_model 468 // Sanchez
00DD: actor $PLAYER_ACTOR driving_car_with_model 586 // Wayfarer
then
while 0AB0: 87 // W
wait 0
03C0: 1@ = $PLAYER_ACTOR car
IF
81F3: car 1@ not_in_air
THEN
077D: 2@ = car 1@ x_angle
06BE: 3@ = car 1@ y_angle
07DA: set_car 1@ rotation_velocity_XYZ 2@ 3@ 0.0 through_center_of_body // links kippen
end
end
end
end
First you need to check if you need the X angle or the Y angle.
Then you display the value and try to find out at which angle you're in wheelie mode,
Then you chekc if youre not in wheelie mode and set velocity through center of body.