From b8b554363b516af916ff3c7e8ee1349516d5be6c Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 8 Jun 2023 17:28:35 +0200 Subject: [PATCH] Survival, FT and CA: show eliminated players as soon as a player connects --- qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc | 3 +++ qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc | 5 +++++ qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc | 3 +++ 3 files changed, 11 insertions(+) diff --git a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc index 7a16141fc..f0a793afd 100644 --- a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc +++ b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc @@ -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) diff --git a/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc b/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc index f1e6b1ce2..77fbfc231 100644 --- a/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc +++ b/qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc @@ -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), { diff --git a/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc b/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc index 6414686e0..94748007e 100644 --- a/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc +++ b/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc @@ -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) -- 2.39.2