MatchZy icon indicating copy to clipboard operation
MatchZy copied to clipboard

Add MoveSpec plugin for team captain selection

Open noxianwill opened this issue 7 months ago • 6 comments

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.

noxianwill avatar Jun 04 '25 11:06 noxianwill

@mrc4tt I've created a PR like you asked me to do.

noxianwill avatar Jun 04 '25 11:06 noxianwill

@shobhit-pathak will check it when he has time. ;)

mrc4tt avatar Jun 04 '25 11:06 mrc4tt

@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 avatar Jun 04 '25 12:06 noxianwill

@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 avatar Sep 28 '25 12:09 crashzk

@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

noxianwill avatar Sep 28 '25 16:09 noxianwill

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

michihupf avatar Oct 08 '25 12:10 michihupf