int WinningCondition_LMS()
{
entity first_player = NULL;
- int total_players = 0;
+ int totalplayers = 0;
FOREACH_CLIENT(IS_PLAYER(it), {
- if (!total_players)
+ if (!totalplayers)
first_player = it;
- ++total_players;
+ ++totalplayers;
});
- if (total_players)
+ if (totalplayers)
{
- if (total_players > 1)
+ if (totalplayers > 1)
{
// two or more active players - continue with the game
});
}
+// FIXME add support for sv_ready_restart_after_countdown
+// that is find a way to respawn/reset players IN GAME without setting lives to 0
+MUTATOR_HOOKFUNCTION(lms, ReadLevelCvars)
+{
+ // incompatible
+ sv_ready_restart_after_countdown = 0;
+}
+
MUTATOR_HOOKFUNCTION(lms, PutClientInServer)
{
entity player = M_ARGV(0, entity);
}
}
+// FIXME LMS doesn't allow clients to spectate due to its particular implementation
MUTATOR_HOOKFUNCTION(lms, AutoJoinOnConnection)
{
if(autocvar_g_campaign)