mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-03 10:41:12 +00:00
- converted the boss brain to DECORATE.
- added an abstract base class for special map spots that are maintained in lists and rewrote the boss brain, the mace and DSparil to use it. - fixed: RandomSpawners didn't destroy themselves after finishing their work. git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@134 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
e14d24a0ee
commit
b217b7b42f
15 changed files with 605 additions and 372 deletions
|
@ -55,7 +55,7 @@ class ARandomSpawner : public AActor
|
|||
if (di->Name != NAME_None)
|
||||
{
|
||||
n -= di->amount;
|
||||
di = di->Next;
|
||||
if (di->Next != NULL) di = di->Next; else n=0;
|
||||
}
|
||||
}
|
||||
// So now we can spawn the dropped item.
|
||||
|
@ -72,12 +72,15 @@ class ARandomSpawner : public AActor
|
|||
newmobj->args[4] = args[4];
|
||||
newmobj->SpawnFlags = SpawnFlags;
|
||||
newmobj->HandleSpawnFlags();
|
||||
newmobj->tid = tid;
|
||||
newmobj->AddToHash();
|
||||
newmobj->momx = momx;
|
||||
newmobj->momy = momy;
|
||||
newmobj->momz = momz;
|
||||
newmobj->CopyFriendliness(this, false);
|
||||
}
|
||||
}
|
||||
Destroy();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue