pnxenopoulos / awpy

Python library to parse, analyze and visualize Counter-Strike 2 data
http://www.awpycs.com
MIT License
383 stars 57 forks source link

HLTV Rating #310

Closed pnxenopoulos closed 3 months ago

pnxenopoulos commented 7 months ago

We want to calculate a "Rating", similar to HLTV's, for t, ct, and all, using the following formula:

Rating = (
            0.0073 * player["kast"]
            + 0.3591 * (player["kills"] / player["totalRounds"])
            - 0.5329 * (player["deaths"] / player["totalRounds"])
            + 0.2372 * (impact)
            + 0.0032 * (player["adr"])
            + 0.1587
        )

where

impact = (
            2.13 * (player["kills"] / player["totalRounds"])
            + 0.42 * (player["assists"] / player["totalRounds"])
            - 0.41
        )