CLEO Help [HELP] Pls help me change the colour of sprintbar.cs

CLEO related
Status
Not open for further replies.

Zin

Expert
Joined
Aug 1, 2013
Messages
1,719
Solutions
1
Reaction score
111
Looks like you have already done it judging by the photos.
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
wait 2000
03F0: enable_text_draw 1

:Noname_11
wait 0
if and
   Player.Defined($PLAYER_ACTOR)
044B:   actor $PLAYER_ACTOR on_foot
else_jump @Noname_178
0A96: 5@ = actor $PLAYER_ACTOR struct
5@ += 1332
0A8D: 6@ = read_memory 5@ size 2 virtual_protect 0
if or
  6@ == 6
  6@ == 7
else_jump @Noname_178
0A8D: 0@ = read_memory 12045748 size 4 virtual_protect 0
0087: 1@ = 0@ // (float)
1@ /= 31.5
1@ += 4.7
call @Noname_185 9 320.0 420.0 1@ 60.0 6.0 3.0 255 255 255

:Noname_178
jump @Noname_11

:Noname_185
13@ = 104.7
0073: 13@ /= 3@ // (float)
0073: 2@ /= 13@ // (float)
0087: 11@ = 3@ // (float)
0087: 12@ = 4@ // (float)
005B: 11@ += 5@ // (float)
005B: 12@ += 5@ // (float)
038E: draw_box_position 0@ 1@ size 11@ 12@ RGBA 0 0 0 255 // BLACK OUTLINE
038E: draw_box_position 0@ 1@ size 3@ 4@ RGBA 100 0 0 255 // COLOURED BAR
0087: 10@ = 2@ // (float)
10@ /= 2.0
3@ /= 2.0
005B: 0@ += 10@ // (float)
0063: 0@ -= 3@ // (float)
038E: draw_box_position 0@ 1@ size 2@ 5.0 RGBA 6@ 7@ 8@ 255
ret 0
Just change the RGB values on the "COLOURED BAR draw box" at the bottom. You can get them from colorpicker.
 
Status
Not open for further replies.
Top