#include <server/round_handler.qh>
#include <server/scores.qh>
#include <server/teamplay.qh>
+#include <server/weapons/accuracy.qh>
#include <server/world.qh>
// =============================================
{
if (game_stopped)
return;
+
+ PlayerStats_GameReport_Reset_All();
if (round_handler_IsActive())
round_handler_Reset(game_starttime);
}
shuffleteams_on_reset_map = false;
}
- FOREACH_CLIENT(IS_PLAYER(it),
- {
+ FOREACH_CLIENT(true, {
+ if (time <= game_starttime)
+ accuracy_reset(it); // for spectators too because weapon accuracy is persistent
+ if (!IS_PLAYER(it))
+ continue;
if (STAT(FROZEN, it))
Unfreeze(it, false);
player_powerups_remove_all(it);
FOREACH_CLIENT(IS_PLAYER(it), {
it.alivetime = 0;
CS(it).killcount = 0;
- float val = PlayerStats_GameReport_Event_Player(it, PLAYERSTATS_ALIVETIME, 0);
- PlayerStats_GameReport_Event_Player(it, PLAYERSTATS_ALIVETIME, -val);
});
// if we're ending the warmup stage call the corresponding hook