HughJanus 244 Posted March 4, 2021 Share Posted March 4, 2021 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? Quote Link to comment Share on other sites More sharing options...
LMS 673 Posted March 4, 2021 Share Posted March 4, 2021 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. 1 Quote Link to comment Share on other sites More sharing options...
HughJanus 244 Posted March 5, 2021 Author Share Posted March 5, 2021 Thanks for the quick response. I will try your suggested solution. Quote Link to comment Share on other sites More sharing options...
yuri0392 0 Posted March 6, 2021 Share Posted March 6, 2021 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)? Quote Link to comment Share on other sites More sharing options...
HughJanus 244 Posted June 10, 2021 Author Share Posted June 10, 2021 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? Quote Link to comment Share on other sites More sharing options...
LMS 673 Posted June 10, 2021 Share Posted June 10, 2021 21 minutes ago, HughJanus said: What are the weapon types? Not entirely sure, but they might be the hashes returned by GET_WEAPONTYPE_GROUP. Quote Link to comment Share on other sites More sharing options...
HughJanus 244 Posted June 10, 2021 Author Share Posted June 10, 2021 5 minutes ago, 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. Quote Link to comment Share on other sites More sharing options...
LMS 673 Posted June 10, 2021 Share Posted June 10, 2021 2 minutes ago, HughJanus said: I just found this https://docs.fivem.net/natives/?_0x131D401334815E94 And a value of 2 seems to work. Sweet! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.