//=============================================================================
// GreenBlob.
//=============================================================================
class GreenBlob expands Effects;

#exec TEXTURE IMPORT NAME=GreenBlob1 FILE=MODELS\Blob1.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=GreenBlob2 FILE=MODELS\Blob2.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=GreenBlob3 FILE=MODELS\Blob3.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=GreenBlob4 FILE=MODELS\Blob4.pcx GROUP=Effects
#exec TEXTURE IMPORT NAME=GreenBlob5 FILE=MODELS\Blob5.pcx GROUP=Effects


var() texture BlobTypes[5];
var vector WallNormal;

auto state Explode
{

	simulated function Landed( vector HitNormal )
	{
		Destroy();
	}

	simulated function HitWall( vector HitNormal, actor Wall )
	{
		Destroy();
	}


Begin:
	Texture = BlobTypes[int(Frand()*5)];
	Velocity = VRand()*140*FRand()+WallNormal*250;
	DrawScale = FRand()*0.3 + 0.2;
}

