-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I'am trying to figure out a problem with custom team names pairing with the winning team. Recently I have added saving custom team names to the db with my PR. Basically it saves the mp_teamname_1
and mp_teamname_2
cvars to the db, which is working fine.
mp_teamname_1
is for setting custom team name for the CT team, mp_teamname_2
is for the T team.
The problem is;
During the whole match, these cvars stays the same, not switching during halfs.
So, if you start as a CT, and win a match as a T, which cvar should be used? Always the opposite team one? And what about overtimes? How could we know which custom team name won?
I guess the main problems is with overtimes. If you start as a CT, and win as a T, your custom team name is come from mp_teamname_1
(the team you started in).
In the database, team_2 score means T score, team_3 score means CT score by the end of the match.
I tried GetTeamName() but it's just returns a TERRORIST or a CT string.
Goal: get the winning team name. Or get the winning team starting side.