Help [CLEO] Bones vector3d offset

Status
Not open for further replies.

Kitt3r

New member
Joined
Oct 3, 2023
Messages
4
Reaction score
0
Hey guys. does anyone know how to get player bones vector3d?
what im trying to do is to get bone XYZ vector offset, but i have no idea how.
i tried to set them like this:
C++:
0C0D: struct 2@ offset 27 size 4 = -0.016 -0.016 // X offset
0C0D: struct 2@ offset 31 size 4 = 0.120 0.120 // Y offset
0C0D: struct 2@ offset 35 size 4 = 0.791 0.791 // Z offset ; its gonna hit head all the time
but i realize that in every angle cords are diferend, same as if player is crouched.

@SobFoX
@monday
@Opcode.eXe
@ajom
etc?
 

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,386
Solutions
4
Reaction score
893
Location
Israel
Hey guys. does anyone know how to get player bones vector3d?
what im trying to do is to get bone XYZ vector offset, but i have no idea how.
i tried to set them like this:
C++:
0C0D: struct 2@ offset 27 size 4 = -0.016 -0.016 // X offset
0C0D: struct 2@ offset 31 size 4 = 0.120 0.120 // Y offset
0C0D: struct 2@ offset 35 size 4 = 0.791 0.791 // Z offset ; its gonna hit head all the time
but i realize that in every angle cords are diferend, same as if player is crouched.

@SobFoX
@monday
@Opcode.eXe
@ajom
etc?
This should help you, you need to call the function
 

Kitt3r

New member
Joined
Oct 3, 2023
Messages
4
Reaction score
0
This should help you, you need to call the function
thanks for response brother, but i've already use this snippet, but thats not what Im trying to explain here. this snippet gets XYZ cords from selected bone, but not the bone offset thats called vector3d.
i even tried to change bone offset but it change default bone location and every bone default offset is 0.0

what im trying to do, is to send silent bullets at bones position
im using this snippet for that
 

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,386
Solutions
4
Reaction score
893
Location
Israel
thanks for response brother, but i've already use this snippet, but thats not what Im trying to explain here. this snippet gets XYZ cords from selected bone, but not the bone offset thats called vector3d.
i even tried to change bone offset but it change default bone location and every bone default offset is 0.0

what im trying to do, is to send silent bullets at bones position
im using this snippet for that
bulletdata->center[x] = bonepos[x] - pedpos[x];
bulletdata->targetpos[x] = bonepos[x];

The API of SAMPFUNCS to CLEO is not so clear, to understand what center and TARGETPOS are, look at the structure of this STRUCTS
In sobeit or Google samp.lua and you can see the structure of this package
 

Kitt3r

New member
Joined
Oct 3, 2023
Messages
4
Reaction score
0
bulletdata->center[x] = bonepos[x] - pedpos[x];
bulletdata->targetpos[x] = bonepos[x];

The API of SAMPFUNCS to CLEO is not so clear, to understand what center and TARGETPOS are, look at the structure of this STRUCTS
In sobeit or Google samp.lua and you can see the structure of this package
i dont get it, can u explain more what do u mean? :unsure:

bulletdata->center[x] = bonepos[x] - pedpos[x];
bulletdata->targetpos[x] = bonepos[x];
 

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,386
Solutions
4
Reaction score
893
Location
Israel
i dont get it, can u explain more what do u mean? :unsure:

bulletdata->center[x] = bonepos[x] - pedpos[x];
bulletdata->targetpos[x] = bonepos[x];
It's already your problem, that you don't understand what it is at all Bulletdata
 
Solution

Kitt3r

New member
Joined
Oct 3, 2023
Messages
4
Reaction score
0
i fixed it. now it works fine. thank you for your help even if u rude or angry bc i didnt uderstand all about bulletdata. u can lock the topic.
 

SobFoX

Expert
Joined
Jul 14, 2015
Messages
1,386
Solutions
4
Reaction score
893
Location
Israel
Not rude, just explaining to you and you not referring to the information I gave is problematic

I don't have a private tutor written on me
 
Status
Not open for further replies.
Top