feature: MaxTeamNadesPerType configuration#202
Open
erikpeik wants to merge 3 commits intoyonilerner:mainfrom
Open
feature: MaxTeamNadesPerType configuration#202erikpeik wants to merge 3 commits intoyonilerner:mainfrom
erikpeik wants to merge 3 commits intoyonilerner:mainfrom
Conversation
- Introduced MaxTeamNadesPerType setting to limit specific nade types per team. - Updated NadeHelpers to enforce per-type limits during allocation. - Added tests to verify max nade restrictions for different round types. - Bumped version to 2.5.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a new feature for configuring per-team, per-nade-type limits, allowing server admins to restrict specific grenade types (e.g., smokes) for each team and round type.
New configuration feature: Per-team, per-nade-type limits
Added the
MaxTeamNadesPerTypeconfig option, allowing admins to set limits for each nade type per team and round type (e.g., max 2 smokes for Terrorists on pistol rounds). This is implemented inConfigs.cs,NadeHelpers.cs, and described in theREADME.md.The nade allocation logic in
NadeHelpers.csnow enforces both per-player and per-team per-type limits when distributing grenades.Documentation and configuration updates
README.mdto document the newMaxTeamNadesPerTypeoption, provide configuration examples, and improve formatting of external links.Dependency and version updates
CounterStrikeSharp.APIdependency to version1.0.341in bothRetakesAllocator.csprojandRetakesAllocatorCore.csproj.