Jump to content

Featured Replies

Posted

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?

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.

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

  • 3 months later...
  • Author
  On 3/4/2021 at 2: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?

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...