- add 'sv_alwaysspawnmulti' dmflags2

This commit is contained in:
Rachael Alexanderson 2020-10-26 03:33:02 -04:00
parent d850ca6a0e
commit 5b03e86a2b
3 changed files with 3 additions and 1 deletions

View file

@ -633,6 +633,7 @@ CVAR (Flag, sv_killbossmonst, dmflags2, DF2_KILLBOSSMONST);
CVAR (Flag, sv_nocountendmonst, dmflags2, DF2_NOCOUNTENDMONST);
CVAR (Flag, sv_respawnsuper, dmflags2, DF2_RESPAWN_SUPER);
CVAR (Flag, sv_nothingspawn, dmflags2, DF2_NO_COOP_THING_SPAWN);
CVAR (Flag, sv_alwaysspawnmulti, dmflags2, DF2_ALWAYS_SPAWN_MULTI);
//==========================================================================
//

View file

@ -170,6 +170,7 @@ enum
DF2_NOCOUNTENDMONST = 1 << 26, // Do not count monsters in 'end level when dying' sectors towards kill count
DF2_RESPAWN_SUPER = 1 << 27, // Respawn invulnerability and invisibility
DF2_NO_COOP_THING_SPAWN = 1 << 28, // Don't spawn multiplayer things in coop games
DF2_ALWAYS_SPAWN_MULTI = 1 << 29, // Always spawn multiplayer items
};
// [RH] Compatibility flags.

View file

@ -5368,7 +5368,7 @@ AActor *FLevelLocals::SpawnMapThing (FMapThing *mthing, int position)
int mask;
AActor *mobj;
bool spawnmulti = G_SkillProperty(SKILLP_SpawnMulti) || multiplayer;
bool spawnmulti = G_SkillProperty(SKILLP_SpawnMulti) || !!(dmflags2 & DF2_ALWAYS_SPAWN_MULTI);
if (mthing->EdNum == 0 || mthing->EdNum == -1)
return NULL;