mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-30 06:37:57 +03:00
Added g_obituarylocation (openmohaa-specific parameter)
This commit is contained in:
parent
a92bfbde40
commit
845e4556ef
2 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue