//This is where all the different Doom-compatible terrains are defined
//note that Water, Sludge, and Lava are available already in zDoom, but these versions have some modifications from the existing ones

//the "base" and "chunk" actor classes used in each splash are the versions provided by zDoom, except for "Mud", which is a new definition

//footclip value for each terrain is commented out, so actors will "stand on" the fluid like in stock Doom
//if you want the fluids to behave like in Raven, so actors will "sink" in them, re-enable the footclip value

//also, I removed the smallclip value from each splash, since they tended to get culled by the floor when the matching terrain has no footclip value defined;
//if you put the footclip value back in, then set the smallclip value for each splash back to "12", so they look right

//sludge, slime, and lava deal no damage; I assume that you'll want to handle damage through sector properties like stock Doom
//you can easily modify this if you want, though; placeholder values are present for each terrain type, but commented out

//lastly, the default zDoom (and Hexen) versions of the splashes alert monsters; I removed this property from mine
//if you want splash noises to alert monsters, then remove "noalert" from each splash definition


//water splash
splash DoomWater
{
   smallclass      WaterSplashBase
   smallclip      0
   smallsound      world/drip

   baseclass      WaterSplashBase
   chunkclass      WaterSplash
   chunkxvelshift   8
   chunkyvelshift   8
   chunkzvelshift   8
   chunkbasezvel   2
   sound         world/watersplash
   noalert
}

terrain DoomWater
{
	splash			DoomWater
	//footclip		10
	liquid
}


//sludge splash
splash DoomSludge
{
	smallclass		SludgeSplash
	smallclip		0
	smallsound		world/sludgegloop

	baseclass		SludgeSplash
	chunkclass		SludgeChunk
	chunkxvelshift	8
	chunkyvelshift	8
	chunkzvelshift	8
	chunkbasezvel	1
	sound			world/sludgegloop
	noalert
}

terrain DoomSludge
{
	splash			DoomSludge
	//footclip		10
	liquid
	
	//damageamount	5
	//damagetype		slime
	//damagetimemask	34
	//allowprotection
}


//lava
splash DoomLava
{
	smallclass		LavaSplash
	smallclip		0
	smallsound		world/lavasizzle

	baseclass		LavaSplash
	chunkclass		LavaSmoke
	chunkxvelshift	-1
	chunkyvelshift	-1
	chunkzvelshift	7
	chunkbasezvel	1
	sound			world/lavasizzle
	noalert
}

terrain DoomLava
{
	splash			DoomLava
	//footclip		10
	liquid
	
	//damageamount	10
	//damagetype		lava
	//damagetimemask	34
	//allowprotection
}


//blood
splash DoomBlood
{
	smallclass		BloodSplashBase
	smallclip		0
	smallsound		world/drip

	baseclass		BloodSplashBase
	chunkclass		BloodSplash
	chunkxvelshift	8
	chunkyvelshift	8
	chunkzvelshift	8
	chunkbasezvel	2
	sound			world/watersplash
	noalert
}

terrain DoomBlood
{
	splash			DoomBlood
	//footclip		10
	liquid
	}


//nukage slime
splash DoomSlime
{
   smallclass      SlimeSplash
   smallclip      0
   smallsound      world/sludgegloop

   baseclass      SlimeSplash
   chunkclass      SlimeChunk
   chunkxvelshift   8
   chunkyvelshift   8
   chunkzvelshift   8
   chunkbasezvel   1
   sound         world/sludgegloop
   noalert
}

terrain DoomSlime
{
	splash			DoomSlime
	//footclip		10
	liquid
	
	//damageamount	5
	//damagetype		slime
	//damagetimemask	34
	//allowprotection
}


//brown muddy slime; based off sludge
splash DoomMud
{
   smallclass      MudSplash
   smallclip      0
   smallsound      world/sludgegloop

   baseclass      MudSplash
   chunkclass      MudChunk
   chunkxvelshift   8
   chunkyvelshift   8
   chunkzvelshift   8
   chunkbasezvel   1
   sound         world/sludgegloop
   noalert
}

terrain DoomMud
{
	splash			DoomMud
	//footclip		10
	liquid
}


//sizzle effect for "hot" floors, like the glowing rock textures
splash DoomSizzle
{
	smallclass		LavaSmoke
	smallclip		0
	smallsound		world/lavasizzle

	baseclass		LavaSmoke
	chunkclass		none
	chunkxvelshift	-1
	chunkyvelshift	-1
	chunkzvelshift	7
	chunkbasezvel	1
	sound			world/lavasizzle
	noalert
}

terrain DoomSizzle
{
	splash			DoomSizzle
		
	//damageamount	5
	//damagetype		lava
	//damagetimemask	34
	//allowprotection
}


//terrains are assigned to flats here
//follow this template to add terrain support to your custom flats

//water
floor fwater1 Doomwater
floor fwater2 Doomwater
floor fwater3 Doomwater
floor fwater4 Doomwater

//sludge
//(note that Heretic's sludge doesn't really fit any stock Doom flats, but it's included in case you want it for custom flats

//lava
floor lava1 DoomLava
floor lava2 DoomLava
floor lava3 DoomLava
floor lava4 DoomLava

//blood
floor blood1 DoomBlood
floor blood2 DoomBlood
floor blood3 DoomBlood

//slime
floor nukage1 DoomSlime
floor nukage2 DoomSlime
floor nukage3 DoomSlime

//muddy sludge
floor slime01 DoomMud
floor slime02 DoomMud
floor slime03 DoomMud
floor slime04 DoomMud
floor slime05 DoomMud
floor slime06 DoomMud
floor slime07 DoomMud
floor slime08 DoomMud

//sizzling hot floors
floor rrock01 DoomSizzle
floor rrock02 DoomSizzle
floor rrock05 DoomSizzle
floor rrock06 DoomSizzle
floor rrock07 DoomSizzle
floor rrock08 DoomSizzle
floor slime09 DoomSizzle
floor slime10 DoomSizzle
floor slime11 DoomSizzle
floor slime12 DoomSizzle