Quote Originally Posted by kung foo man View Post
The last few hunters will be the new zombies. So you need to:
- save the time of hunter-deaths: if (player.pers["team"] == "allies") player.lastDeath = getTime()
- on roundrestart, sort the players-array by player.lastDeath
- calculate the number of new zombies, e.g. n=1+int(players.size/4)
- make first n elements of the sorted array zombies, the other ones hunters
What is the function check: if (player.pers["team"] == "allies") player.lastDeath = getTime() ?? Why is this necessary ?