/***** Animators ***********************************************************/

fader GoAway
{
	DecayStart	0.5
	DecayTime	1.0
}

fader GoAway2
{
	DecayStart	1.0
	DecayTime	3.0
}

colorchanger ToBlack
{
	FadeStart	0.5
	FadeTime	1.0
}

stretcher BloodStretcher
{
	StretchTime	35
	GoalY		2.0
}

slider BloodSlider
{
	SlideTime	35
	DistY		-5
}

combiner BloodSmearer
{
	BloodStretcher
	BloodSlider
}

/***** Bullet Chips *****/

decal BulletChip1
{
	pic CHIP1
	translucent 0.85
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decal BulletChip2
{
	pic CHIP2
	translucent 0.85
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decal BulletChip3
{
	pic CHIP3
	translucent 0.85
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decal BulletChip4
{
	pic CHIP4
	translucent 0.85
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decal BulletChip5
{
	pic CHIP5
	translucent 0.85
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decalgroup BulletChip
{
	BulletChip1	1
	BulletChip2	1
	BulletChip3	1
	BulletChip4	1
	BulletChip5	1
}

/***** Blood Decals ********************************************************/
/*
 * Blood splats just stick to the walls.
 * Blood smears crawl down walls a bit like in Blood.
 *
 * These do not need generators; the engine will create them automatically
 * when something bleeds. If a blood color is set, the shade color will be ignored,
 * and the actor's blood color will be used instead.
 */
decal BloodSplat1
{
	pic BSPLAT1
	shade "BloodDefault"
	x-scale 0.75
	y-scale 0.75
	randomflipx
	randomflipy
}

decal BloodSplat2
{
	pic BSPLAT2
	shade "BloodDefault"
	x-scale 0.75
	y-scale 0.75
	randomflipx
	randomflipy
}

decal BloodSplat3
{
	pic BSPLAT3
	shade "BloodDefault"
	x-scale 0.75
	y-scale 0.75
	randomflipx
	randomflipy
}

decal BloodSplat4
{
	pic BSPLAT4
	shade "BloodDefault"
	x-scale 0.75
	y-scale 0.75
	randomflipx
	randomflipy
}

decal BloodSplat5
{
	pic BSPLAT5
	shade "BloodDefault"
	x-scale 0.75
	y-scale 0.75
	randomflipx
	randomflipy
}

decal BloodSplat6
{
	pic BSPLAT6
	shade "BloodDefault"
	x-scale 0.75
	y-scale 0.75
	randomflipx
	randomflipy
}

decal BloodSplat7
{
	pic BSPLAT7
	shade "BloodDefault"
	x-scale 0.75
	y-scale 0.75
	randomflipx
	randomflipy
}

// The smaller blood splats are more common than the big ones.

decalgroup BloodSplat
{
	BloodSplat1	2
	BloodSplat2	1
	BloodSplat3	5
	BloodSplat4	5
	BloodSplat5	5
	BloodSplat6	5
	BloodSplat7	6
}

decal BloodSmear1
{
	pic BSMEAR1
	x-scale 0.625
	y-scale 0.625
	shade "BloodDefault"
	randomflipx
	animator BloodSmearer
}

decal BloodSmear2
{
	pic BSMEAR2
	x-scale 0.625
	y-scale 0.625
	shade "BloodDefault"
	randomflipx
	animator BloodSmearer
}

decalgroup BloodSmear
{
	BloodSmear1	1
	BloodSmear2	1
}

/***** Rocket Scorches *****************************************************/

decal Scorch
{
	pic SCORCH1
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decal BigScorch
{
	pic SCORCH1
	shade "00 00 00"
	x-scale 0.75
	y-scale 0.75
	randomflipx
	randomflipy
}

/***** Plasma Rifle Scorches ***********************************************/

decal PlasmaScorchLower1
{
	pic PLASMA1
	shade "00 00 00"
	x-scale 0.3
	y-scale 0.3
	randomflipx
	randomflipy
}

decal PlasmaScorch1
{
	pic PLSSA0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal PlasmaScorchLower1
}

decal PlasmaScorchLower2
{
	pic PLASMA2
	shade "00 00 00"
	x-scale 0.3
	y-scale 0.3
	randomflipx
	randomflipy
}

decal PlasmaScorch2
{
	pic PLSSB0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal PlasmaScorchLower2
}

decalgroup PlasmaScorchLower
{
	PlasmaScorchLower1	1
	PlasmaScorchLower2	1
}

decalgroup PlasmaScorch
{
	PlasmaScorch1	1
	PlasmaScorch2	1
}

/***** BFG Scorches ********************************************************/

decal BFGScorch1
{
	pic BFGSCRC1
	shade "00 00 00"
	randomflipx
	randomflipy
}

decal BFGScorch2
{
	pic BFGSCRC2
	shade "00 00 00"
	randomflipx
	randomflipy
}

decalgroup BFGScorch
{
	BFGScorch1	1
	BFGScorch2	1
}

decal BFGLightning1
{
	pic BFGLITE1
	shade "80 ff 80"
	fullbright
	randomflipx
	animator GoAway2
	lowerdecal BFGScorch
}

decal BFGLightning2
{
	pic BFGLITE2
	shade "80 ff 80"
	fullbright
	randomflipy
	animator GoAway2
	lowerdecal BFGScorch
}

decalgroup BFGLightning
{
	BFGLightning1	1
	BFGLightning2	1
}

/***** Rail Gun Scorches - contributed by Nigel Rowand *********************/

decal RailScorchLower1
{
	pic CBALSCR1
	shade "00 00 00"
	x-scale 0.2
	y-scale 0.2
	randomflipx
	randomflipy
}

decal RailScorchLower2
{
	pic CBALSCR2
	shade "00 00 00"
	x-scale 0.2
	y-scale 0.2
	randomflipx
	randomflipy
}

decalgroup RailScorchLower
{
	RailScorchLower1 1
	RailScorchLower2 1
}



decal RailScorch1
{
	pic CBALSCR1
	shade "00 00 56"
	fullbright
	x-scale 0.4
	y-scale 0.4
	animator GoAway
	lowerdecal RailScorchLower
}

decal RailScorch2
{
	pic CBALSCR2
	shade "00 00 56"
	fullbright
	x-scale 0.4
	y-scale 0.4
	animator GoAway
	lowerdecal RailScorchLower
}

decalgroup RailScorch
{
	RailScorch1 1
	RailScorch2 1
}

/***** Arachnotron Plasma Scorches *****************************************/

decal ArachScorch1
{
	pic APLSA0
	add 1.0
	animator GoAway
	lowerdecal PlasmaScorchLower1
}

decal ArachScorch2
{
	pic APLSB0
	add 1.0
	animator GoAway
	lowerdecal PlasmaScorchLower2
}

decalgroup ArachnotronScorch
{
	ArachScorch1	1
	ArachScorch2	1
}

/***** Baron of Hell/Hell Knight Scorches **********************************/

decal BaronScorch1
{
	pic BAL7SCR1
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decal BaronScorch2
{
	pic BAL7SCR2
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decalgroup BaronScorch
{
	BaronScorch1	1
	BaronScorch2	1
}

/***** Cacodemon Scorches **************************************************/

decal CacoScorch1
{
	pic BAL7SCR1
	shade "00 00 00"
	x-scale 0.78125
	y-scale 0.78125
	randomflipx
	randomflipy
}

decal CacoScorch2
{
	pic BAL7SCR2
	shade "00 00 00"
	x-scale 0.78125
	y-scale 0.78125
	randomflipx
	randomflipy
}

decalgroup CacoScorch
{
	CacoScorch1	1
	CacoScorch2	1
}

/***** Doom Imp Scorches ***************************************************/

decal DImpScorch1
{
	pic CBALSCR1
	shade "00 00 00"
	x-scale 0.78125
	y-scale 0.78125
	randomflipx
	randomflipy
}

decal DImpScorch2
{
	pic CBALSCR2
	shade "00 00 00"
	x-scale 0.78125
	y-scale 0.78125
	randomflipx
	randomflipy
}

decalgroup DoomImpScorch
{
	DImpScorch1	1
	DImpScorch2	1
}

/***** Revenant ************************************************************/

decal RevenantScorch
{
	pic BLAST1
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

/***** MBF OldBFG plasma scorches ******************************************/


decal GreenPlasmaScorch1
{
	pic PLS1A0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal DoomImpScorch
}

decal GreenPlasmaScorch2
{
	pic PLS1B0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal DoomImpScorch
}

decal GreenPlasmaScorch3
{
	pic PLS1C0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal DoomImpScorch
}

decal GreenPlasmaScorch4
{
	pic PLS1D0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal DoomImpScorch
}

decalgroup GreenPlasmaScorch
{
	GreenPlasmaScorch1	1
	GreenPlasmaScorch2	1
	GreenPlasmaScorch3	1
	GreenPlasmaScorch4	1
}

decal RedPlasmaScorch1
{
	pic PLS2A0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal PlasmaScorchLower1
}

decal RedPlasmaScorch2
{
	pic PLS2B0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal PlasmaScorchLower2
}

decalgroup RedPlasmaScorch
{
	RedPlasmaScorch1	1
	RedPlasmaScorch2	1
}


// Graf Zahl provided definitions for the other games.

/***** Crossbow ************************************************************/

decal CrossbowScorch
{
	pic CBOWMARK
	shade "00 00 00"
	x-scale 0.4
	y-scale 0.4
	randomflipx
	randomflipy
}

/***** Heretic Imp Scorches ************************************************/

decal HImpScorch1
{
	pic CBALSCR1
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decal HImpScorch2
{
	pic CBALSCR2
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decalgroup HImpScorch
{
	HImpScorch1	1
	HImpScorch2	1
}

/***** Mummy Scorches ******************************************************/

decal MummyScorch1
{
	pic PLASMA1
	shade "00 00 00"
	x-scale 0.6
	y-scale 0.6
	randomflipx
	randomflipy
}

decal MummyScorch2
{
	pic PLASMA2
	shade "00 00 00"
	x-scale 0.6
	y-scale 0.6
	randomflipx
	randomflipy
}

decalgroup MummyScorch
{
	MummyScorch1	1
	MummyScorch2	1
}

/***** Heretic Knight Axe Scorches **********************************////////

decal AxeScorch1
{
	pic PLASMA1
	shade "00 00 00"
	x-scale 0.15
	y-scale 0.6
	randomflipx
	randomflipy
}

decal AxeScorch2
{
	pic PLASMA2
	shade "00 00 00"
	x-scale 0.15
	y-scale 0.6
	randomflipx
	randomflipy
}

decalgroup AxeScorch
{
	AxeScorch1	1
	AxeScorch2	1
}

/***** Wizard Scorches *****************************************************/

decal WizardScorch1
{
	pic CBALSCR1
	shade "00 00 00"
	x-scale 0.6
	y-scale 0.6
	randomflipx
	randomflipy
}

decal WizardScorch2
{
	pic CBALSCR2
	shade "00 00 00"
	x-scale 0.6
	y-scale 0.6
	randomflipx
	randomflipy
}

decalgroup WizardScorch
{
	WizardScorch1	1
	WizardScorch2	1
}

decal SnakeScorch11
{
	pic CBALSCR1
	shade "00 00 00"
	x-scale 0.4
	y-scale 0.4
	randomflipx
	randomflipy
}

decal SnakeScorch12
{
	pic CBALSCR2
	shade "00 00 00"
	x-scale 0.4
	y-scale 0.4
	randomflipx
	randomflipy
}

decalgroup SnakeScorch1
{
	SnakeScorch11	1
	SnakeScorch12	1
}

decal SnakeScorch21
{
	pic CBALSCR1
	shade "00 00 00"
	x-scale 0.7
	y-scale 0.7
	randomflipx
	randomflipy
}

decal SnakeScorch22
{
	pic CBALSCR2
	shade "00 00 00"
	x-scale 0.7
	y-scale 0.7
	randomflipx
	randomflipy
}

decalgroup SnakeScorch2
{
	SnakeScorch21	1
	SnakeScorch22	1
}

/***** Minotaur Scorches ***************************************************/

decal MinotaurScorch
{
	pic SCORCH1
	shade "00 00 00"
	x-scale 0.55
	y-scale 0.55
	randomflipx
	randomflipy
}

/***** Sorcerer Scorches ***************************************************/

decal SorcererScorch1
{
	pic BFGSCRC1
	shade "00 00 00"
	randomflipx
	randomflipy
}

decal SorcererScorch2
{
	pic BFGSCRC2
	shade "00 00 00"
	randomflipx
	randomflipy
}

decalgroup SorcererScorch
{
	SorcererScorch1		1
	SorcererScorch2		1
}

decal SorcererLightning1
{
	pic FX16J0
	add 1.0
	fullbright
	animator GoAway2
	lowerdecal SorcererScorch1
}

decal SorcererLightning2
{
	pic FX16K0
	add 1.0
	fullbright
	animator GoAway2
	lowerdecal SorcererScorch2
}

decalgroup SorcererLightning
{
	SorcererLightning1	1
	SorcererLightning2	1
}

/**** Crossbow Scorch ******************************************************/

decal CrossbowScorch2
{
	pic CBOWMARK
	shade "00 00 00"
	x-scale 0.25
	y-scale 0.25
	randomflipx
	randomflipy
}

/***** Phoenix Rod, flamethrower mode **************************************/

decal PhoenixThrowerScorch
{
	pic CBALSCR1
	shade "00 00 00"
	x-scale 0.4
	y-scale 0.4
	randomflipx
	randomflipy
}

/***** "Horn Rod", rain maker projectile ***********************************/

decal HornyRainMaker
{
	pic TWIRL
	shade "00 00 00"
	x-scale 0.7
	y-scale 0.7
	randomflipx
	randomflipy
}

/***** Centaur Scorches ****************************************************/

decal CentaurScorch
{
	pic BLAST02
	shade "00 00 00"
	x-scale 0.7
	y-scale 0.7
	randomflipx
	randomflipy
}

/***** Demon2 Scorch *******************************************************/

decal Demon2Scorch
{
	pic BLAST02
	shade "00 00 00"
	x-scale 0.65
	y-scale 0.65
	randomflipx
	randomflipy
}

/***** Bishop Scorches *****************************************************/

decal BishopScorch1
{
	pic PLASMA1
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decal BishopScorch2
{
	pic PLASMA2
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decalgroup BishopScorch
{
	BishopScorch1	1
	BishopScorch2	1
}


/***** Fire Demon Scorches *************************************************/

decal FireDemonScorchLower1
{
	pic CBALSCR1
	shade "00 00 00"
	x-scale 0.4
	y-scale 0.4
	randomflipx
	randomflipy
}

decal FireDemonScorchLower2
{
	pic CBALSCR2
	shade "00 00 00"
	x-scale 0.4
	y-scale 0.4
	randomflipx
	randomflipy
}

decalgroup FireDemonScorch
{
	FireDemonScorchLower1  1
	FireDemonScorchLower2  1
}

/***** Serpent Scorches ****************************************************/

decal SerpentScorchLower1
{
	pic PLASMA1
	shade "00 00 00"
	x-scale 0.8
	y-scale 0.8
	randomflipx
	randomflipy
}

decal SerpentScorchLower2
{
	pic PLASMA2
	shade "00 00 00"
	x-scale 0.8
	y-scale 0.8
	randomflipx
	randomflipy
}

decalgroup SerpentScorch
{
	SerpentScorchLower1	1
	SerpentScorchLower2	1
}

/******************** Warrior Decals ***************************************/

decal SwordScorch1
{
	pic BFGSCRC1
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decal SwordScorch2
{
	pic BFGSCRC2
	shade "00 00 00"
	x-scale 0.5
	y-scale 0.5
	randomflipx
	randomflipy
}

decalgroup SwordScorch
{
	SwordScorch1		1
	SwordScorch2		1
}

decal SwordLightning1
{
	pic BFGLITE1
	shade "80 ff 80"
	x-scale 0.5
	y-scale 0.5
	fullbright
	randomflipx
	animator GoAway2
	lowerdecal SwordScorch
}

decal SwordLightning2
{
	pic BFGLITE2
	shade "80 ff 80"
	x-scale 0.5
	y-scale 0.5
	fullbright
	randomflipy
	animator GoAway2
	lowerdecal SwordScorch
}

decalgroup SwordLightning
{
	SwordLightning1	1
	SwordLightning2	1
}

/***** ID24 ****************************************************************/

//Calamity Blade
decal BladeScorchLower
{
	pic SCORCH1
	shade "00 00 00"
	x-scale 0.85
	y-scale 0.20
	randomflipx
	randomflipy
}

decal BladeScorch1
{
	pic HETBA0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal BladeScorchLower
}

decal BladeScorch2
{
	pic HETBB0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal BladeScorchLower
}

decal BladeScorch3
{
	pic HETBC0
	add 1.0
	fullbright
	animator GoAway
	lowerdecal BladeScorchLower
}

decalgroup BladeScorch
{
	BladeScorch1	1
	BladeScorch2	1
	BladeScorch3	1
}

/***** Generators **********************************************************/

generator Pistol			BulletChip
generator Chainsaw			BulletChip
generator Shotgun			BulletChip
generator SuperShotgun			BulletChip
generator Chaingun			BulletChip

generator PlasmaBall			PlasmaScorch
generator Rocket			Scorch
generator BFGBall			BFGLightning
generator PlasmaBall1		GreenPlasmaScorch
generator PlasmaBall2		RedPlasmaScorch

generator MarinePistol			BulletChip
generator MarineShotgun			BulletChip
generator MarineSSG			BulletChip
generator MarineChaingun		BulletChip
generator MarineRailgun			RailScorch

generator ZombieMan			BulletChip
generator ShotgunGuy			BulletChip
generator ChaingunGuy			BulletChip
generator WolfensteinSS			BulletChip
generator SpiderMastermind		BulletChip

generator ArachnotronPlasma		ArachnotronScorch
generator BaronBall			BaronScorch
generator CacodemonBall			CacoScorch
generator DoomImpBall			DoomImpScorch
generator FatShot			Scorch
generator RevenantTracer		RevenantScorch

generator VolcanoBlast			DoomImpScorch
generator VolcanoTBlast			SnakeScorch1
generator HereticImpBall		HImpScorch
generator MummyFX1			MummyScorch
generator KnightAxe			AxeScorch
generator RedAxe			BloodSmear
generator WizardFX1			WizardScorch
generator SnakeProjA			SnakeScorch1
generator SnakeProjB			SnakeScorch2
generator BeastBall			DoomImpScorch
generator HeadFX1			SnakeScorch2
generator HeadFX3			CacoScorch
generator MinotaurFX1			MinotaurScorch
generator SorcererFX1			RevenantScorch
generator Sorcerer2FX1			SorcererLightning
generator GoldWand			RailScorchLower
generator GoldWandPowered		RailScorchLower
generator GoldWandFX1			HImpScorch
generator CrossbowFX1			CrossbowScorch
generator CrossbowFX2			CrossbowScorch
generator CrossbowFX3			CrossbowScorch2
generator MaceFX1			BaronScorch
generator MaceFX2			BaronScorch
generator MaceFX3			BaronScorch
generator MaceFX4			BFGScorch
generator Blaster			RailScorchLower
generator BlasterFX1			HImpScorch
generator Ripper			HImpScorch
generator HornRodFX1			PlasmaScorchLower
generator HornRodFX2			HornyRainMaker
generator PhoenixFX1			Scorch
generator PhoenixFX2			PhoenixThrowerScorch

generator CStaffMissile			DoomImpScorch
generator HammerMissile			Scorch
generator FSwordMissile			SwordLightning
generator MageWandMissile		RailScorchLower
generator MageStaffFX2			Scorch
generator RipperBall			HImpScorch
generator SorcFX1			RevenantScorch
generator SorcFX4			RevenantScorch
generator CentaurFX			CentaurScorch
generator Demon1FX1			RevenantScorch
generator Demon2FX1			Demon2Scorch
generator WraithFX1			Demon2Scorch
generator BishopFX			BishopScorch
generator FireDemonMissile		FireDemonScorch
generator DragonFireball		CacoScorch
generator SerpentFX			DoomImpScorch

generator Acolyte			BulletChip
generator AcolyteTan			BulletChip
generator AcolyteRed			BulletChip
generator AcolyteRust			BulletChip
generator AcolyteGray			BulletChip
generator AcolyteDGreen			BulletChip
generator AcolyteGold			BulletChip
generator AcolyteLGreen			BulletChip
generator AcolyteBlue			BulletChip
generator AcolyteShadow			BulletChip
generator Rebel				BulletChip
generator Rebel1			BulletChip
generator Rebel2			BulletChip
generator Rebel3			BulletChip
generator Rebel4			BulletChip
generator Rebel5			BulletChip
generator Macil1			BulletChip
generator Macil2			BulletChip
generator SentinelFX1			PlasmaScorchLower
generator SentinelFX2			PlasmaScorchLower
generator Templar			RailScorchLower
generator Reaver			BulletChip
generator FlameMissile			CacoScorch
generator FastFlameMissile		CacoScorch
generator CrusaderMissile		BaronScorch
generator BishopMissile			Scorch
generator CeilingTurret			BulletChip
generator SpectralLightningBall1	BaronScorch
generator SpectralLightningBall2	BaronScorch
generator SpectralLightningH1		BaronScorch
generator SpectralLightningH2		BaronScorch
generator SpectralLightningH3		BaronScorch
generator SpectralLightningBigBall1	BaronScorch
generator SpectralLightningBigBall2	BaronScorch
generator SpectralLightningV1		BaronScorch
generator SpectralLightningV2		BaronScorch
generator SpectralLightningBigV1	BaronScorch
generator SpectralLightningBigV2	BaronScorch
generator ElectricBolt			CrossbowScorch2
generator AssaultGun			BulletChip
generator MiniMissile			Scorch
generator Mauler			RailScorchLower
