- 2
- 0
Может кто-нибудь объяснить этот код, я хочу знать, где он рисует коробку
Я хочу сделать чит, который показывает точку, где нужно ударить, чтобы враг был ошеломлен.
//Edit: Я придумал теоретическое решение:
Создать коробку по координатам: enemy_coordinates + enemy_velocity_vector* (enemy_ping + my_ping)
Это правильно, я немного запутался в формуле
Pingpoint cleo code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE CLEO+}
thread "PingPoint"
0662: printstring "Made by FYP"
03F0: enable_text_draw 1
if
0@ = SAMP.Base()
jf @PINGPOINT_50
0A93: end_custom_thread
:PINGPOINT_50
not SAMP.Available
jf @PINGPOINT_71
wait 400
jump @PINGPOINT_50
:PINGPOINT_71
wait 0
if
Player.Defined(0)
jf @PINGPOINT_687
if
key_down 187
jf @PINGPOINT_136
25@ = 1
:PINGPOINT_113
key_down 187
jf @PINGPOINT_136
wait 20
jump @PINGPOINT_113
:PINGPOINT_136
if
key_down 189
jf @PINGPOINT_182
25@ = 0
:PINGPOINT_159
key_down 189
jf @PINGPOINT_182
wait 20
jump @PINGPOINT_159
:PINGPOINT_182
if
not 25@ == 0
jf @PINGPOINT_687
1@ = 0
:PINGPOINT_207
if
SAMP.IsPlayerConnected(1@)
jf @PINGPOINT_665
if
2@ = SAMP.GetActorHandleByPlayerID(1@)
jf @PINGPOINT_665
if
02CB: actor 2@ bounding_sphere_visible
jf @PINGPOINT_665
if
not Actor.Driving(2@)
jf @PINGPOINT_346
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
jump @PINGPOINT_419
:PINGPOINT_346
6@ = Actor.CurrentCar(2@)
0A97: 6@ = car 6@ 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
:PINGPOINT_419
Actor.StorePos(2@, 6@, 7@, 8@)
9@ = SAMP.GetPlayerPing(1@)
11@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
10@ = SAMP.GetPlayerPing(11@)
005A: 9@ += 10@ // (int)
0093: 10@ = integer 9@ to_float
printf "%d: %d" 100 1@ 9@
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)
call @PINGPOINT_694 3 6@ 7@ 8@ 6@ 7@
038E: draw_box_position 6@ 7@ size 10.0 10.0 RGBA 0 50 155 200
038E: draw_box_position 6@ 7@ size 3.0 3.0 RGBA 255 0 0 200
:PINGPOINT_665
1@ += 1
1@ > 1000
jf @PINGPOINT_207
:PINGPOINT_687
jump @PINGPOINT_71
:PINGPOINT_694
call @PINGPOINT_922 1 0 12@
call @PINGPOINT_922 1 3 13@
call @PINGPOINT_922 1 6 14@
call @PINGPOINT_922 1 9 15@
0AA5: call 7392816 num_params 6 pop 6 0 0 15@ 14@ 13@ 12@
call @PINGPOINT_815 2 3@ 4@ 3@ 4@
ret 2 3@ 4@
:PINGPOINT_815
2@ = 640.0
0A8D: 4@ = read_memory 12677188 size 4 virtual_protect 0
0093: 4@ = integer 4@ to_float
0073: 2@ /= 4@ // (float)
006B: 0@ *= 2@ // (float)
3@ = 448.0
0A8D: 5@ = read_memory 12677192 size 4 virtual_protect 0
0093: 5@ = integer 5@ to_float
0073: 3@ /= 5@ // (float)
006B: 1@ *= 3@ // (float)
ret 2 0@ 1@
:PINGPOINT_922
0A9F: 1@ = current_thread_pointer
0@ *= 4
0A8E: 2@ = 1@ + 220 // int
if
2@ == 1
jf @PINGPOINT_980
0@ += 10783072
jump @PINGPOINT_995
:PINGPOINT_980
005A: 0@ += 1@ // (int)
0@ += 60
:PINGPOINT_995
ret 1 0@
Я хочу сделать чит, который показывает точку, где нужно ударить, чтобы враг был ошеломлен.
//Edit: Я придумал теоретическое решение:
Создать коробку по координатам: enemy_coordinates + enemy_velocity_vector* (enemy_ping + my_ping)
Это правильно, я немного запутался в формуле
Последнее редактирование: