SA-MP Forums Archive
bodypart IDs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: bodypart IDs (/showthread.php?tid=488017)



bodypart IDs - MP2 - 16.01.2014

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?


Re: bodypart IDs - Cypress - 16.01.2014

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?


Re: bodypart IDs - dugi - 16.01.2014

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.


Re: bodypart IDs - rafikk - 16.01.2014

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


Re: bodypart IDs - Cypress - 16.01.2014

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


Re: bodypart IDs - MP2 - 16.01.2014

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


Re: bodypart IDs - Kyle - 16.01.2014

On the way now.


Re: bodypart IDs - Basssiiie - 16.01.2014

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.


Re: bodypart IDs - Kyle - 16.01.2014

#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


Re: bodypart IDs - Basssiiie - 16.01.2014

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);