X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Fonslaught%2Fsv_onslaught.qc;h=f57625607a4114333779798d067adbcc23bba5a6;hp=9551e9d85ee34b035820bbc5d32c513cce6af9b0;hb=4ee2807b2d8f808928ef14b3e814945b3edb4350;hpb=79eebf87e68861e205a8754d6551bd0aa2229c44 diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc index 9551e9d85e..f57625607a 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc @@ -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)