mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-22 20:31:50 +00:00
Merge pull request #31 from BjossiAlfreds/spawnflags
coop_baseq2 added to rogue for playing co-op in baseq2 maps
This commit is contained in:
commit
954f4e584d
4 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue