You can package the
Slayer_MinigameSO::victoryCheck_lives(%this) function.
Return values:
- -1 There are still multiple people standing, continue the round.
- 0 Everybody is dead, end round.
- object It will return a client or team object if they are the last one standing, end round.
Hint: Look at the value that the parent returns to check if there is one person left.
Hint: Return -1 in your package if you wish to prevent the round from ending.
Can you figure out where to go from there?
Some additional functions that are useful but you might not need:
%mini.getLiving() - returns living member count
%team.getLiving() - returns living member count of team
%team.getSpawned() - returns number of members on team that have a player
%client.dead() - Determines if a client can respawn.
%client.setDead(bool) - Sets whether a client can respawn or not.