Skip to content

Detect halftime resets and deal with them #18

Open
@andrewda

Description

@andrewda

Some tournaments (at least ESL and ESEA) reset the score at halftime which makes HLTV think the half is starting from 0-0. We should detect this and deal with it.

half 1 score + half 2 score = real score

A potential solution:

When the reset event is fired, check if the score is equal to 15. If it is, save it as the half 1 score and add that to the half 2 score whenever emitting the score.

A potential issue with this solution is if the warmups of the server end at 15 rounds, and so everything after that is considered the second half, even if it really is the first half.

To deal with this issue, we might need to also implement "real round" detection, but this could be very tricky. There are a few ways we could do this, noted in #19.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions