Open
Conversation
Refactored FakeClients plugin to implement a tier system for managing fake clients based on real player counts. Added support for loading tier configurations and improved client management logic.
This README provides an overview of the SourceMod plugin that adds dynamic fake clients to a server, including installation instructions, configuration details, and troubleshooting tips.
There was a problem hiding this comment.
Pull request overview
Adds a tier-based fake client (bot) management system to the FakeClients SourceMod plugin so bot counts automatically scale with the current real-player population, driven by a KeyValues config file.
Changes:
- Introduces tier parsing/sorting and tier-driven target bot calculation with reserved-slot awareness.
- Updates bot add/kick logic to use staggered timers with jitter and improved SourceTV detection.
- Adds documentation (README) and a default
fakeclients_tiers.cfgconfiguration.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| README.md | Documents the new tier system, configuration, and ConVars. |
| addons/sourcemod/scripting/FakeClients.sp | Implements tier loading, dynamic target computation, and staggered bot add/kick behavior. |
| addons/sourcemod/configs/fakeclients_tiers.cfg | Provides default tier thresholds → max-bot limits. |
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 PR introduces a dynamic tier system to the FakeClients plugin, allowing the number of fake clients (bots) to adjust automatically based on the current number of real players on the server.
Changes:
fakeclients_tiers.cfg.sm_fakeclients_tiersto enable or disable the tier system.Benefits:
This update improves the overall player experience by maintaining balanced bot counts dynamically and efficiently.