please give the code to cleo which will send synchronization about aiming to the similarity of the AimingSync function in the script silent aim v12 by 0pc0d3r
or the cleo cleint which sends AimingSync
this function does not work
//call @SendValidVector 1 PlayerHandle
:SendValidVector
wait 0
0B2B: samp 9@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0AC8: 11@ = allocate_memory_size 31
0BBE: samp store_player 9@ aim_data 11@
068D: get_camera_position_to 2@ 3@ 14@
Actor.StorePos(0@, 27@, 21@, 31@)
0063: 2@ -= 27@
0063: 3@ -= 21@
0604: get_Z_angle_for_point 2@ 3@ store_to 4@
0C02: math 4@ = angle_to_radian 4@
4@ *= -1.0
0C03: math 2@ = sine 4@
0C05: math 3@ = cosine 4@
2@ *= -1.0
3@ *= -1.0
0C0D: struct 11@ offset 1 size 4 = 2@
0C0D: struct 11@ offset 5 size 4 = 3@
0BC3: samp send_aim_data 11@
0AC9: free_allocated_memory 11@
0AB2: ret 0
or the cleo cleint which sends AimingSync
this function does not work
//call @SendValidVector 1 PlayerHandle
:SendValidVector
wait 0
0B2B: samp 9@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0AC8: 11@ = allocate_memory_size 31
0BBE: samp store_player 9@ aim_data 11@
068D: get_camera_position_to 2@ 3@ 14@
Actor.StorePos(0@, 27@, 21@, 31@)
0063: 2@ -= 27@
0063: 3@ -= 21@
0604: get_Z_angle_for_point 2@ 3@ store_to 4@
0C02: math 4@ = angle_to_radian 4@
4@ *= -1.0
0C03: math 2@ = sine 4@
0C05: math 3@ = cosine 4@
2@ *= -1.0
3@ *= -1.0
0C0D: struct 11@ offset 1 size 4 = 2@
0C0D: struct 11@ offset 5 size 4 = 3@
0BC3: samp send_aim_data 11@
0AC9: free_allocated_memory 11@
0AB2: ret 0