Aimbot Prediction

Status
Not open for further replies.

xAmUser

Active Member
Joined
Feb 23, 2018
Messages
37
Likes
2
Points
23
5
#1
Hello, please tell me how can I achieve the same prediction as in this video

//call @AIM_POSITION 2 [email protected] [email protected] ret_to [email protected] [email protected] [email protected] by 0pc0de.exe
:AIM_POSITION {[email protected] - ActorHandle, [email protected] - value float}
0087: [email protected] = [email protected] // (float)
Actor.StorePos([email protected], [email protected], [email protected], [email protected])
/////////////////////////////////////////////////////////
083D: get_actor [email protected] velocity_in_direction_XYZ [email protected] [email protected] [email protected]
/////////////////////////////////////////////////////////
[email protected] /= 100.0
[email protected] = 60.0
0073: [email protected] /= [email protected] // (float)
006B: [email protected] *= [email protected] // (float)
005B: [email protected] += [email protected] // (float)
////////////////////////////
[email protected] /= 100.0
[email protected] = 60.0
0073: [email protected] /= [email protected] // (float)
006B: [email protected] *= [email protected] // (float)
005B: [email protected] += [email protected] // (float)
////////////////////////////
[email protected] /= 100.0
[email protected] = 60.0
0073: [email protected] /= [email protected] // (float)
006B: [email protected] *= [email protected] // (float)
005B: [email protected] += [email protected] // (float)
/////////////////////////////////////////////////////////
083D: get_actor $PLAYER_ACTOR velocity_in_direction_XYZ [email protected] [email protected] [email protected]
/////////////////////////////////////////////////////////
[email protected] /= 100.0
[email protected] = 60.0
0073: [email protected] /= [email protected] // (float)
006B: [email protected] *= [email protected] // (float)
0063: [email protected] -= [email protected] // (float)
////////////////////////////
[email protected] /= 100.0
[email protected] = 60.0
0073: [email protected] /= [email protected] // (float)
006B: [email protected] *= [email protected] // (float)
0063: [email protected] -= [email protected] // (float)
////////////////////////////
[email protected] /= 100.0
[email protected] = 60.0
0073: [email protected] /= [email protected] // (float)
006B: [email protected] *= [email protected] // (float)
0063: [email protected] -= [email protected] // (float)
ret 3 [email protected] [email protected] [email protected]

I have this snippet but it works somehow incorrectly or I don’t know what to make for a place [email protected]

or somehow you need to change the values
[email protected] /= 100.0
[email protected] = 60.0

help me please
 
Last edited:

_Safa

Well-Known Member
Section Moderator
Joined
Sep 22, 2019
Messages
271
Likes
92
Points
58
Location
UGBASE
#3
1. Get target's ping
2. Get your ping
3. Get velocity of target
4. Add up your ping to targets ping
5. Convert the summary (integer) of your ping + targets ping to a float.
6. Divide the velocity (X Y Z) with 1000.0
7. Multiply the final velocity with the summary of your ping + targets ping which you converted before to a float.

Add that final calculated velocity (7) to players-position X Y Z (or bone-pos X Y Z) like I do it in SafaHook andvisualize it in a way you wish.
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,282
Likes
472
Points
113
Location
Lithuania
Website
ugbase.eu
20
#4
1. Get target's ping
2. Get your ping
3. Get velocity of target
4. Add up your ping to targets ping
5. Convert the summary (integer) of your ping + targets ping to a float.
6. Divide the velocity (X Y Z) with 1000.0
7. Multiply the final velocity with the summary of your ping + targets ping which you converted before to a float.

Add that final calculated velocity (7) to players-position X Y Z (or bone-pos X Y Z) like I do it in SafaHook andvisualize it in a way you wish.
I guess it is right xD
PHP:
:Calculate
// 0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 6 _Return: XYZ [email protected] [email protected] [email protected]
0B2B: samp [email protected] = get_player_id_by_actor_handle [email protected]
0B2A: samp [email protected] = get_player_ping [email protected]
0B2B: samp [email protected] = get_player_id_by_actor_handle $PLAYER_ACTOR
0B2A: samp [email protected] = get_player_ping [email protected]
083D: get_actor [email protected] velocity_in_direction_XYZ [email protected] [email protected] [email protected]
005A: [email protected] += [email protected]  // PLAYER_ACTOR PING + TARGET PING
0093: [email protected] = integer [email protected] to_float
[email protected] /= 1000.0
[email protected] /= 1000.0
[email protected] /= 1000.0
006B: [email protected] *= [email protected]
006B: [email protected] *= [email protected]
006B: [email protected] *= [email protected]
0AB1: @GET_BONE_POS 2 FROM_ACTOR [email protected] BONE [email protected] _STORE_TO [email protected] [email protected] [email protected]
005B: [email protected] += [email protected]  // (float)
005B: [email protected] += [email protected]  // (float)
005B: [email protected] += [email protected]  // (float)
0AB2: 3 [email protected] [email protected] [email protected]

:GET_BONE_POS
0085: [email protected] = [email protected] // (int)
0085: [email protected] = [email protected] // (int)
[email protected] = 0.0 // X offset
[email protected] = 0.0 // Y offset {THX TO: WESSER}
[email protected] = 0.0 // Z offset
0A96: [email protected] = actor [email protected] struct
0AC7: [email protected] = var [email protected] offset
0AA6: call_method 0x5E01C0 struct [email protected] num_params 3 pop 0 bIncludeAnim 1 iBoneID [email protected] vOffset [email protected] // CPed__getBonePositionWithOffset
0AB2: retn 3 [email protected] [email protected] [email protected]
PHP:
:Draw_Prediction_Bone_Esp
// 0AB1: @Draw_Prediction_Bone_Esp 1 TARGET_ACTOR_HANDLE [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 6 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 4 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 4 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 3 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 3 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 2 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 2 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 1 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 1 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 52 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 52 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 53 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 1 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 42 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 42 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 43 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 21 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 31 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 21 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 22 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 31 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 32 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 32 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 33 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 33 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 34 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 22 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 23 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 23 _Return: XYZ [email protected] [email protected] [email protected]
0AB1: @Calculate 2 TARGET_ACTOR_HANDLE [email protected] BONE_ID 24 _Return: XYZ [email protected] [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B55: convert_3D_coords [email protected] [email protected] [email protected] to_screen [email protected] [email protected]
0B68: render draw_line_point1 [email protected] [email protected] point2 [email protected] [email protected] width 1 color 0xFFFFFF00
0AB2: 0
 
Last edited:
OP
OP
X

xAmUser

Active Member
Joined
Feb 23, 2018
Messages
37
Likes
2
Points
23
5
#6
1. Get target's ping
2. Get your ping
3. Get velocity of target
4. Add up your ping to targets ping
5. Convert the summary (integer) of your ping + targets ping to a float.
6. Divide the velocity (X Y Z) with 1000.0
7. Multiply the final velocity with the summary of your ping + targets ping which you converted before to a float.

Add that final calculated velocity (7) to players-position X Y Z (or bone-pos X Y Z) like I do it in SafaHook andvisualize it in a way you wish.
how to do like this?
 

_Safa

Well-Known Member
Section Moderator
Joined
Sep 22, 2019
Messages
271
Likes
92
Points
58
Location
UGBASE
#7
how to do like this?
Mate you are comparing two totally different games. The lagshot-hitbox is as the name says just a PREDICTION, it's not perfect. There is no "engine-prediction" for lagcompoff in GTA:SA.
 
OP
OP
X

xAmUser

Active Member
Joined
Feb 23, 2018
Messages
37
Likes
2
Points
23
5
#8
Status
Not open for further replies.
Top