Jump to content

Determining whether a bullet or weapon has damaged a certain bone?


 Share

Recommended Posts

I know the native GET_LAST_DAMAGE_BONE, but this one also returns bones when NPCs fall down, for example.

I would like to know if a bone has been damaged by an NPC or a weapon. Is there a way to figure this out?

Link to comment
Share on other sites

You could try combining it with _HAS_ENTITY_BEEN_DAMAGED_BY_WEAPON and _CLEAR_PED_LAST_WEAPON_DAMAGE. If you set the third parameter of _HAS_ENTITY_BEEN_DAMAGED_BY_WEAPON it will do a weapon type check instead of looking for one specific weapon (second parameter). So you do not have to do that many calls to figure it out.

  • Like 1
Link to comment
Share on other sites

Could someone let me make a mod with a version of the Lancaster repeater with 8 rounds capacity to simulate larger gauges like 30-30 and 45-70 and maybe increase the likelihood of gore effects (head and arms explosions)?

Link to comment
Share on other sites

  • 3 months later...
On 3/4/2021 at 3:26 PM, LMS said:

You could try combining it with _HAS_ENTITY_BEEN_DAMAGED_BY_WEAPON and _CLEAR_PED_LAST_WEAPON_DAMAGE. If you set the third parameter of _HAS_ENTITY_BEEN_DAMAGED_BY_WEAPON it will do a weapon type check instead of looking for one specific weapon (second parameter). So you do not have to do that many calls to figure it out.

 

What are the weapon types?

Link to comment
Share on other sites

21 minutes ago, HughJanus said:

 

What are the weapon types?

 

Not entirely sure, but they might be the hashes returned by GET_WEAPONTYPE_GROUP.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...