CLEO Help Changing numbers

CLEO related
Status
Not open for further replies.

iRack

New member
Joined
May 5, 2020
Messages
3
Reaction score
0
Location
Romania
Hi! Can someone help me? I want this; When i press F12 the car will flip with the wheels to air. Thanks a lot!!

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread "DEMO"
0001: wait 1000 ms

:DEMO_13
0001: wait 0 ms
00D6: if
0256:   player $PLAYER_CHAR defined
004D: jump_if_false @DEMO_13
00D6: if
0AB0:   key_pressed 122
004D: jump_if_false @DEMO_99
0173: set_actor $PLAYER_ACTOR Z_angle_to 0.0
00D6: if
00DF:   actor $PLAYER_ACTOR driving
004D: jump_if_false @DEMO_13
03C0: 1@ = actor $PLAYER_ACTOR car
0175: set_car 1@ Z_angle_to 0.0
0002: jump @DEMO_158

:DEMO_99
00D6: if
0AB0:   key_pressed 123
004D: jump_if_false @DEMO_158
0173: set_actor $PLAYER_ACTOR Z_angle_to 180.0
00D6: if
00DF:   actor $PLAYER_ACTOR driving
004D: jump_if_false @DEMO_13
03C0: 1@ = actor $PLAYER_ACTOR car
0175: set_car 1@ Z_angle_to 180.0

:DEMO_158
0002: jump @DEMO_13
0A93: end_custom_thread
 

iRack

New member
Joined
May 5, 2020
Messages
3
Reaction score
0
Location
Romania
Ok, thanks, but how should i modify this?
0173: set_actor $PLAYER_ACTOR Z_angle_to 180.0
I want to unflip the car with the wheels to heaven
 

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
270
Location
Pluto
Ok, thanks, but how should i modify this?
0173: set_actor $PLAYER_ACTOR Z_angle_to 180.0
I want to unflip the car with the wheels to heaven
That modifies only the actor facing in the horizontal plane which has no connection on the car! I do not know why you need that opcode... But this Line on your script:
Code:
0175: set_car 1@ Z_angle_to 180.0
should be changed into:
Code:
0731: set_car 1@ y_angle_to 180.0
So that your car will flip upside-down.

Notes:
Z-angle - represents the Horizontal plane(left-right rotation)
X-angle - represents the vertical plane(up-down rotation)
Y-angle - represents the edge-to-edge plane (spin rotation)
 
Status
Not open for further replies.
Top