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 interaction rate limits #32527

Merged
merged 3 commits into from
Sep 29, 2024

Conversation

ElectroJr
Copy link
Member

@ElectroJr ElectroJr commented Sep 29, 2024

About the PR

Adds rate limits for interactions using PlayerRateLimitManager, which has been moved to shared. Alternative to #32518,

Why / Balance

Potentially prevents some abuse from people using macros or auto-clickers, and automatically notifies admins.
Balance wise, I have no idea if the default values for the rate limits are going to be reasonable. They will probably need tuning.

Breaking changes

  • Parts of PlayerRateLimitManager and some associated classes have been moved to shared (SharedPlayerRateLimitManager).
  • The rate limit period cvars now need to be floats instead of ints, and a negative admin notification cooldown now disables admin notifications.
  • Interactions going through InteractionSystem are now rate-limited. This may impact any forks that rely on spamming interactions, so the rate limit cvar values may need to be modified.

Changelog
🆑

  • tweak: There is now a rate limit for most interactions. It should not be noticeable most of the time, but may lead to mispredicts when spam-clicking.

@github-actions github-actions bot added the S: Needs Review Status: Requires additional reviews before being fully accepted label Sep 29, 2024
@metalgearsloth metalgearsloth merged commit f1f1fc1 into space-wizards:master Sep 29, 2024
11 checks passed
VMSolidus pushed a commit to Simple-Station/Einstein-Engines that referenced this pull request Nov 30, 2024
<!--
This is a semi-strict format, you can add/remove sections as needed but
the order/format should be kept the same
Remove these comments before submitting
-->

# Description

<!--
Explain this PR in as much detail as applicable

Some example prompts to consider:
How might this affect the game? The codebase?
What might be some alternatives to this?
How/Who does this benefit/hurt [the game/codebase]?
-->

Link to every PR I cherry-picked:
1. new-frontiers-14/frontier-station-14#2283
2. space-wizards/space-station-14#29219
3. space-wizards/space-station-14#30075
4. space-wizards/space-station-14#28639
5. space-wizards/space-station-14#32527
6. space-wizards/space-station-14#28030
7. space-wizards/space-station-14#28178

The main purpose of this PR is the first cherry-picked PR. It adds the
ability for admins to reply to ahelps via discord using an HTTP POST
request. See all relevant details in the initial PR by Myzumi.

---------

Co-authored-by: Myzumi <34660019+Myzumi@users.noreply.github.com>
Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>
Co-authored-by: Whatstone <whatston3@gmail.com>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
Co-authored-by: to4no_fix <156101927+chavonadelal@users.noreply.github.com>
Co-authored-by: Repo <47093363+Titian3@users.noreply.github.com>
Co-authored-by: Chief-Engineer <119664036+Chief-Engineer@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Pspritechologist pushed a commit to Simple-Station/Parkstation-Friendly-Chainsaw that referenced this pull request Dec 21, 2024
<!--
This is a semi-strict format, you can add/remove sections as needed but
the order/format should be kept the same
Remove these comments before submitting
-->

# Description

<!--
Explain this PR in as much detail as applicable

Some example prompts to consider:
How might this affect the game? The codebase?
What might be some alternatives to this?
How/Who does this benefit/hurt [the game/codebase]?
-->

Link to every PR I cherry-picked:
1. new-frontiers-14/frontier-station-14#2283
2. space-wizards/space-station-14#29219
3. space-wizards/space-station-14#30075
4. space-wizards/space-station-14#28639
5. space-wizards/space-station-14#32527
6. space-wizards/space-station-14#28030
7. space-wizards/space-station-14#28178

The main purpose of this PR is the first cherry-picked PR. It adds the
ability for admins to reply to ahelps via discord using an HTTP POST
request. See all relevant details in the initial PR by Myzumi.

---------

Co-authored-by: Myzumi <34660019+Myzumi@users.noreply.github.com>
Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com>
Co-authored-by: Whatstone <whatston3@gmail.com>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
Co-authored-by: to4no_fix <156101927+chavonadelal@users.noreply.github.com>
Co-authored-by: Repo <47093363+Titian3@users.noreply.github.com>
Co-authored-by: Chief-Engineer <119664036+Chief-Engineer@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Needs Review Status: Requires additional reviews before being fully accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants