oscar-broman / samp-weapon-config

A more consistent and responsive damage system with many new features
Apache License 2.0
93 stars 83 forks source link

I have a problem with HIT_INVALID_DAMAGE #257

Open LeonardoClark opened 1 year ago

LeonardoClark commented 1 year ago

Some APK's are not counting the damage, that's right declined, for this reason HIT_INVALID_DAMAGE, has anyone else had this problem? what did you do to solve it?

If I disable this part, will it be possible to use damage hack?

What I noticed is that the damage sent from the APK is different from what is in the include. However I tried to adjust manually, it solved for some.

if ((err = ProcessDamage(playerid, issuerid, amount, weaponid, bodypart, bullets))) {
   if (err == WC_INVALID_DAMAGE) {
     AddRejectedHit(issuerid, playerid, HIT_INVALID_DAMAGE, weaponid, _:amount);
  }

 if (err != WC_INVALID_DISTANCE) {
     OnInvalidWeaponDamage(issuerid, playerid, amount, weaponid, bodypart, err, false);
 }

 return 0;
}
NexiusTailer commented 8 months ago

Find all the contacts of each android client author and tell them to fix it from their side, it is their responsibility. Nothing to fix in the server damage system as it works correctly now.