]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Survival, FT and CA: show eliminated players as soon as a player connects
authorterencehill <piuntn@gmail.com>
Thu, 8 Jun 2023 15:28:35 +0000 (17:28 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 8 Jun 2023 15:28:35 +0000 (17:28 +0200)
qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc
qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc
qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc

index 7a16141fc8ebbe89409b947cdfd9b979da571233..f0a793afd50f4d39aa2d28fe1e3bfc313e438e43 100644 (file)
@@ -270,6 +270,9 @@ MUTATOR_HOOKFUNCTION(ca, PutClientInServer)
                        Send_Notification(NOTIF_ONE_ONLY, player, MSG_INFO, INFO_CA_JOIN_LATE);
                }
        }
+
+       if (!warmup_stage)
+               eliminatedPlayers.SendFlags |= 1;
 }
 
 MUTATOR_HOOKFUNCTION(ca, reset_map_players)
index f1e6b1ce2ec0f5b7fb3f361f9674806459d525e6..77fbfc231633cda534ad78aeca6e3484cb2cfdbf 100644 (file)
@@ -429,6 +429,11 @@ MUTATOR_HOOKFUNCTION(ft, PlayerSpawn)
        return true;
 }
 
+MUTATOR_HOOKFUNCTION(ft, PutClientInServer)
+{
+       eliminatedPlayers.SendFlags |= 1;
+}
+
 MUTATOR_HOOKFUNCTION(ft, reset_map_players)
 {
        FOREACH_CLIENT(IS_PLAYER(it), {
index 6414686e0bcc67638503f6aaeda15ecb9e67754b..94748007ec3d6ee346751ef7bd3731693bf90d6a 100644 (file)
@@ -258,6 +258,9 @@ MUTATOR_HOOKFUNCTION(surv, PutClientInServer)
                        Send_Notification(NOTIF_ONE_ONLY, player, MSG_INFO, INFO_CA_JOIN_LATE);
                }
        }
+
+       if (!warmup_stage)
+               eliminatedPlayers.SendFlags |= 1;
 }
 
 MUTATOR_HOOKFUNCTION(surv, reset_map_players)