diff --git a/code/fgame/gamecvars.cpp b/code/fgame/gamecvars.cpp index 3c8345fe..317fe8dc 100644 --- a/code/fgame/gamecvars.cpp +++ b/code/fgame/gamecvars.cpp @@ -258,6 +258,8 @@ cvar_t *g_no_seasick; cvar_t *g_aistats; +cvar_t* g_obituarylocation; + cvar_t *sv_scriptfiles; cvar_t *nomonsters; @@ -581,6 +583,13 @@ void CVAR_Init(void) g_rifles_for_sweepers = gi.Cvar_Get("g_rifles_for_sweepers", "0", 0); g_no_seasick = gi.Cvar_Get("g_no_seasick", "0", 0); + if (g_protocol >= protocol_e::PROTOCOL_MOHTA_MIN) { + g_obituarylocation = gi.Cvar_Get("g_obituarylocation", "0", 0); + } else { + // Defaults to 1 on vanilla mohaa + g_obituarylocation = gi.Cvar_Get("g_obituarylocation", "1", 0); + } + sv_scriptfiles = gi.Cvar_Get("sv_scriptfiles", "0", 0); maxbots = gi.Cvar_Get("sv_maxbots", "2", 0); nomonsters = gi.Cvar_Get("nomonsters", "0", CVAR_SERVERINFO); diff --git a/code/fgame/gamecvars.h b/code/fgame/gamecvars.h index ba73edb5..75d6245d 100644 --- a/code/fgame/gamecvars.h +++ b/code/fgame/gamecvars.h @@ -263,6 +263,8 @@ extern cvar_t *g_no_seasick; extern cvar_t *g_aistats; +extern cvar_t* g_obituarylocation; + extern cvar_t *sv_scriptfiles; extern cvar_t *nomonsters;