Add CVar for loser shuffle

This commit is contained in:
Sally Coolatta 2024-10-04 10:02:31 -04:00
parent 83e1dc415a
commit 5dd41db100
3 changed files with 4 additions and 2 deletions

View file

@ -742,6 +742,8 @@ void LiveStudioAudience_OnChange(void);
consvar_t cv_maxplayers = NetVar("maxplayers", "8").min_max(1, MAXPLAYERS);
consvar_t cv_shuffleloser = NetVar("shuffleloser", "On").on_off();
// Scoring type options
consvar_t cv_overtime = UnsavedNetVar("overtime", "Yes").yes_no();

View file

@ -63,7 +63,7 @@ extern consvar_t cv_countdowntime;
extern consvar_t cv_mute;
extern consvar_t cv_pause;
extern consvar_t cv_restrictskinchange, cv_allowteamchange, cv_maxplayers;
extern consvar_t cv_restrictskinchange, cv_allowteamchange, cv_maxplayers, cv_shuffleloser;
extern consvar_t cv_spectatorreentry, cv_duelspectatorreentry, cv_antigrief;
// SRB2kart items

View file

@ -853,7 +853,7 @@ void K_RetireBots(void)
boolean did_replacement = false;
if (G_GametypeHasSpectators() == true && grandprixinfo.gp == false) // Should this be put behind a cvar?
if (G_GametypeHasSpectators() == true && grandprixinfo.gp == false && cv_shuffleloser.value != 0)
{
// While joiners and players still exist, insert joiners.