Skip to content

Add MoveSpec plugin for team captain selection#297

Open
noxianwill wants to merge 1 commit intoshobhit-pathak:devfrom
noxianwill:feature/movespec
Open

Add MoveSpec plugin for team captain selection#297
noxianwill wants to merge 1 commit intoshobhit-pathak:devfrom
noxianwill:feature/movespec

Conversation

@noxianwill
Copy link

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
Copy link
Author

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

@mrc4tt
Copy link
Contributor

mrc4tt commented Jun 4, 2025

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

@noxianwill
Copy link
Author

@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.

@crashzk
Copy link
Contributor

crashzk commented Sep 28, 2025

@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)

@noxianwill noxianwill closed this Sep 28, 2025
@noxianwill noxianwill reopened this Sep 28, 2025
@noxianwill
Copy link
Author

noxianwill commented Sep 28, 2025

@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

@michihupf
Copy link
Contributor

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

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