//*********************
//  RS-25 (SSME)      *
//*********************
@PART[SWSSMEUpdate]:NEEDS[Waterfall]
{
	!EFFECTS{}

	EFFECTS
	{
		running_closed
 		 {
		    AUDIO
		    {
 		     channel = Ship
		      clip = sound_rocket_hard
		      volume = 0.0 0.0
		      volume = 1.0 1.0
		      pitch = 1.0 1.02
		      pitch = 1.0 1.0
		      loop = true
 		   }
		  }
		engage
		  {
		    AUDIO
		    {
		      channel = Ship
		      clip = sound_vent_medium
		      volume = 1.0
		      pitch = 1.0
		      loop = false
		    }
		  }
		flameout
		  {
		    AUDIO
		    {
		      channel = Ship
		      clip = sound_explosion_low
		      volume = 1.0
		      pitch = 2.0
		      loop = false
		    }
		  }
	}

MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWRS25
	engineID = SWRS25Update

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hydrolox-rs25-1
		overrideParentTransform = thrustTransform
		position = 0,0,1.66
		rotation = 0, 0, 0
		scale = 1.05, 1.05, 1
	}
}

}


//*********************
//  OMS               *
//*********************
@PART[SWOMS]:NEEDS[Waterfall]
{

!fx_exhaustFlame_blue_small = DELETE
!fx_exhaustLight_blue = DELETE
!fx_smokeTrail_light = DELETE

MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWOMS
	engineID = SWOMSEngine

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hypergolic-aerozine50-upper-1
		overrideParentTransform = thrustTransform
		position = 0,0,1.2
		rotation = 0, 0, 0
		scale = 0.39, 0.39, 1
	}
}

}


//*********************
//  Orion SM          *
//*********************
@PART[SWOrionSM]:NEEDS[Waterfall]
{

!fx_exhaustFlame_blue_small = DELETE
!fx_exhaustLight_blue = DELETE
!fx_smokeTrail_light = DELETE

MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWOrion
	engineID = SWOrionSMEng

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hypergolic-aerozine50-upper-1
		overrideParentTransform = thrustTransform
		position = 0,0,0.6
		rotation = 0, 0, 0
		scale = 0.6, 0.6, 1
	}
}

	!EFFECTS{}
	EFFECTS
	{
		running
		{
			AUDIO_MULTI
			{
				channel = Ship
				transformName = RCSThruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.025
				volume = 1.0 0.2
				pitch = 0.0 0.75
				pitch = 1.0 1.5
				loop = true
			}
		}
	}
MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWOrionSMRCS

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = rcs
		linkedTo = rcs
	}

	TEMPLATE
	{
		templateName = waterfall-rcs-jet-1
		overrideParentTransform = RCSThruster
		position = 0,0.13,0
		rotation = 180, 0, 0
		scale = 0.8, 1, 0.8
	}
}

}


//*********************
//  Orion Pod         *
//*********************
@PART[SWOrionPod]:NEEDS[Waterfall]
{
	!EFFECTS{}
	EFFECTS
	{
		running
		{
			AUDIO_MULTI
			{
				channel = Ship
				transformName = rcsThruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.025
				volume = 1.0 0.2
				pitch = 0.0 0.75
				pitch = 1.0 1.5
				loop = true
			}
		}
	}
MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWOrionPodRCS

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = rcs
		linkedTo = rcs
	}

	TEMPLATE
	{
		templateName = waterfall-rcs-jet-1
		overrideParentTransform = rcsThruster
		position = 0,0,0
		rotation = 180, 0, 0
		scale = 0.8, 1, 0.8
	}
}

}


//**************************
//  Orion RCS Thruster Pod *
//**************************
@PART[SWOrionRCSPod]:NEEDS[Waterfall]
{
	!EFFECTS{}
	EFFECTS
	{
		running
		{
			AUDIO_MULTI
			{
				channel = Ship
				transformName = rcsThruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.025
				volume = 1.0 0.2
				pitch = 0.0 0.75
				pitch = 1.0 1.5
				loop = true
			}
		}
	}
MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWOrionQuad

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = rcs
		linkedTo = rcs
	}

	TEMPLATE
	{
		templateName = waterfall-rcs-jet-1
		overrideParentTransform = rcsThruster
		position = 0,0.13,0
		rotation = 180, 0, 0
		scale = 0.7, 1, 0.7
	}
}

}


//*****************************
// Serenity Service Module    *
//*****************************
@PART[SWSerenitySM]:NEEDS[Waterfall]
{

!fx_exhaustFlame_blue_small = DELETE
!fx_exhaustLight_blue = DELETE
!fx_smokeTrail_light = DELETE

MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWSerenityModule
	engineID = SWSerenityEng

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hypergolic-aerozine50-upper-1
		overrideParentTransform = thrustTransform
		position = 0,0,0.75
		rotation = 0, 0, 0
		scale = 0.23, 0.23, 1
	}
}

}


//**************************
// Shuttle Nose RCS        *
//**************************
@PART[SWShuttleNose]:NEEDS[Waterfall]
{
	!EFFECTS{}
	EFFECTS
	{
		running
		{
			AUDIO_MULTI
			{
				channel = Ship
				transformName = rcsThruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.025
				volume = 1.0 0.2
				pitch = 0.0 0.75
				pitch = 1.0 1.5
				loop = true
			}
		}
	}
MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWShuttleNoseRCS

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = rcs
		linkedTo = rcs
	}

	TEMPLATE
	{
		templateName = waterfall-rcs-jet-1
		overrideParentTransform = rcsThruster
		position = 0,0,0
		rotation = 180, 0, 0
		scale = 1, 1, 1
	}
}

}


//**************************
// Shuttle OMS RCS Port    *
//**************************
@PART[SWOMSPodPort]:NEEDS[Waterfall]
{
	!EFFECTS{}
	EFFECTS
	{
		running
		{
			AUDIO_MULTI
			{
				channel = Ship
				transformName = rcsThruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.025
				volume = 1.0 0.2
				pitch = 0.0 0.75
				pitch = 1.0 1.5
				loop = true
			}
		}
	}
MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWOMSRCSPort

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = rcs
		linkedTo = rcs
	}

	TEMPLATE
	{
		templateName = waterfall-rcs-jet-1
		overrideParentTransform = rcsThruster
		position = 0,0,0
		rotation = 0, 0, 180
		scale = 1, 1, 1
	}
}

}


//**************************
// Shuttle OMS RCS Stbd    *
//**************************
@PART[SWOMSPodStbd]:NEEDS[Waterfall]
{
	!EFFECTS{}
	EFFECTS
	{
		running
		{
			AUDIO_MULTI
			{
				channel = Ship
				transformName = rcsThruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.025
				volume = 1.0 0.2
				pitch = 0.0 0.75
				pitch = 1.0 1.5
				loop = true
			}
		}
	}
MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWOMSRCSStbd

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = rcs
		linkedTo = rcs
	}

	TEMPLATE
	{
		templateName = waterfall-rcs-jet-1
		overrideParentTransform = rcsThruster
		position = 0,0,0
		rotation = 0, 0, 180
		scale = 1, 1, 1
	}
}

}


//*********************
// F-1B               *
//*********************
@PART[SWF1B]:NEEDS[Waterfall]
{
	!EFFECTS{}

	EFFECTS
	{
		running_closed
 		 {
		    AUDIO
		    {
 		     channel = Ship
		      clip = sound_rocket_hard
		      volume = 0.0 0.0
		      volume = 1.0 1.0
		      pitch = 1.0 1.02
		      pitch = 1.0 1.0
		      loop = true
 		   }
		  }
		engage
		  {
		    AUDIO
		    {
		      channel = Ship
		      clip = sound_vent_medium
		      volume = 1.0
		      pitch = 1.0
		      loop = false
		    }
		  }
		flameout
		  {
		    AUDIO
		    {
		      channel = Ship
		      clip = sound_explosion_low
		      volume = 1.0
		      pitch = 2.0
		      loop = false
		    }
		  }
	}

MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWF1BEng
	engineID = SWF1B

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
		responseRateUp = 0.005
		responseRateDown = 0.1
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-kerolox-lower-5
		overrideParentTransform = thrustTransform
		position = 0,0,3.2
		rotation = 0, 0, 0
		scale = 4.25, 4.25, 6
	}
}

}


//*********************
// J-2X               *
//*********************
@PART[SWJ2X]:NEEDS[Waterfall]
{

!fx_exhaustFlame_blue = DELETE
!fx_exhaustLight_blue = DELETE
!fx_smokeTrail_light = DELETE

MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWJ2XEngine
	engineID = SWJ2XEng

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hydrolox-upper-1
		overrideParentTransform = thrustTransform
		position = 0,0,2.75
		rotation = 0, 0, 0
		scale = 1.4, 1.4, 4
	}
}

}


//*********************
// RL-10A             *
//*********************
@PART[SWRL10A]:NEEDS[Waterfall]
{

!fx_exhaustFlame_blue = DELETE
!fx_exhaustLight_blue = DELETE
!fx_smokeTrail_light = DELETE

MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWRL10AEngine
	engineID = SWRL10AEng

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hydrolox-upper-1
		overrideParentTransform = thrustTransform
		position = 0,0,1.02
		rotation = 0, 0, 0
		scale = 0.55, 0.55, 1
	}
}

}


//*********************
// RL-10B             *
//*********************
@PART[SWRL10BUpdate]:NEEDS[Waterfall]
{

!fx_exhaustFlame_blue = DELETE
!fx_exhaustLight_blue = DELETE
!fx_smokeTrail_light = DELETE

MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWRL10BEngine
	engineID = SWRL10BEng

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hydrolox-upper-variable-nozzle
		overrideParentTransform = thrustTransform
		position = 0,0,1.05
		rotation = 0, 0, 0
		scale = 0.75, 0.75, 1
	}
}

}


//*********************
// RL-10C             *
//*********************
@PART[SWRL10CUpdate]:NEEDS[Waterfall]
{

!fx_exhaustFlame_blue = DELETE
!fx_exhaustLight_blue = DELETE
!fx_smokeTrail_light = DELETE

MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWRL10CEngine
	engineID = SWRL10CEng

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hydrolox-upper-1
		overrideParentTransform = thrustTransform
		position = 0,0,1.95
		rotation = 0, 0, 0
		scale = 0.75, 0.75, 1
	}
}

}


//*****************************
// RS-68                      *
//*****************************
@PART[SWRS68]:NEEDS[Waterfall]
{

!fx_exhaustFlame_blue = DELETE
!fx_exhaustLight_blue = DELETE
!fx_smokeTrail_light = DELETE

MODULE
{
	name = ModuleWaterfallFX
	moduleID = RS68
	engineID = SWRS68Eng

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hydrolox-lower-4
		overrideParentTransform = thrustTransform
		position = 0,0,1.1
		rotation = 0, 0, 0
		scale = 1, 1, 1
	}
}

}


//**************************
// Altair RCS Quad         *
//**************************
@PART[SWAltairRCSQuad]:NEEDS[Waterfall]
{
	!EFFECTS{}
	EFFECTS
	{
		running
		{
			AUDIO_MULTI
			{
				channel = Ship
				transformName = rcsThruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.025
				volume = 1.0 0.2
				pitch = 0.0 0.75
				pitch = 1.0 1.5
				loop = true
			}
		}
	}
MODULE
{
	name = ModuleWaterfallFX
	moduleID = SWAltairQuad

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = rcs
		linkedTo = rcs
	}

	TEMPLATE
	{
		templateName = waterfall-rcs-jet-1
		overrideParentTransform = rcsThruster
		position = 0,0.14,0
		rotation = 0, 0, 180
		scale = 0.7, 1, 0.7
	}
}

}


//**********************
// Altair Ascent Stage *
//**********************
@PART[SWAltairAscent]:NEEDS[Waterfall]
{

!fx_exhaustFlame_blue_small = DELETE
!fx_exhaustLight_blue = DELETE
!fx_smokeTrail_light = DELETE

MODULE
{
	name = ModuleWaterfallFX
	moduleID = AltairAscent
	engineID = SWAltairAE

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hypergolic-UDMH-NTO-upper-1
		overrideParentTransform = thrustTransform
		position = 0,0,1
		rotation = 0, 0, 0
		scale = 0.48, 0.48, 1
	}
}

	!EFFECTS{}
	EFFECTS
	{
		running
		{
			AUDIO_MULTI
			{
				channel = Ship
				transformName = rcsThruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.025
				volume = 1.0 0.2
				pitch = 0.0 0.75
				pitch = 1.0 1.5
				loop = true
			}
		}
	}
MODULE
{
	name = ModuleWaterfallFX
	moduleID = AltairAscentRCS

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = rcs
		linkedTo = rcs
	}

	TEMPLATE
	{
		templateName = waterfall-rcs-jet-1
		overrideParentTransform = rcsThruster
		position = 0,0.14,0
		rotation = 0, 0, 180
		scale = 0.7, 1, 0.7
	}
}

}


//*****************************
// Altair Descent Stage       *
//*****************************
@PART[SWAltairDescent]:NEEDS[Waterfall]
{

!fx_exhaustFlame_blue_small = DELETE
!fx_exhaustLight_blue = DELETE
!fx_smokeTrail_light = DELETE

MODULE
{
	name = ModuleWaterfallFX
	moduleID = AltairDescent
	engineID = SWAltairDE

	CONTROLLER
	{
		name = atmosphereDepth
		linkedTo = atmosphere_density
	}

	CONTROLLER
	{
		name = throttle
		linkedTo = throttle
	}

	CONTROLLER
	{
		name = random
		linkedTo = random
		range = 0,1
	}

	TEMPLATE
	{
		templateName = waterfall-hypergolic-UDMH-NTO-upper-1
		overrideParentTransform = thrustTransform
		position = 0,0,0.85
		rotation = 0, 0, 0
		scale = 0.48, 0.48, 1
	}
}

}
