Skip to content

Issue with custom team names during overtimes - how to determine the winner? #10

@borzaka

Description

@borzaka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions