ADD kill, death, assist stats

This commit is contained in:
2025-04-27 16:31:09 +02:00
parent 4deabdc16f
commit b576537fb5
6 changed files with 40 additions and 12 deletions

View File

@@ -39,6 +39,9 @@ class Match:
player.health = int(self.current_tick[self.current_tick["player_steamid"] == player.steam_id]["health"].values[0])
player.armour = int(self.current_tick[self.current_tick["player_steamid"] == player.steam_id]["armor_value"].values[0])
player.current_weapon = self.current_tick[self.current_tick["player_steamid"] == player.steam_id]["active_weapon_name"].values[0]
player.kills = int(self.current_tick[self.current_tick["player_steamid"] == player.steam_id]["kills_total"].values[0])
player.deaths = int(self.current_tick[self.current_tick["player_steamid"] == player.steam_id]["deaths_total"].values[0])
player.assists = int(self.current_tick[self.current_tick["player_steamid"] == player.steam_id]["assists_total"].values[0])
def _update_round(self) -> None:
if self.current_tick.empty:

View File

@@ -14,6 +14,10 @@ class Player:
self.is_shooting = False
self.current_weapon = None
self.kills = 0
self.deaths = 0
self.assists = 0
## UI-related state
self.is_selected = False
self.is_hovered = False