Skip to content

feat(core): tiered bot management#21

Open
Rushaway wants to merge 5 commits intomasterfrom
Rushaway-patch-1
Open

feat(core): tiered bot management#21
Rushaway wants to merge 5 commits intomasterfrom
Rushaway-patch-1

Conversation

@Rushaway
Copy link
Copy Markdown
Member

@Rushaway Rushaway commented Apr 4, 2026

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:

  • Added support for tiered bot limits configured via fakeclients_tiers.cfg.
  • Implemented logic to load and sort tier thresholds and max bot counts.
  • Adjusted bot spawning and kicking behavior to respect tier limits.
  • Added ConVar sm_fakeclients_tiers to enable or disable the tier system.
  • Improved bot join timing with staggered timers and random delays for realism.
  • Improved SourceTV detection logic
  • Change disconnect reason like real client

Benefits:

  • More realistic server population management.
  • Flexible configuration to suit different server sizes and player counts.
  • Prevents server overload by respecting max client slots and reserved slots.
  • Easy to enable or disable tier system without changing plugin code.

This update improves the overall player experience by maintaining balanced bot counts dynamically and efficiently.

Rushaway added 3 commits April 4, 2026 09:49
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.
Copilot AI review requested due to automatic review settings April 4, 2026 07:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.cfg configuration.

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.

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