Report cumulative player scores alongside balances
This commit is contained in:
@@ -158,6 +158,8 @@ telemetry_report_round()
|
||||
telemetry_game_end_watcher()
|
||||
{
|
||||
// One waiter consumes the first end signal, even if a map fires all three.
|
||||
// Stock end_game yields before player_intermission replaces score with
|
||||
// score_total. Serialize here without waiting so score stays spendable.
|
||||
level waittill_any("end_game", "game_ended", "intermission");
|
||||
telemetry_log(1, "Game-end signal received; stopping producers and draining queue");
|
||||
|
||||
@@ -227,8 +229,9 @@ telemetry_players_json(include_stats)
|
||||
data["headshots"] = telemetry_stat(player, "headshots");
|
||||
data["downs"] = telemetry_stat(player, "downs");
|
||||
data["revives"] = telemetry_stat(player, "revives");
|
||||
// Current spendable points, not the lifetime points-earned stat.
|
||||
// Stock match total is independent of the spendable balance.
|
||||
data["score"] = telemetry_nonnegative_int(player.score);
|
||||
data["score_total"] = telemetry_nonnegative_int(player.score_total);
|
||||
}
|
||||
|
||||
if (body != "[")
|
||||
|
||||
Reference in New Issue
Block a user