Hello fellows, I used an open source triggerbot for sniper which uses the distance between the bones to calculate area where if sniper is on player to shoot (like 05A5. So the problem is that I can't find the depth of the skin and this is a little bit annoying when the snippet doesn't return true result.
So I want to improve the indicator to show exactly if the sniper is on player. Actually problem doesn't persist when I'm face to face on player, bcs I'm getting the full range. Can anyone help me?
Snippet:
P.S. Have tried to use the coords of 3D ESP box, but the box itself is very big and I'm getting false "trigger". Also found some info about the Z angle, but idk how to implement this.
So I want to improve the indicator to show exactly if the sniper is on player. Actually problem doesn't persist when I'm face to face on player, bcs I'm getting the full range. Can anyone help me?
Snippet:
Code:
:target
{
0ab1: call @target 1 {pHandle}0@
}
Actor.StorePos(0@, 31@, 30@, 29@)
Actor.StorePos($PLAYER_ACTOR, 28@, 27@, 26@)
if and
02CB: actor 0@ bounding_sphere_visible
06BD: no_obstacles_between 31@ 30@ 29@ and 28@ 27@ 26@ solid 1 car 0 actor 0 object 0 particle 0
then
0A96: 15@ = actor 0@ struct
0AC7: 16@ = var 16@ offset
0AA6: call_method 0x5E4280 struct 15@ num_params 3 pop 0 1 26 16@ // 16@ 17@ 18@ x y z
0B55: convert_3D_coords 16@ 17@ 18@ to_screen 16@ 17@
0B5F: convert_window_screen_coords 16@ 17@ to_game_screen_coords 19@ 20@ // 22
0AC7: 16@ = var 16@ offset
0AA6: call_method 0x5E4280 struct 15@ num_params 3 pop 0 1 34 16@ // 16@ 17@ 18@ x y z
0B55: convert_3D_coords 16@ 17@ 18@ to_screen 16@ 17@
0B5F: convert_window_screen_coords 16@ 17@ to_game_screen_coords 16@ 17@ // 32
0509: 21@ = distance_between_XY 16@ 17@ 19@ 20@ //21@ - WIGHT
0AC7: 16@ = var 16@ offset
0AA6: call_method 0x5E4280 struct 15@ num_params 3 pop 0 1 54 16@ // 16@ 17@ 18@ x y z
0B55: convert_3D_coords 16@ 17@ 18@ to_screen 16@ 17@
0B5F: convert_window_screen_coords 16@ 17@ to_game_screen_coords 19@ 20@ // 22
0AC7: 16@ = var 16@ offset
0AA6: call_method 0x5E4280 struct 15@ num_params 3 pop 0 1 6 16@ // 16@ 17@ 18@ x y z
0B55: convert_3D_coords 16@ 17@ 18@ to_screen 16@ 17@
0B5F: convert_window_screen_coords 16@ 17@ to_game_screen_coords 16@ 17@ // 32
0509: 22@ = distance_between_XY 16@ 17@ 19@ 20@ //22@ - HEIGHT
0AC7: 16@ = var 16@ offset
0AA6: call_method 0x5E4280 struct 15@ num_params 3 pop 0 1 3 16@ // 16@ 17@ 18@ x y z
0B55: convert_3D_coords 16@ 17@ 18@ to_screen 16@ 17@
0B5F: convert_window_screen_coords 16@ 17@ to_game_screen_coords 16@ 17@ // 32
{16@ 17@ 21@ 22@}
0B5E: get_cursor_pos 5@ 4@
16@ -= 320.0
17@ -= 224.0
0097: make 16@ absolute_float
0097: make 17@ absolute_float
21@ /= 2.0
22@ /= 2.0
if and
8035: 16@ <= 21@
8035: 17@ <= 22@
then
ret_t
else
ret_f
end
else
ret_f
end
ret 0
P.S. Have tried to use the coords of 3D ESP box, but the box itself is very big and I'm getting false "trigger". Also found some info about the Z angle, but idk how to implement this.