set g_lms_last_join 3 "if g_lms_join_anytime is false, new players can only join if the worst active player has more than (fraglimit - g_lms_last_join) lives"
set g_lms_join_anytime 1 "if true, new players can join, but get same amount of lives as the worst player"
set g_lms_weaponarena "most_available" "starting weapons - takes the same options as g_weaponarena"
+set g_lms_forcejoin 0 "if true, new players are forced to join in the game"
// =========
bool autocvar_g_lms_join_anytime;
int autocvar_g_lms_last_join;
bool autocvar_g_lms_regenerate;
+bool autocvar_g_lms_forcejoin;
// main functions
int LMS_NewPlayerLives()
}
}
-// FIXME LMS doesn't allow clients to spectate due to its particular implementation
+// LMS doesn't allow clients to spectate due to its particular implementation
MUTATOR_HOOKFUNCTION(lms, AutoJoinOnConnection)
{
- if(autocvar_g_campaign)
+ if(autocvar_g_campaign || !autocvar_g_lms_forcejoin)
return false;
+
return true;
}