splewis / get5

CS:GO Sourcemod plugin for competitive matches/scrims
GNU General Public License v3.0
557 stars 174 forks source link

0.10.2 #876

Closed nickdnk closed 2 years ago

nickdnk commented 2 years ago

It seems there are some problems related to spectators and the priority of team-selection if a player is defined in multiple places in a match configuration.

  1. This change ensures that team assignment is always in this priority:

    1. Spectator
    2. Coach for team1
    3. Coach for team2
    4. Player on team1
    5. Player on team2
  2. Spectators cannot ".coach" and they will be removed if they exceed the mp_spectators_max cvar.

  3. Renamed GetTeamAuths to GetTeamPlayers, so it has more consistent naming, as the one for coaches simply is GetTeamCoaches. Renamed g_TeamAuths to g_TeamPlayers as well.

  4. GetAuthMatchCoachTeam has been merged into GetMatchTeamFromAuth and renamed for a single-point-of-entry that handles the logical flow for which team you belong to.

  5. Consistently reset the player auth arrays when loading teams or spectator dictionaries. This was a bit hit-and-miss before.

  6. Allow spectators in scrim templates, which this new logic allows.

  7. Avoid duplicate calls to GetClientMatchTeam in GetPlayerStat + GetPlayerStat when incrementing stats. Tested and works.

I would like to release this as 0.10.2.