Added MTF_NOCOUNT to spawn flags

This commit is contained in:
PaulyB 2020-04-25 04:16:06 +02:00 committed by drfrag
parent 0d8d51f0b4
commit e59fe8e01f
3 changed files with 15 additions and 0 deletions

View file

@ -416,6 +416,7 @@ enum EMapThingFlags
MTF_SECRET = 0x080000, // Secret pickup
MTF_NOINFIGHTING = 0x100000,
MTF_NOCOUNT = 0x200000, // Removes COUNTKILL/COUNTITEM
// BOOM and DOOM compatible versions of some of the above

View file

@ -4672,6 +4672,19 @@ void AActor::HandleSpawnFlags ()
level.total_secrets++;
}
}
if (SpawnFlags & MTF_NOCOUNT)
{
if (flags & MF_COUNTKILL)
{
flags &= ~MF_COUNTKILL;
level.total_monsters--;
}
if (flags & MF_COUNTITEM)
{
flags &= ~MF_COUNTITEM;
level.total_items--;
}
}
}
DEFINE_ACTION_FUNCTION(AActor, HandleSpawnFlags)

View file

@ -997,6 +997,7 @@ enum EMapThingFlags
MTF_SECRET = 0x080000, // Secret pickup
MTF_NOINFIGHTING = 0x100000,
MTF_NOCOUNT = 0x200000, // Removes COUNTKILL/COUNTITEM
};
enum ESkillProperty