Added sv_minplayers variable

This commit is contained in:
smallmodel 2024-01-02 18:14:13 +01:00
parent 70c71b69ee
commit ac46d0eef0
No known key found for this signature in database
GPG key ID: A96F163ED4891440
2 changed files with 4 additions and 1 deletions

View file

@ -264,6 +264,7 @@ cvar_t *sv_scriptfiles;
cvar_t *sv_maxbots; cvar_t *sv_maxbots;
cvar_t *sv_numbots; cvar_t *sv_numbots;
cvar_t *sv_minPlayers;
cvar_t *g_rankedserver; cvar_t *g_rankedserver;
cvar_t *g_spectatefollow_firstperson; cvar_t *g_spectatefollow_firstperson;
@ -600,6 +601,7 @@ void CVAR_Init(void)
sv_scriptfiles = gi.Cvar_Get("sv_scriptfiles", "0", 0); sv_scriptfiles = gi.Cvar_Get("sv_scriptfiles", "0", 0);
sv_maxbots = gi.Cvar_Get("sv_maxbots", "0", CVAR_LATCH); sv_maxbots = gi.Cvar_Get("sv_maxbots", "0", CVAR_LATCH);
sv_numbots = gi.Cvar_Get("sv_numbots", "0", CVAR_LATCH); sv_numbots = gi.Cvar_Get("sv_numbots", "0", CVAR_LATCH);
sv_minPlayers = gi.Cvar_Get("sv_minPlayers", "0", 0);
g_rankedserver = gi.Cvar_Get("g_rankedserver", "0", 0); g_rankedserver = gi.Cvar_Get("g_rankedserver", "0", 0);
g_spectatefollow_firstperson = gi.Cvar_Get("g_spectatefollow_firstperson", "0", 0); g_spectatefollow_firstperson = gi.Cvar_Get("g_spectatefollow_firstperson", "0", 0);

View file

@ -268,7 +268,8 @@ extern cvar_t* g_obituarylocation;
extern cvar_t *sv_scriptfiles; extern cvar_t *sv_scriptfiles;
extern cvar_t *sv_maxbots; extern cvar_t *sv_maxbots;
extern cvar_t * sv_numbots; extern cvar_t *sv_numbots;
extern cvar_t *sv_minPlayers;
extern cvar_t *g_rankedserver; extern cvar_t *g_rankedserver;
extern cvar_t *g_spectatefollow_firstperson; extern cvar_t *g_spectatefollow_firstperson;