From d4ec8cf8b4013ab19aa7c9d33aba9d5a3a7a6060 Mon Sep 17 00:00:00 2001 From: furo Date: Sat, 7 Oct 2023 09:34:20 +0200 Subject: [PATCH] Don't disable practice on death. --- src/game/server/teams.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/game/server/teams.cpp b/src/game/server/teams.cpp index a98a2f8c7..86cb34869 100644 --- a/src/game/server/teams.cpp +++ b/src/game/server/teams.cpp @@ -1047,7 +1047,21 @@ void CGameTeams::OnCharacterDeath(int ClientID, int Weapon) if(g_Config.m_SvTeam == SV_TEAM_FORCED_SOLO && Team != TEAM_SUPER) { ChangeTeamState(Team, CGameTeams::TEAMSTATE_OPEN); - ResetRoundState(Team); + if(m_aPractice[Team]) + { + if(Weapon == WEAPON_SELF) + { + ResetRoundState(Team); + } + else + { + GameServer()->SendChatTeam(Team, "You died, but will stay in practice until you use kill."); + } + } + else + { + ResetRoundState(Team); + } } else if(Locked) {