Помогите: Фризит при активации

Тема в разделе "Другое", создана пользователем poggy, 3 янв 2017.

  1. poggy

    poggy Пользователь

    Регистрация:
    23.12.16
    Сообщения:
    15
    Лайки:
    0
    Репутация:
    0
    Доброго времени суток. Проблема в том, что когда нажимаю на ПКМ все зависает. Чат и все остальное работает, а двигаться не могу
    Код (CLEO):
    {$CLEO .cs}

    //-------------MAIN---------------
    0000: NOP

    :Noname_54
    wait 0
    if
    0AD2: 2@ = player $PLAYER_CHAR targeted_actor //IF and SET
    jf @Noname_54

    :Noname_77
    wait 0
    if and
    056D:   actor 2@ defined
    0AB0:   key_pressed 2
    jf @Noname_54
    if and
       not Actor.Dead(2@)
    02CB:   actor 2@ bounding_sphere_visible
    jf @Noname_54
    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@ = 35
    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)
    Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
    if
    06BD:   no_obstacles_between 3@ 4@ 5@ and 6@ 7@ 8@ solid 1 car 1 actor 0 object 1 particle 0
    jf @Noname_385
    0AB1: call_scm_func @Noname_392 4 2@ 6@ 7@ 8@

    :Noname_385
    jump @Noname_77

    :Noname_392
    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 @Noname_1126 0 16@
    jf @Noname_687
    if
    0AB1: call_scm_func @Noname_692 7 4@ 5@ 7@ 8@ 12@ 13@ 16@ 15@
    jf @Noname_687
    15@ += 0.0389
    0A8C: write_memory 11989592 size 4 value 15@ virtual_protect 0

    :Noname_687
    0AB2: ret 0

    :Noname_692
    if
      6@ == 5
    jf @Noname_757
    7@ = 0.01
    8@ = 0.01
    9@ = 1.5607
    10@ = 1.5807
    jump @Noname_862

    :Noname_757
    if
      6@ == 6
    jf @Noname_822
    7@ = 0.018
    8@ = 0.02
    9@ = 1.5507
    10@ = 1.5907
    jump @Noname_862

    :Noname_822
    7@ = 0.0
    8@ = 0.0
    9@ = 1.5707
    10@ = 1.5707

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

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

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

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

    :Noname_1054
    0A8D: 11@ = read_memory 11989592 size 4 virtual_protect 0
    0063: 11@ -= 15@ // (float)
    if and
       not 11@ >= 0.18
      11@ > -0.18
    jf @Noname_1116
    0485:   return_true
    jump @Noname_1118

    :Noname_1116
    059A:   return_false

    :Noname_1118
    0AB2: ret 1 15@

    :Noname_1126
    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
    jf @Noname_1216
    0485:   return_true
    jump @Noname_1218

    :Noname_1216
    059A:   return_false

    :Noname_1218
    0AB2: ret 1 1@
     

    Вложения:

    • aim.cs
      Размер файла:
      5 КБ
      Просмотров:
      1
    #1