mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-10 06:42:21 +00:00
Merge branch 'master' into pvs
This commit is contained in:
commit
01c20df240
5 changed files with 5 additions and 2 deletions
|
@ -1158,7 +1158,7 @@ ai_checkattack(edict_t *self, float dist)
|
||||||
qboolean hesDeadJim;
|
qboolean hesDeadJim;
|
||||||
qboolean retval;
|
qboolean retval;
|
||||||
|
|
||||||
if (!self || !self->enemy || !self->enemy->inuse)
|
if (!self)
|
||||||
{
|
{
|
||||||
enemy_vis = false;
|
enemy_vis = false;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue