round_handler_Init(7, autocvar_g_onslaught_warmup, autocvar_g_onslaught_round_timelimit);
FOREACH_CLIENT(IS_PLAYER(it), {
- it.ons_roundlost = true;
+ STAT(ROUNDLOST, it) = true;
it.player_blocked = true;
nades_Clear(it);
MUTATOR_HOOKFUNCTION(ons, reset_map_global)
{
FOREACH_CLIENT(IS_PLAYER(it), {
- it.ons_roundlost = false;
+ STAT(ROUNDLOST, it) = false;
it.ons_deathloc = '0 0 0';
PutClientInServer(it);
});
entity spectatee = M_ARGV(0, entity);
entity client = M_ARGV(1, entity);
- client.ons_roundlost = spectatee.ons_roundlost; // make spectators see it too
+ STAT(ROUNDLOST, client) = STAT(ROUNDLOST, spectatee); // make spectators see it too
}
MUTATOR_HOOKFUNCTION(ons, SV_ParseClientCommand)