CLEO Help cleo

CLEO related
Status
Not open for further replies.

bluefacebaby

Member
Joined
Apr 20, 2020
Messages
15
Reaction score
0
Location
Canada
Hi, if i shoots from a high target not in center. I have and video with problem. Can you help me? Because you learn @Edvincik @kazkaS
Code:
{$CLEO .cs}

0000:

wait 8500

/// ignore skin id's
23@ = 0
24@ = 1
25@ = 3
26@ = 4

while true
wait 0

if and
8B21:   not samp is_chat_opened
8B4C:   not samp is_dialog_active -1
0AB0:   key_pressed 106 // num *
then
    if
    31@ == 0
    then
        0ACD: show_text_highpriority "~W~AIM: ~G~ON~W~" time 1000
        018C: play_sound 1083 at 0.0 0.0 0.0
        31@ = 1
        wait 200
    else
        0ACD: show_text_highpriority "~W~AIM: ~R~OFF~W~" time 1000
        018C: play_sound 1058 at 0.0 0.0 0.0
        31@ = 0
        wait 200
    end
end

if and
31@ == 1
0AD2: 2@ = player $PLAYER_CHAR targeted_actor //IF and SET
then
    wait 0
    if and
    056D:   actor 2@ defined
    0AB0:   key_pressed 1
    then
        0665: get_actor 2@ model_to 22@
        00D6: if and
        8118:   not actor 2@ dead
        02CB:   actor 2@ bounding_sphere_visible
        if and
        803B:   not  22@ == 23@ // (int)
        803B:   not  22@ == 24@ // (int)
        803B:   not  22@ == 25@ // (int)
        803B:   not  22@ == 26@ // (int)
        then
            0A96: 6@ = actor 2@ struct
            000A: 6@ += 68
            0A8D: 3@ = read_memory 6@ size 4 virtual_protect 0
            000A: 6@ += 4
            0A8D: 4@ = read_memory 6@ size 4 virtual_protect 0
            000A: 6@ += 4
            0A8D: 5@ = read_memory 6@ size 4 virtual_protect 0
            00A0: store_actor 2@ position_to 6@ 7@ 8@
            0006: 10@ = 35
            0093: 10@ = integer 10@ to_float
            0007: 12@ = 17.0
            0017: 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)
            00A0: store_actor $PLAYER_ACTOR position_to 3@ 4@ 5@
            if
            06BD:   no_obstacles_between 3@ 4@ 5@ and 6@ 7@ 8@ solid 0 car 0 actor 0 object 0 particle 0
            then
                0AB1: @AIM_AT_POS 4 ACTOR 2@ XYZ 6@ 7@ 8@
            end
        end
    end
end

end

:AIM_AT_POS
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 0x4207A0 num_params 1 pop 1 11@
0AE9: pop_float 12@
0AA5: call 0x48DE40 num_params 1 pop 1 11@
0AE9: pop_float 13@
if
0AB1:  @getSlotWeapon  0 16@
then
    if
    0AB1: @getAngleForCam 7 4@ 5@ 7@ 8@ 12@ 13@ 16@ 15@
    then
        000B: 15@ += 0.04253
        0A8C: write_memory 11989592 size 4 value 15@ virtual_protect 0
    end
end
0AB2: 0

:getSlotWeapon
0A96: 0@ = actor $PLAYER_ACTOR struct
000A: 0@ += 1816 // 0x718 = [byte] Current weapon slot (1 size byte)
0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0
if or
0039:   1@ == 2
0039:   1@ == 3
0039:   1@ == 4
0039:   1@ == 5
0039:   1@ == 6
0039:   1@ == 7
then
    0485:   return_true
else
    059A:   return_false
end
0AB2: 1 1@

:getAngleForCam
if
6@ == 5
then
    0007: 7@ = 0.01
    0007: 8@ = 0.01
    0007: 9@ = 1.5607
    0007: 10@ = 1.5807
else
    if
    6@ == 6
    then
        0007: 7@ = 0.018
        0007: 8@ = 0.02
        0007: 9@ = 1.5507
        0007: 10@ = 1.5907
    else
        0007: 7@ = 0.0
        0007: 8@ = 0.0
        0007: 9@ = 1.5707
        0007: 10@ = 1.5707
    end
end

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

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

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

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

0A8D: 11@ = read_memory 11989592 size 4 virtual_protect 0
0063: 11@ -= 15@ // (float)
00D6: if and
8031:   not  11@ >= 0.18
0021:   11@ > -0.18
then
    0485:   return_true
else
    059A:   return_false
end
0AB2: 1 15@
 

Attachments

  • SRC.cs
    23.4 KB · Views: 2
Last edited:

bluefacebaby

Member
Joined
Apr 20, 2020
Messages
15
Reaction score
0
Location
Canada
Yeah just try a different "aim at pos".
ugbase.eu/index.php?threads/skin-aimbot-by-rscaerzx-wheel-aim.17521/
http://ugbase.eu/index.php?threads/snippet-aim-at-position.14588/
Can you create a aimbot with opcodes please ? I don't know scripting.
Code:
:AIM
var
1@ :float
2@ :float
3@ :float
4@ :float
5@ :float
6@ :float
7@ :float
8@ :float
9@ :float
10@ :float
11@ :float
12@ :float
13@ :float
14@ :float
15@ :float
end
0087: 4@ = 1@ // (float)
0087: 5@ = 2@ // (float)
0087: 6@ = 3@ // (float)
068D: get_camera_position_to 1@ 2@ 3@           
//04C4: store_coords_to 4@ 5@ 6@ from_actor 0@ with_offset 7@ 8@ 9@
04C4: store_coords_to 7@ 8@ 9@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
1@ -= 4@
2@ -= 5@
0096: make 1@ absolute_float
0096: make 2@ absolute_float
10@ = 1@
11@ = 2@
10@ *= 10@                                           
11@ *= 11@
10@ += 11@
01FB: 10@ = square_root 10@ // Ac
11@ = 1@ // Aa vrem
12@ = 10@ // Ac vrem
11@ /= 12@
0AA5: call 0x4207A0 num_params 1 pop 1 _value 11@ // asin
0AE9: pop_float 12@ // fstp [0@]
0AA5: call 0x48DE40 num_params 1 pop 1 _value 11@ // acos
0AE9: pop_float 13@ // fstp [0@]
if
0ab1: @getSlotWeapon 0 16@
then
    if 0ab1: @getAngleForCam 7 4@ 5@ 7@ 8@ 12@ 13@ 16@ 15@
    then
        15@ += 0.0389
        0A8C: write_memory 0xB6F258 size 4 value 15@ virtual_protect 0
    end
end
0ab2: 0         
:getAngleForCam
var
    0@ : float
end
if 6@ == 5
then
    7@ = 0.0100
    8@ = 0.0100
    9@ = 1.5607
    10@ = 1.5807
else if 6@ == 6
    then
        7@ = 0.0180
        8@ = 0.0200
        9@ = 1.5507
        10@ = 1.5907
    else
        7@ = 0.0
        8@ = 0.0
        9@ = 1.5707
        10@ = 1.5707
    end
end
if and
    2@ > 0@
    3@ > 1@
then
    5@ -= 8@
    15@ = 5@
end                   
if and
    2@ > 0@
    3@ < 1@
then
    5@ *= -1.0
    5@ -= 7@
    15@ = 5@
end                   
if and
    2@ < 0@
    3@ > 1@
then
    4@ += 9@
    15@ = 4@
end                   
if and
    2@ < 0@
    3@ < 1@
then
    4@ *= -1.0
    4@ -= 10@
    15@ = 4@
end
0A8D: 11@ = read_memory 0xB6F258 size 4 virtual_protect 0
11@ -= 15@
if and
    11@ < 0.1800
    11@ > -0.1800
then 0485: return_true
else 059A: return_false
end
0ab2: 1 15@
:getSlotWeapon
0A96: 0@ = actor $player_actor struct
0@ += 0x718
0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0
if or
    1@ == 2
    1@ == 3
    1@ == 4
    1@ == 5
    1@ == 6
    1@ == 7
then 0485: return_true
else 059A: return_false
end
0ab2: 1 1@
 
Status
Not open for further replies.
Top