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:
parent
606bc1d04e
commit
b54da619ad
4 changed files with 12 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue