Add MoveSpec plugin for team captain selection
Description
This PR adds the MoveSpec plugin to MatchZy, providing a menu-driven team captain selection and player picking system for CS2 matches.
Features
- Admin commands to set team captains
- Move all players to spectator mode
- Menu-driven picking system for captains
- Alternating picks until 5v5 teams are formed
- Integration with MenuManager for UI
- Admin-only command access
Dependencies
- CounterStrikeSharp.API
- MenuManagerApi
- PlayerSettingsApi
Testing
The plugin has been tested and works with the latest version of CounterStrikeSharp and its dependencies.
Documentation
The plugin includes a README.md with installation and usage instructions.
@mrc4tt I've created a PR like you asked me to do.
@shobhit-pathak will check it when he has time. ;)
@shobhit-pathak will check it when he has time. ;)
Okay thanks! :D
Is it okay if it still has some bugs? it's still in development and wasn't tested in a real 5on5 match yet (still working on it), but the main features works, which I already tested.
@noxianwill From what I've seen, the plugin only selects captains if there are admins on the server, correct?
Admin Commands
css_tcapt <player name>-!tcapt <player name>- Sets the Terrorist (T) team captain and moves them to the T team.
css_ctcapt <player name>-!ctcapt <player name>- Sets the Counter-Terrorist (CT) team captain and moves them to the CT team.
css_spec-!spec- Moves all players (except the two captains) to spectator and starts the team picking process.
Wouldn't this automatic feature be possible and even more interesting? In other words, if all the necessary players click '!ready', the plugin chooses two captains, one for each team, and everyone except them is moved to SPEC, and they start choosing players.
Or even, after all necessary players type !ready, PUG/MIX only starts after two players type !capt and become captains, or an admin has already made two players captain.
Something similar to the CSGO/SourceMod PUG Setup - https://github.com/splewis/csgo-pug-setup (https://github.com/splewis/csgo-pug-setup/blob/master/scripting/pugsetup/captainpickmenus.sp)
@crashzk From what I've seen, the plugin only selects captains if there are admins on the server, correct?
- Correct.
Something similar to the CSGO/SourceMod PUG Setup - https://github.com/splewis/csgo-pug-setup (https://github.com/splewis/csgo-pug-setup/blob/master/scripting/pugsetup/captainpickmenus.sp)
For the !ready command, I honestly didn't want to touch the matchzy plugin codebase, but would be nice if it's merged all together by @shobhit-pathak
This plugin is an addon to this one to have a full complete plugin like the one PugSetup
if this is added I feel like it should be a different branch, pugs are quite a bit away from prac/scrims/matches for which MatchZy was/is designed