Help [HELP] Remove text when activated.

Dangrata

New member
Joined
May 20, 2020
Messages
2
Reaction score
0
Location
Moscow
I'm trying to remove text when activating cleo, when i try to remove text cleo no more works, someone help.

//-------------MAIN---------------
0000: NOP
wait 2000
thread "CTNH"
03F0: enable_text_draw 1
31@ = 0

:CTNH_41
wait 0
if
0AB0: key_pressed 121
else_jump @CTNH_160
if
31@ == 0
else_jump @CTNH_122
0AD1: show_formatted_text_highpriority "CTNH ~g~AKTIF" time 1000
31@ = 1
wait 200
jump @CTNH_160

:CTNH_122
0AD1: show_formatted_text_highpriority "CTNH ~r~DE-AKTIF" time 1000
31@ = 0
wait 200

:CTNH_160
if
31@ == 1
else_jump @CTNH_273
if and
0AD2: 2@ = player $PLAYER_CHAR targeted_actor //IF and SET
82D8: not actor $PLAYER_ACTOR current_weapon == 34
else_jump @CTNH_224
0AB1: call_scm_func @CTNH_280 1 2@
jump @CTNH_273

:CTNH_224
if and
02D8: actor $PLAYER_ACTOR current_weapon == 34
0AB1: call_scm_func @CTNH_1963 1 150.0 2@
else_jump @CTNH_273
0AB1: call_scm_func @CTNH_280 1 2@

:CTNH_273
jump @CTNH_41

:CTNH_280
0085: 2@ = 0@ // (int)
if and
056D: actor 2@ defined
00E1: player 0 pressed_key 6
else_jump @CTNH_585
if and
not Actor.Dead(2@)
02CB: actor 2@ bounding_sphere_visible
else_jump @CTNH_585
0A96: 6@ = actor 2@ struct
6@ += 68
0A8D: 3@ = read_memory 6@ size 4 virtual_protect 0
6@ += 4
0A8D: 4@ = read_memory 6@ size 4 virtual_protect 0
6@ += 4
0A8D: 5@ = read_memory 6@ size 4 virtual_protect 0
Actor.StorePos(2@, 6@, 7@, 8@)
10@ = 5
11@ = 5
005A: 10@ += 11@ // (int)
0093: 10@ = integer 10@ to_float
12@ = 17.0
12@ /= 360.0
006B: 3@ *= 12@ // (float)
006B: 4@ *= 12@ // (float)
006B: 5@ *= 12@ // (float)
006B: 3@ *= 10@ // (float)
006B: 4@ *= 10@ // (float)
006B: 5@ *= 10@ // (float)
005B: 6@ += 3@ // (float)
005B: 7@ += 4@ // (float)
005B: 8@ += 5@ // (float)
if
02D8: actor $PLAYER_ACTOR current_weapon == 34
else_jump @CTNH_563
0AB1: call_scm_func @CTNH_590 1 2@

:CTNH_563
0AB1: call_scm_func @CTNH_968 4 2@ 6@ 7@ 8@

:CTNH_585
0AB2: ret 0

:CTNH_590
31@ = 6.0
29@ = 255
28@ = 55
27@ = 1.0
if
31@ > 8.0
else_jump @CTNH_653
30@ = 1

:CTNH_653
if
not 31@ >= 6.0
else_jump @CTNH_681
30@ = 0

:CTNH_681
if
30@ == 0
else_jump @CTNH_709
31@ += 0.05

:CTNH_709
if
30@ == 1
else_jump @CTNH_737
31@ -= 0.05

:CTNH_737
04C4: store_coords_to 1@ 2@ 3@ from_actor 0@ with_offset 0.0 0.0 0.0
0AB1: call_scm_func @CTNH_2356 3 1@ 2@ 3@ 4@ 5@
0087: 1@ = 4@ // (float)
005B: 1@ += 31@ // (float)
038E: draw_box_position 1@ 5@ size 27@ 8.0 RGBA 28@ 29@ 25 255
0087: 1@ = 4@ // (float)
0063: 1@ -= 31@ // (float)
038E: draw_box_position 1@ 5@ size 27@ 8.0 RGBA 28@ 29@ 25 255
0087: 1@ = 5@ // (float)
005B: 1@ += 31@ // (float)
038E: draw_box_position 4@ 1@ size 8.0 27@ RGBA 28@ 29@ 25 255
0087: 1@ = 5@ // (float)
0063: 1@ -= 31@ // (float)
038E: draw_box_position 4@ 1@ size 8.0 27@ RGBA 28@ 29@ 25 255
0AB2: ret 0

:CTNH_968
0087: 4@ = 1@ // (float)
0087: 5@ = 2@ // (float)
0087: 6@ = 3@ // (float)
068D: get_camera_position_to 1@ 2@ 3@
04C4: store_coords_to 7@ 8@ 9@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
0063: 1@ -= 4@ // (float)
0063: 2@ -= 5@ // (float)
0096: make 1@ absolute_float
0096: make 2@ absolute_float
0087: 10@ = 1@ // (float)
0087: 11@ = 2@ // (float)
006B: 10@ *= 10@ // (float)
006B: 11@ *= 11@ // (float)
005B: 10@ += 11@ // (float)
01FB: 10@ = square_root 10@
0087: 11@ = 1@ // (float)
0087: 12@ = 10@ // (float)
0073: 11@ /= 12@ // (float)
0AA5: call 4327328 num_params 1 pop 1 11@
0AE9: pop_float 12@
0AA5: call 4775488 num_params 1 pop 1 11@
0AE9: pop_float 13@
if
0AB1: call_scm_func @CTNH_1863 0 16@
else_jump @CTNH_1302
if
0AB1: call_scm_func @CTNH_1364 7 4@ 5@ 7@ 8@ 12@ 13@ 16@ 15@
else_jump @CTNH_1302
if
0AB1: call_scm_func @CTNH_1307 6 4@ 5@ 6@ 7@ 8@ 9@
else_jump @CTNH_1302
15@ += 0.0387
0A8C: write_memory 11989592 size 4 value 15@ virtual_protect 0

:CTNH_1302
0AB2: ret 0

:CTNH_1307
if
06BD: no_obstacles_between 3@ 4@ 5@ and 0@ 1@ 2@ solid 1 car 0 actor 0 object 0 particle 0
else_jump @CTNH_1357
0485: return_true
jump @CTNH_1359

:CTNH_1357
059A: return_false

:CTNH_1359
0AB2: ret 0

:CTNH_1364
if
6@ == 5
else_jump @CTNH_1429
7@ = 0.011
8@ = 0.011
9@ = 1.5595
10@ = 1.582
jump @CTNH_1599

:CTNH_1429
if
6@ == 6
else_jump @CTNH_1559
if
02D8: actor $PLAYER_ACTOR current_weapon == 34
else_jump @CTNH_1512
7@ = 0.039
8@ = 0.039
9@ = 1.532
10@ = 1.61
jump @CTNH_1552

:CTNH_1512
7@ = 0.02
8@ = 0.02
9@ = 1.5507
10@ = 1.5907

:CTNH_1552
jump @CTNH_1599

:CTNH_1559
7@ = -0.003
8@ = -0.003
9@ = 1.572
10@ = 1.568

:CTNH_1599
if and
0025: 2@ > 0@ // (float)
0025: 3@ > 1@ // (float)
else_jump @CTNH_1642
0063: 5@ -= 8@ // (float)
0087: 15@ = 5@ // (float)

:CTNH_1642
if and
0025: 2@ > 0@ // (float)
8035: not 3@ >= 1@ // (float)
else_jump @CTNH_1695
5@ *= -1.0
0063: 5@ -= 7@ // (float)
0087: 15@ = 5@ // (float)

:CTNH_1695
if and
8035: not 2@ >= 0@ // (float)
0025: 3@ > 1@ // (float)
else_jump @CTNH_1738
005B: 4@ += 9@ // (float)
0087: 15@ = 4@ // (float)

:CTNH_1738
if and
8035: not 2@ >= 0@ // (float)
8035: not 3@ >= 1@ // (float)
else_jump @CTNH_1791
4@ *= -1.0
0063: 4@ -= 10@ // (float)
0087: 15@ = 4@ // (float)

:CTNH_1791
0A8D: 11@ = read_memory 11989592 size 4 virtual_protect 0
0063: 11@ -= 15@ // (float)
if and
not 11@ >= 0.18
11@ > -0.18
else_jump @CTNH_1853
0485: return_true
jump @CTNH_1855

:CTNH_1853
059A: return_false

:CTNH_1855
0AB2: ret 1 15@

:CTNH_1863
0A96: 0@ = actor $PLAYER_ACTOR struct
0@ += 1816
0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0
if or
1@ == 2
1@ == 3
1@ == 4
1@ == 5
1@ == 6
1@ == 7
else_jump @CTNH_1953
0485: return_true
jump @CTNH_1955

:CTNH_1953
059A: return_false

:CTNH_1955
0AB2: ret 1 1@

:CTNH_1963
28@ = 0.0

:CTNH_1973
0A8D: 29@ = read_memory 12010640 size 4 virtual_protect 0
29@ += 4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
30@ = 0

:CTNH_2013
0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
29@ += 1
if and
31@ >= 0
128 > 31@
else_jump @CTNH_2299
005A: 31@ += 30@ // (int)
if
056D: actor 31@ defined
else_jump @CTNH_2299
if
803C: not $PLAYER_ACTOR == 31@ // (int)
else_jump @CTNH_2299
04C4: store_coords_to 27@ 26@ 25@ from_actor 31@ with_offset 0.0 0.0 0.0
068D: get_camera_position_to 24@ 23@ 22@
if and
06BD: no_obstacles_between 27@ 26@ 25@ and 24@ 23@ 22@ solid 1 car 0 actor 0 object 0 particle 0
not Actor.Driving(31@)
not Actor.Dead(31@)
02CB: actor 31@ bounding_sphere_visible
else_jump @CTNH_2299
04C4: store_coords_to 10@ 11@ 12@ from_actor 31@ with_offset 0.0 0.0 0.0
0AB1: call_scm_func @CTNH_2356 3 10@ 11@ 12@ 13@ 14@
0509: 15@ = distance_between_XY 339.1 179.1 and_XY 13@ 14@
if
0035: 28@ >= 15@ // (float)
else_jump @CTNH_2299
0AB2: ret 1 31@

:CTNH_2299
30@ += 256
30@ > 35584
else_jump @CTNH_2013
28@ += 8.0
001D: 28@ > 0@ // (int)
else_jump @CTNH_1973
0AB2: ret 1 -1

:CTNH_2356
0AC7: 14@ = var 0@ offset
0AC7: 15@ = var 3@ offset
0AC7: 16@ = var 6@ offset
0AC7: 17@ = var 9@ offset
0AA5: call 7392816 num_params 6 pop 6 0 0 17@ 16@ 15@ 14@
12@ = 640.0
13@ = 448.0
0A8D: 14@ = read_memory 12677188 size 4 virtual_protect 0
0A8D: 15@ = read_memory 12677192 size 4 virtual_protect 0
0093: 14@ = integer 14@ to_float
0093: 15@ = integer 15@ to_float
0073: 12@ /= 14@ // (float)
0073: 13@ /= 15@ // (float)
006B: 3@ *= 12@ // (float)
006B: 4@ *= 13@ // (float)
0AB2: ret 2 3@ 4@
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Remove these two lines AND Press F6 to compile cleo code
PHP:
0AD1: show_formatted_text_highpriority "CTNH ~g~AKTIF" time 1000
PHP:
0AD1: show_formatted_text_highpriority "CTNH ~r~DE-AKTIF" time 1000
 

Dangrata

New member
Joined
May 20, 2020
Messages
2
Reaction score
0
Location
Moscow
i removed them but it doesn't work after editing , and where should i press f6 in sanny builde ror what i edited it with vscode and saved it did i do something wrong?
 
Top