Added g_obituarylocation (openmohaa-specific parameter)

This commit is contained in:
smallmodel 2023-08-10 21:23:10 +02:00
parent a92bfbde40
commit 845e4556ef
No known key found for this signature in database
GPG key ID: A96F163ED4891440
2 changed files with 11 additions and 0 deletions

View file

@ -258,6 +258,8 @@ cvar_t *g_no_seasick;
cvar_t *g_aistats; cvar_t *g_aistats;
cvar_t* g_obituarylocation;
cvar_t *sv_scriptfiles; cvar_t *sv_scriptfiles;
cvar_t *nomonsters; 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_rifles_for_sweepers = gi.Cvar_Get("g_rifles_for_sweepers", "0", 0);
g_no_seasick = gi.Cvar_Get("g_no_seasick", "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); sv_scriptfiles = gi.Cvar_Get("sv_scriptfiles", "0", 0);
maxbots = gi.Cvar_Get("sv_maxbots", "2", 0); maxbots = gi.Cvar_Get("sv_maxbots", "2", 0);
nomonsters = gi.Cvar_Get("nomonsters", "0", CVAR_SERVERINFO); nomonsters = gi.Cvar_Get("nomonsters", "0", CVAR_SERVERINFO);

View file

@ -263,6 +263,8 @@ extern cvar_t *g_no_seasick;
extern cvar_t *g_aistats; extern cvar_t *g_aistats;
extern cvar_t* g_obituarylocation;
extern cvar_t *sv_scriptfiles; extern cvar_t *sv_scriptfiles;
extern cvar_t *nomonsters; extern cvar_t *nomonsters;