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

Various anticheat improvements #4951

Closed
wants to merge 5 commits into from
Closed

Various anticheat improvements #4951

wants to merge 5 commits into from

Conversation

sfan5
Copy link
Member

@sfan5 sfan5 commented Dec 22, 2016

No description provided.

@sfan5 sfan5 added @ Server / Client / Env. Feature ✨ PRs that add or enhance a feature labels Dec 22, 2016
@est31
Copy link
Contributor

est31 commented Dec 23, 2016

It looks good, but what is the "Do 'interact' privilege check first" commit needed for?

@sfan5
Copy link
Member Author

sfan5 commented Dec 23, 2016

@est31
It makes no sense to do the range check and report a cheat violation to Lua when the player can't interact generally anyway.

@est31
Copy link
Contributor

est31 commented Dec 23, 2016

Well, I guess a better error message means improvement

👍

@lhofhansl
Copy link
Contributor

FWIW: 👍

@Fixer-007
Copy link
Contributor

Fixer-007 commented Dec 24, 2016

There is another commit added here that prevents taking your bones after death by clicking Respawn and then bones. 👍

@sfan5
Copy link
Member Author

sfan5 commented Dec 26, 2016

b16252d

@sfan5 sfan5 closed this Dec 26, 2016
@sfan5 sfan5 deleted the a1 branch December 26, 2016 21:42
@lhofhansl
Copy link
Contributor

@sfan5 Seems that I am getting this in legitimate cases as well:
2016-12-29 09:35:47: ACTION[Server]: Player Lars tried to access [node under=-179,23,193 above=-179,23,192] from too far: d=62.5343, max_d=40. ignoring.

This is hitting some leaves with a diamond sword. Seems that it's picking up the BS * 4.0 case.

@lhofhansl
Copy link
Contributor

It seems itemDef range and hand range are always -1.

@lhofhansl
Copy link
Contributor

Perhaps a guess, but perhaps the factor should be sqrt(3) ~= 1.73 instead of 1.5, if one reaches out diagonally. In fact the largest distance that was rejected I could manage was 67.53. 67.53/40 ~= 1.688.

@ghost ghost mentioned this pull request Jul 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants