Die Hard Mode
Hi guys i was thinking what is the code for something like diehard but only for one team and when you ''die'' you get in last stand? Please help.. I saw a CoD4 video and think this is possible on cod6
watchGameEnd()
{
while (1)
{
if (level.everExisted["allies"])
{
playing = 0;
dead = 0;
for (i=0; i<=level.humanPlayers.size; i++)
{
if (isalive(level.humanPlayers[i]))
{
playing ++;
if (level.humanPlayers[i].isDown)
dead ++;
}
}
if ( dead == playing)
break;
}
wait .1;
}
thread doEndGame();
}
doEndGame()
{
wait .1;
maps\mp\gametypes\_globallogic::endGame("axis", "No more survivors!");
}