Skip to content

Disable practice mode when player touches a map/bonus start zone.#321

Merged
dPexxIAM merged 1 commit intosurftimer:masterfrom
1zc:saveloc-patch
Sep 28, 2021
Merged

Disable practice mode when player touches a map/bonus start zone.#321
dPexxIAM merged 1 commit intosurftimer:masterfrom
1zc:saveloc-patch

Conversation

@1zc
Copy link
Copy Markdown
Member

@1zc 1zc commented Sep 28, 2021

Currently, the timer disables Practice Mode for a player only when they exit the start zone. This has left room for an exploit in the current release that allows players to bypass limitations placed in the start-zone as a result of still being in Practice Mode after failing.

Since g_bPracticeMode[client] is still true when a player is in the start-zone after failing, they can bypass the prespeed limiter and prehop infinitely to give themselves a massive advantage. (i.e, players can enter practice mode, fail by hitting a reset trigger, and then prehop infinitely in the start zone.)

This pull request turns off Practice Mode for a player when they enter a start zone rather than when they exit one. This prevents the above exploit from being possible.

@dPexxIAM dPexxIAM enabled auto-merge (squash) September 28, 2021 13:35
Copy link
Copy Markdown
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.

ty!

@dPexxIAM dPexxIAM merged commit a62fd55 into surftimer:master Sep 28, 2021
Kyli3Boi pushed a commit to Kyli3Boi/Surftimer-Official that referenced this pull request Sep 28, 2021
Kyli3Boi pushed a commit to Kyli3Boi/Surftimer-Official that referenced this pull request Sep 28, 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