shobhit-pathak / MatchZy

MatchZy is a plugin for CS2 (Counter Strike 2) for running and managing practice/pugs/scrims/matches with easy configuration and Get5 (G5API/G5V) support as well!
https://shobhit-pathak.github.io/MatchZy/
MIT License
221 stars 55 forks source link

BUG: Fix captain selection on Map veto #126

Closed sphaxa closed 2 months ago

sphaxa commented 2 months ago

Discovered this bug when developing a fork. When a match is loaded, players are not swapped to their correct teams. However, the map veto process assumes they are, so when the veto starts it will select captains based on in-game teams.

Example:

All this does is swap players to their correct teams and enforce jointeam restrictions during the veto process.

shobhit-pathak commented 2 months ago

Thanks for catching it and for the fix!