- 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:
Christoph Oelckers 2008-07-20 17:50:34 +00:00
parent e14d24a0ee
commit b217b7b42f
15 changed files with 605 additions and 372 deletions

View file

@ -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();
}
};