Added spawn origin flags.

- Added new spawn flags that allow for checking if an actor was spawned by the level, the console, or ACS/DECORATE/ZScript.
This commit is contained in:
inkoalawetrust 2025-02-07 02:28:59 +02:00 committed by Ricardo Luís Vaz Silva
commit b54da619ad
4 changed files with 12 additions and 0 deletions

View file

@ -2423,6 +2423,7 @@ void Net_DoCommand (int type, uint8_t **stream, int player)
AActor *spawned = Spawn (primaryLevel, typeinfo, spawnpos, ALLOW_REPLACE);
if (spawned != NULL)
{
spawned->SpawnFlags |= MTF_CONSOLETHING;
if (type == DEM_SUMMONFRIEND || type == DEM_SUMMONFRIEND2 || type == DEM_SUMMONMBF)
{
if (spawned->CountsAsKill())