Playtime stats between players only; no ping; page-wide grid

K/D, headshot %, kills and deaths (drawer, Top players, staff session
lists) now come from pt_events, so kills of bots and deaths to bots don't
count, as in Records; damage per round and MVPs are gone, since only the
game's counters have them and those include bots. Average ping and the
record count footnote are no longer shown. The server header's grid now
runs behind the whole page.
This commit is contained in:
Astra 2026-10-04 22:41:12 +01:00
parent c7fbff0e43
commit 2516759fa9
6 changed files with 120 additions and 81 deletions

View file

@ -169,12 +169,14 @@ SAW_PT_DSN=pt_web:<password>@tcp(<db-host>:3306)/playtime_history
PlaytimeHistory 0.2.0+ (its `pt_events` table), also Records: the most bomb plants, defuses,
knife kills, Zeus kills and headshot kills for the same periods, counted as they happen, never in
warmup, and not counting kills of bots. Player pages get time played with the T/CT/spectating
split, the last 30 days, K/D, headshots, damage per round, MVPs, their record counts and
favourite maps.
split, the last 30 days, K/D, headshot %, kills and deaths, their record counts and
favourite maps. Kills, deaths and headshots (here, on Top players and in staff session lists)
are between players only, from `pt_events`: kills of bots, deaths to bots and suicides don't
count, so they start with PlaytimeHistory 0.2.0.
- **Staff** with `@css/generic` (PlaytimeHistory's own default for looking up others) get, on the
staff panel's Playtime page and on the public site while signed in: who's on now with how long,
team, ping and location; each staff member's time in the last 7 or 30 days; disconnect reasons;
countries; and in player drawers, the names they've used, recent sessions, location and ping.
countries; and in player drawers, the names they've used, recent sessions and location.
Root also sees whether the plugin is loaded and what `css_pt_status` says. Who's on comes from
the live status, so admins hidden with `css_hide` stay hidden.
- **Days and hours of the day** are in the viewer's own time zone (the browser sends it). An hour