Skip to content

Fix non-working auto class selection hotkey and other JoinClass menu fixes#16

Merged
a1batross merged 1 commit into
Velaron:cs16-clientfrom
Vladislav4KZ:joinclass-fixes
May 16, 2026
Merged

Fix non-working auto class selection hotkey and other JoinClass menu fixes#16
a1batross merged 1 commit into
Velaron:cs16-clientfrom
Vladislav4KZ:joinclass-fixes

Conversation

@Vladislav4KZ
Copy link
Copy Markdown

  • Replaced the 1D flat string array table with a strongly-typed ClassEntry struct for better memory safety and readability.
  • Removed magic numbers (e.g. 5 * 6) and hardcoded array index jumps.
  • Separated the Condition Zero class (militia/spetsnaz) and Auto-Select logic from the main CS 1.6 iteration loop for clean architectural decoupling.
  • Fixed a silent bug where Auto-Select would incorrectly send "joinclass 6" in CS 1.6 instead of "joinclass 5".
  • Replaced hardcoded command strings with dynamic CUtlString::Format generation.

* Replaced the 1D flat string array table with a strongly-typed ClassEntry struct for better memory safety and readability.
* Removed magic numbers (e.g. 5 * 6) and hardcoded array index jumps.
* Separated the Condition Zero class (militia/spetsnaz) and Auto-Select logic from the main CS 1.6 iteration loop for clean architectural decoupling.
* Fixed a silent bug where Auto-Select would incorrectly send "joinclass 6" in CS 1.6 instead of "joinclass 5".
* Replaced hardcoded command strings with dynamic CUtlString::Format generation.
@a1batross a1batross merged commit a92c33f into Velaron:cs16-client May 16, 2026
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