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

Add LG/SM cTime thresholds for prehop prevention #285

Merged
merged 2 commits into from
Sep 4, 2021
Merged

Add LG/SM cTime thresholds for prehop prevention #285

merged 2 commits into from
Sep 4, 2021

Conversation

1zc
Copy link
Member

@1zc 1zc commented Aug 18, 2021

I figured out a way to extend the existing pre-hop prevention to accommodate the slower styles (Low-Gravity and Slow-Motion) by adding cTime thresholds that meet the style's requirements when checking for whether a player is currently in a bhop.

I initially tried re-working the system in agreement with sneaK's comment that the current system is pretty bad, but I ended up just giving up and trying to extend the current system. Until we get a full re-work, this should prevent pre-hopping in both Low-Gravity and Slow-Motion.

cTime Measurements:
image

Copy link
Contributor

@dPexxIAM dPexxIAM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@1zc
Copy link
Member Author

1zc commented Aug 19, 2021

@dPexxIAM It appears I have, I'll add LG/SM thresholds for that later today

@1zc
Copy link
Member Author

1zc commented Aug 24, 2021

@dPexxIAM I've updated the one-jump limiter to work with the LG and SM styles, let me know if I've missed something!

Also, this should fix issue #153.

@dPexxIAM dPexxIAM merged commit 67e25ae into surftimer:master Sep 4, 2021
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

Successfully merging this pull request may close these issues.

2 participants