No godMode/invincible and nothing but the standard client on their side, I added some prints in to see the damage and also to show ko.damage and it showed I was doing damage to her but was not showing any prints past HasEntityBeenDamagedByWeapon. I made sure it was getting her ped by printing ko.ped and I could prove she was taking damage, I could prove that it knew ko.health < ko.prev but still nothing past that native. I am curious if the game is being sexist and because she was using mp_female. I don’t know and frankly I am stumped. The only thing I can think of that is different is we are modifying her max health too 200 when she joins because of the GTA problem of giving female peds 175 max health instead of 200. Not sure if that is causing any issues. I also tried reconfiguring the native and using other natives to see if I could find a work around but nothing works.
you might be able to just add a table in the config file and put all the weapon hash in there that way ppl can add to it if they have added weapons. But the HasEntityBeenDamagedByWeapon counts knives and such as melee weapons to. I dont know of anything thats just blunt melee. Also did you ever put this on github? If not its not hard and ppl can help contribute to it with you deciding if you want to merge the changes or not.
Haven’t put it on github but it’s open source and can view it in the first post Open Source Code section.
And that’s a good idea to specify which weapons, but the main issue seems that ClearEntityLastDamageEntity and/or ClearEntityLastWeaponDamage does not properly clear that info, so after you get melee’d just once then after bullets will register as melee