Skip to content

Configurable class limits#2003

Open
sunzenshen wants to merge 2 commits into
NeotokyoRebuild:masterfrom
sunzenshen:202-class-limits
Open

Configurable class limits#2003
sunzenshen wants to merge 2 commits into
NeotokyoRebuild:masterfrom
sunzenshen:202-class-limits

Conversation

@sunzenshen

@sunzenshen sunzenshen commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

Introduces ConVars sv_neo_class_limit_[recon/assault/support] to limit how many of each class can be spawned per team.

Toolchain

  • Windows MSVC VS2022

Linked Issues

@sunzenshen sunzenshen requested a review from AdamTadeusz July 1, 2026 05:53
@sunzenshen sunzenshen added the UI/HUD Relates to the HUD, NeoUI, menus, etc label Jul 1, 2026
@sunzenshen

sunzenshen commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Demo:

class_limits_poc.mp4

Sample config:

sv_neo_class_limit_recon 2;
sv_neo_class_limit_assault -1;
sv_neo_class_limit_support 1;

(-1 allows unlimited numbers of that class, 0 bans that class, and >0 sets a limit)

@sunzenshen sunzenshen marked this pull request as draft July 1, 2026 06:20
sunzenshen and others added 2 commits July 4, 2026 11:09
* Configurable class limits
* update class counts as players join and leave team
* use networked variables where available
* back to 3 class limits
* neobotmanager maintains class limits
@sunzenshen sunzenshen marked this pull request as ready for review July 4, 2026 17:59
@sunzenshen sunzenshen requested a review from a team July 4, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI/HUD Relates to the HUD, NeoUI, menus, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Class limits

2 participants