coop_baseq2 added and fully functional

This commit is contained in:
BjossiAlfreds 2019-09-23 16:41:29 +00:00
parent f3dd878809
commit 9642eec016
4 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,7 @@ edict_t *g_edicts;
cvar_t *deathmatch;
cvar_t *coop;
cvar_t *coop_baseq2; /* treat spawnflags according to baseq2 rules */
cvar_t *dmflags;
cvar_t *skill;
cvar_t *fraglimit;

View File

@ -846,7 +846,7 @@ SpawnEntities(const char *mapname, char *entities, const char *spawnpoint)
continue;
}
}
else if (coop->value)
else if (coop->value && !coop_baseq2->value)
{
if (ent->spawnflags & SPAWNFLAG_NOT_COOP)
{

View File

@ -576,6 +576,7 @@ extern edict_t *g_edicts;
extern cvar_t *maxentities;
extern cvar_t *deathmatch;
extern cvar_t *coop;
extern cvar_t *coop_baseq2; /* treat spawnflags according to baseq2 rules */
extern cvar_t *dmflags;
extern cvar_t *skill;
extern cvar_t *fraglimit;

View File

@ -213,6 +213,7 @@ InitGame(void)
maxspectators = gi.cvar ("maxspectators", "4", CVAR_SERVERINFO);
deathmatch = gi.cvar ("deathmatch", "0", CVAR_LATCH);
coop = gi.cvar ("coop", "0", CVAR_LATCH);
coop_baseq2 = gi.cvar ("coop_baseq2", "0", CVAR_LATCH);
skill = gi.cvar ("skill", "1", CVAR_LATCH);
maxentities = gi.cvar ("maxentities", "1024", CVAR_LATCH);
gamerules = gi.cvar ("gamerules", "0", CVAR_LATCH); //PGM