CLEO Help Question about Motorcycle

CLEO related
Status
Not open for further replies.

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
226
Location
( ͡° ͜ʖ ͡°)
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)
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
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)

Thx, i try make it.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
@Opcode.eXe

Is there any way make it smooth then looks more legit?
PHP:
{$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
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
226
Location
( ͡° ͜ʖ ͡°)
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.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
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.

Tested, thx.
 
Last edited:
Status
Not open for further replies.
Top