From 054973dd223efab6feed32e3eec56b8b6e442cd9 Mon Sep 17 00:00:00 2001 From: Xylemon Date: Mon, 24 Apr 2023 22:08:07 -0700 Subject: [PATCH] Gamemode Standard Hunting: move this out to gamerules.qc --- src/server/gamerules_hunt.qc | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/server/gamerules_hunt.qc b/src/server/gamerules_hunt.qc index 7ed7784..0a8c3f7 100644 --- a/src/server/gamerules_hunt.qc +++ b/src/server/gamerules_hunt.qc @@ -1,31 +1,3 @@ -void -SHGameHunt::RegisterSciDeath(void) -{ - super::RegisterSciDeath(); - - if (m_iScientistsAlive > 0) - return; - - switch (g_chosen_mode) { - case SHMODE_STANDARD: - if (m_iKillsTeam1 > m_iKillsTeam2) { - m_iScoreTeam1++; - env_message_broadcast("Red team has won!"); - } else if (m_iKillsTeam1 > m_iKillsTeam2) { - m_iScoreTeam2++; - env_message_broadcast("Blue team has won!"); - } else { - env_message_broadcast("Both teams are tied!"); - } - - forceinfokey(world, "teamscore_1", sprintf("%i", m_iScoreTeam1)); - forceinfokey(world, "teamscore_2", sprintf("%i", m_iScoreTeam2)); - think = RestartRound; - nextthink = time + 5.0f; - break; - } -} - void SHGameHunt::SHGameHunt(void) {