Merge pull request #31 from BjossiAlfreds/spawnflags

coop_baseq2 added to rogue for playing co-op in baseq2 maps
This commit is contained in:
Yamagi 2019-09-26 14:22:46 +02:00 committed by GitHub
commit 954f4e584d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View file

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

View file

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

View file

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

View file

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