]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc
Merge branch 'master' into TimePath/modules
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / onslaught / sv_onslaught.qc
index 9551e9d85ee34b035820bbc5d32c513cce6af9b0..f57625607a4114333779798d067adbcc23bba5a6 100644 (file)
@@ -1122,7 +1122,7 @@ bool Onslaught_CheckWinner()
        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);
@@ -1605,7 +1605,7 @@ bool ons_Teleport(entity player, entity tele_target, float range, bool tele_effe
 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);
        });
@@ -1880,7 +1880,7 @@ MUTATOR_HOOKFUNCTION(ons, SpectateCopy)
        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)