Skip to content

Misc dev - #365

Merged
Vauff merged 46 commits into
mainfrom
dev
Jul 24, 2025
Merged

Misc dev#365
Vauff merged 46 commits into
mainfrom
dev

Conversation

@Vauff

@Vauff Vauff commented Jul 15, 2025

Copy link
Copy Markdown
Contributor
  • Updated !setteam to be debug only, due to gamemode incompatibilities
  • Fixed debug build warning
  • Added !strip admin command
  • Added !give admin command
  • Added more weapon sounds to !stopsound
  • Increased game team limits when ZR is enabled
  • Fixed off-by-one error in invalid nomination min player check
  • Fixed variable in map system not being initialized at creation, incase a logic error skips initialization elsewhere
  • Improved zombie moan randomization
  • Fixed an edge case where saved map cooldowns could be lost
  • Removed player_ping cooldown for active leaders
  • Updated SDK
  • Added removal of active leaders when disabling cs2f_leader_enable
  • Fixed GetReason bug when an argument had double quotes
  • Fixed scroll buttons not working in game_ui
  • Fixed template spawns leaking causing significant performance issues
  • Fixed default map vote always being disabled when our map system was disabled
  • Fixed hitting a crash introduced by Valve when map vote had to be cancelled due to insufficient maps
  • Removed our mp_endmatch_votenextmap fix, due to a crash introduced by Valve making it non-viable
  • Hid disabled maps from showing in !nominate multiple match list
  • Fixed !setnextmap misusing HandlePlayerMapLookup
  • Reworked admin config to JSONC format, with new support for pre-defined groups
    • After updating, admins.cfg will be auto-converted to admins.jsonc
    • A copy of the original config will be saved as admins_old.cfg in case something goes wrong
  • Exposed admin ranks to MetaMod API
  • Allowed for same round changes to infection time cvars
  • Added map display name option that shows in map vote UI
  • Allowed null HTTP request completion callbacks
  • Added player colour reset after SetModel input, to prevent zclass/server customization persisting on unintended models
  • Fixed knife knockback regression from knockback refactor
  • Removed unneeded mega-velocity fix
  • Fixed git triggering full rebuilds with new versioning system
  • Reworked ZR purchase restrictions for more flexibility & proper AWS compatibility
    • Weapons now follow mp_weapons_allow_typecount (you probably want to set -1), and grenades follow ammo_grenade_limit_default, to match buy menu behaviour
  • Added cs2f_free_armor cvar which mimics mp_free_armor, due to the game cvar breaking kevlar rebuys in buy menu
  • Reverted to old beacon particle to fix particle randomly disappearing & size being dependent on client FPS
  • De-duplicated ZR class visuals code
  • Fixed some issues with the workaround for broken animations
  • Added hud system with HTML formatting & priority handling
  • Added classic spawn warning message (Feat: add classic spawn warning message #363)

Vauff and others added 30 commits June 3, 2025 17:53
Less clumping early on from mass infections
This is impossible to happen in practice (right now), but it's better to guard the code against this, incase a bug elsewhere in the code allows it to happen, like was the case in b31d782
+ very minor formatting changes
- This fix simply removes all double quotes, meaning they can no longer be used within the 'reason' itself as they will be stripped out
This was missed in my previous testing, due to starting the server with cvar enabled and only disabling it after, which meant the map list was loaded and m_iVoteSize check didn't fail
Valve broke them in the 2025-05-07 CS2 update by introducing a map change crash bug.

By extension, this bug also broke our mp_endmatch_votenextmap fix, because that also relied on the games default map selection to choose a map when all vote options were disabled. So I have opted to just remove it rather than keep a broken feature.
This allowed various behaviour bugs
- Change admin config format to .jsonc from .cfg
- Auto convert old admins.cfg files to admins.jsonc
- Add support for admin groups in admins.jsonc
- GetAdminImmunity returns 0 immunity if cannot find a matching CAdmin, as this is how targetting actually works
- SetAdminFlags and SetAdminImmunity return a bool on whether they succeeded or not
- SetAdminFlags and SetAdminImmunity will create a new CAdmin if one doesnt exist, rather than returning without doing anything
- Before zr_infect_spawn_time_min and zr_infect_spawn_time_max had to be set in the previous round, while this commit should allow changes while the timer is counting down
- Had possible value ranges mixed
May be used for hiding legs or as a hide replacement
Vauff and others added 12 commits July 6, 2025 16:28
Not only does this actually seem to be a server specific issue, the fix was not working anyways (random timing always triggers it after this)
Weapons now follow mp_weapons_allow_typecount (you probably want to set -1), and grenades follow ammo_grenade_limit_default, to match buy menu behaviour
Fixes particle randomly disappearing & size being dependent on client FPS
To avoid conflicting with env_hudhint usage in maps, CS2Fixes will now use this instead of HUD_PRINTCENTER
* Feat: add spawn warning message

* Feat: add warning to hud

* Remove unneeded variable

* Change default value of convar

* Adjust formatting

---------

Co-authored-by: Vauff <mctehkitti@gmail.com>
@Vauff Vauff changed the title Dev Misc dev Jul 15, 2025
@Vauff
Vauff enabled auto-merge (rebase) July 17, 2025 21:43
@Vauff
Vauff disabled auto-merge July 22, 2025 21:43
@Frozen-H2O
Frozen-H2O force-pushed the dev branch 2 times, most recently from ce79a9f to 61bc7a7 Compare July 22, 2025 22:21
@Vauff
Vauff enabled auto-merge (rebase) July 22, 2025 22:50
Comment thread src/utils/hud_manager.h Outdated
@Vauff
Vauff merged commit 7203027 into main Jul 24, 2025
6 checks passed
@Vauff
Vauff deleted the dev branch July 24, 2025 02:29
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.

4 participants