Gamemode Standard Hunting: move this out to gamerules.qc
This commit is contained in:
parent
4aca5e6540
commit
054973dd22
1 changed files with 0 additions and 28 deletions
|
@ -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
|
void
|
||||||
SHGameHunt::SHGameHunt(void)
|
SHGameHunt::SHGameHunt(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue