bodypart IDs
#1

The new bodypart parameter in OnPlayerGive/TakeDamage doesn't have values defined in any SA-MP includes. I am told they are different to the 'bone' IDs for SetPlayerAttachedObject. What are they?
Reply
#2

However it seems that they are the same as bone ID's since it links to the bone id's at the wiki page. Who told you that they are different?
Reply
#3

Quote:
Originally Posted by Cypress
Посмотреть сообщение
However it seems that they are the same as bone ID's since it links to the bone id's at the wiki page. Who told you that they are different?
The wiki page is wrong.
Reply
#4

Quote:
Originally Posted by Cypress
Посмотреть сообщение
However it seems that they are the same as bone ID's since it links to the bone id's at the wiki page.
No because, after shooting in head, callback returns bodypart = 9, and boneid 9 is left foot
Reply
#5

Quote:
Originally Posted by dugi
Посмотреть сообщение
The wiki page is wrong.
Well, someone has to correct it then, to avoid confusion.
Reply
#6

I made the wiki page and assumed they were the same due to the lack of definitions. Page edited. Apologies for the confusion.
Reply
#7

On the way now.
Reply
#8

Quote:
Originally Posted by rafikk
Посмотреть сообщение
No because, after shooting in head, callback returns bodypart = 9, and boneid 9 is left foot
Indeed, and explosions return bodypart 3, and that's the left upper arm lol.
Reply
#9

#define WEAPON_BODY_PART_CHEST 3
#define WEAPON_BODY_PART_CROTCH 4
#define WEAPON_BODY_PART_LEFT_ARM 5
#define WEAPON_BODY_PART_RIGHT_ARM 6
#define WEAPON_BODY_PART_LEFT_LEG 7
#define WEAPON_BODY_PART_RIGHT_LEG 8
#define WEAPON_BODY_PART_HEAD 9
Reply
#10

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
#define WEAPON_BODY_PART_CROTCH 4
Код:
if (bodypart == 4) return Kick(playerid); // The bastard!
Edit: or...

Код:
if (bodypart == 4) return DisableFapping(hitid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)