Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have a problem with HIT_INVALID_DAMAGE #257

Open
LeonardoClark opened this issue Mar 25, 2023 · 1 comment
Open

I have a problem with HIT_INVALID_DAMAGE #257

LeonardoClark opened this issue Mar 25, 2023 · 1 comment

Comments

@LeonardoClark
Copy link

LeonardoClark commented Mar 25, 2023

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
Copy link
Contributor

NexiusTailer commented Nov 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants