How to fix ?

WtfDude

Участник
Автор темы
39
2
Hello i send a video with a problem because impossible to say what a problem.Please someone help me @Edvincik
CLEO:
{$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@
 
Последнее редактирование: