Skip to content

Configurable class limits#2003

Merged
sunzenshen merged 2 commits into
NeotokyoRebuild:masterfrom
sunzenshen:202-class-limits
Jul 11, 2026
Merged

Configurable class limits#2003
sunzenshen merged 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 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
@AdamTadeusz AdamTadeusz removed their request for review July 6, 2026 10:40
@AdamTadeusz AdamTadeusz added the Tournament Priority Issues to be prioritized for the upcoming NT;RE tournament label Jul 6, 2026
@AdamTadeusz AdamTadeusz self-requested a review July 7, 2026 08:06
@AdamTadeusz AdamTadeusz requested a review from a team July 7, 2026 08:07
sunzenshen and others added 2 commits July 9, 2026 21:45
* 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 merged commit e3ce45b into NeotokyoRebuild:master Jul 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tournament Priority Issues to be prioritized for the upcoming NT;RE tournament UI/HUD Relates to the HUD, NeoUI, menus, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Class limits

3 participants