Posted March 4, 20214 yr 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?
March 4, 20214 yr 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.
March 6, 20214 yr 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)?
June 10, 20213 yr 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?
June 10, 20213 yr On 6/10/2021 at 11:15 AM, HughJanus said: What are the weapon types? Not entirely sure, but they might be the hashes returned by GET_WEAPONTYPE_GROUP.
June 10, 20213 yr Author On 6/10/2021 at 11:36 AM, LMS said: Not entirely sure, but they might be the hashes returned by GET_WEAPONTYPE_GROUP. I just found this https://docs.fivem.net/natives/?_0x131D401334815E94 And a value of 2 seems to work.
June 10, 20213 yr On 6/10/2021 at 11:42 AM, HughJanus said: I just found this https://docs.fivem.net/natives/?_0x131D401334815E94 And a value of 2 seems to work. Sweet!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.