- scriptified Hexen's Wraith and parts of the Spike.
This commit is contained in:
parent
df43ee96ce
commit
21a1d5ffc8
12 changed files with 354 additions and 444 deletions
|
|
@ -3,8 +3,6 @@
|
|||
#include "m_random.h"
|
||||
#include "m_fixed.h"
|
||||
|
||||
static FRandom pr_dirt ("SpawnDirt");
|
||||
|
||||
// Stained glass ------------------------------------------------------------
|
||||
|
||||
class AGlassShard : public AActor
|
||||
|
|
@ -27,25 +25,3 @@ public:
|
|||
|
||||
IMPLEMENT_CLASS(AGlassShard, false, false, false, false)
|
||||
|
||||
// Dirt stuff
|
||||
|
||||
void P_SpawnDirt (AActor *actor, double radius)
|
||||
{
|
||||
PClassActor *dtype = NULL;
|
||||
AActor *mo;
|
||||
|
||||
double zo = pr_dirt() / 128. + 1;
|
||||
DVector3 pos = actor->Vec3Angle(radius, pr_dirt() * (360./256), zo);
|
||||
|
||||
char fmt[8];
|
||||
mysnprintf(fmt, countof(fmt), "Dirt%d", 1 + pr_dirt()%6);
|
||||
dtype = PClass::FindActor(fmt);
|
||||
if (dtype)
|
||||
{
|
||||
mo = Spawn (dtype, pos, ALLOW_REPLACE);
|
||||
if (mo)
|
||||
{
|
||||
mo->Vel.Z = pr_dirt() / 64.;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue