
// ------- Restock --------------------

@PART[nesdKeR7-rk109]:NEEDS[ReStock&!Waterfall]         // Based on Restock LV-909 config
{
	!EFFECTS {}
	
	EFFECTS
	{
		running
		{
			AUDIO
			{
				channel = Ship
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 1.0 0.5
				pitch = 0.0 0.6
				pitch = 1.0 1.0
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
				name = turbo
				modelName = ReStock/FX/restock-fx-reliant-turbo-1
				transformName = FXside
				emission = 0.0 0.0
				emission = 0.01 0.1
				emission = 0.075 0.25
				emission = 1.0 1.0
				speed = 0.0 0.8
				speed = 1.0 1.5
				localPosition = 0, 0, 0.02
				localRotation = -90.0, 0.0, 0.0
				localScale = 1.25, 1.25, 1.25
			}
			MODEL_MULTI_PARTICLE
			{
				name = plume
				modelName = ReStock/FX/restock-fx-terrier-1
				transformName = FXmain
				emission = 0.0 0.0
				emission = 0.01 0.2
				emission = 0.3 1.5
				emission = 1.0 3.0
				speed = 0.0 1.2
				speed = 1.0 1.5
				localPosition = 0, 0.0, 0
				localScale = 2.0, 2.0, 2.0
			}
			MODEL_MULTI_PARTICLE
			{
				name = core
				modelName = ReStock/FX/restock-fx-terrier-core-1
				transformName = FXmain
				emission = 0.0 0.0
				emission = 0.01 0.1
				emission = 0.075 0.25
				emission = 1.0 1.0
				speed = 0.0 0.8
				speed = 1.0 1.0
				localPosition = 0, 0.3, 0
				localScale = 2.0, 2.0, 2.0
			}
			PREFAB_PARTICLE
			{
				prefabName = fx_smokeTrail_light
				transformName = FXmain
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.25
				speed = 1.0 1.0
				localOffset = 0, -1.0, 0
				localScale = 1.5, 1.5, 1.5
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_soft
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout_2
				transformName = thrustTransform
				oneShot = true
			}
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
	}
}



@PART[nesdKeR7-rk124]:NEEDS[ReStock&!Waterfall]             // Based on Restock LV-T45 config
{
	!EFFECTS {}
	
	EFFECTS
	{
		running
		{
			AUDIO
			{
				channel = Ship
				clip = sound_rocket_hard
				volume = 0.0 0.0
				volume = 0.01 0.4
				volume = 1.0 1.0
				pitch = 0.0 0.2
				pitch = 0.01 0.6
				pitch = 1.0 1.8
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
				name = core
				modelName = ReStock/FX/restock-fx-swivel-core-1
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.01 0.1
				emission = 0.075 0.25
				emission = 1.0 1.0
				speed = 0.0 0.35
				speed = 1.0 1.0
				localPosition = 0.0, 0.0, 0.3
				localRotation = -90.0, 0.0, 0.0
			}
			MODEL_MULTI_PARTICLE
			{
				name = plume
				modelName = ReStock/FX/restock-fx-swivel-plume-1
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.01 0.1
				emission = 0.075 0.5
				emission = 1.0 2.0
				speed = 0.0 1.0
				speed = 1.0 1.5
				localPosition = 0.0, 0.0, 0.3
				localRotation = -90.0, 0.0, 0.0
				localScale = 1.0, 1.5, 1.5
			}
			PREFAB_PARTICLE
			{
				prefabName = fx_smokeTrail_light
				transformName = FX_Smoke
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.25
				speed = 1.0 1.0
				localOffset = 0, 0, 0
				localRotation = 0, 0, 0
				localScale = 2.0, 2.0, 2.0
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_medium
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout
				transformName = FX_Smoke
				oneShot = true
			}
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
	}
}



@PART[nesdKeR7-rk111]:NEEDS[ReStock&!Waterfall]             // Based on Restock LV-T30 config
{
	!EFFECTS {}
	
	EFFECTS
	{
		running
		{
			AUDIO
			{
				channel = Ship
				clip = sound_rocket_hard
				volume = 0.0 0.0
				volume = 0.01 0.4
				volume = 1.0 1.0
				pitch = 0.0 0.2
				pitch = 0.01 0.6
				pitch = 1.0 1.8
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
				name = core
				modelName = ReStock/FX/restock-fx-reliant-core-1
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.01 0.1
				emission = 0.075 0.25
				emission = 1.0 1.0
				speed = 0.0 0.35
				speed = 1.0 1.0
				localPosition = 0.0, 0.0, 0.5
				localRotation = -90.0, 0.0, 0.0
			}
			MODEL_MULTI_PARTICLE
			{
				name = plume
				modelName = ReStock/FX/restock-fx-reliant-plume-1
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.01 0.05
				emission = 0.075 0.2
				emission = 1.0 1.0
				speed = 0.0 1.0
				speed = 1.0 1.5
				localPosition = 0.0, 0.0, 0.5
				localRotation = -90.0, 0.0, 0.0
				localScale = 1.5, 1.5, 1.5
			}
			MODEL_MULTI_PARTICLE
			{
				name = turbo
				modelName = ReStock/FX/restock-fx-reliant-turbo-1
				transformName = FXpump
				emission = 0.0 0.0
				emission = 0.01 0.1
				emission = 0.075 0.25
				emission = 1.0 1.0
				speed = 0.0 0.8
				speed = 1.0 1.5
				localPosition = 0, 0, 0.02
				localRotation = 0.0, 0.0, 0.0
				localScale = 2.0, 2.0, 2.0
			}
			PREFAB_PARTICLE
			{
				prefabName = fx_smokeTrail_light
				transformName = FX_Smoke
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.25
				speed = 1.0 1.0
				localOffset = 0, 0, 0
				localRotation = 0, 0, 0
				localScale = 2.0, 2.0, 2.0
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_medium
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout
				transformName = FX_Smoke
				oneShot = true
			}
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
	}
}

@PART[nesdKeR7-VosContR]:NEEDS[ReStock&!Waterfall]
{
	!EFFECTS {}
	
	EFFECTS
	{
		running
		{
			AUDIO_MULTI_POOL
			{
				channel = Ship
				transformName = RCSthruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.05
				volume = 1.0 0.5
				pitch = 0.0 1.0
				pitch = 1.0 1.0
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
				modelName = ReStock/FX/restock-fx-rcs-mini-1
				transformName = RCSthruster
				emission = 0.0 0.0
				emission = 0.1 0.0
				emission = 1.0 2.0
				speed = 0.0 0.8
				speed = 1.0 1.0
				localRotation = 0, 0, 0
				localScale = 0.6, 0.6, 0.6
			}
		}
	}
}

// ------- Waterfall --------------------


@PART[nesdKeR7-rk109]:NEEDS[Waterfall]         // Based on original Waterfall LV-909 config
{
	!EFFECTS {}
	
	EFFECTS
	{
		running
		{
			AUDIO
			{
				channel = Ship
				clip = Waterfall/Sounds/EnsouSounds/Loop_Liquid_Light_High
				volume = 0.0 0.0
				volume = 1.0 1.0
				pitch = 0.0 0.5
				pitch = 1.0 0.9
				loop = true
			}
			PREFAB_PARTICLE
			{
				prefabName = fx_smokeTrail_light
				transformName = FXmain
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.25
				speed = 1.0 1.0
				localOffset = 0, -1.0, 0
				localScale = 1.2, 1.2, 1.2
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_soft
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		flameout
		{
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
	}
	MODULE
	{
		name = ModuleWaterfallFX
		moduleID = RK-109_FX
		engineID = basicEngine

		CONTROLLER
		{
			name = atmosphereDepth
			linkedTo = atmosphere_density
		}
		CONTROLLER
		{
			name = throttle
			linkedTo = throttle
		}
		CONTROLLER
		{
			name = random
			linkedTo = random
			range = -1,1
		}
		// -----------------------------------------------------
		// Past here should be generated with the ingame editor!
		// -----------------------------------------------------
		TEMPLATE
		{
			// This is the name of the template to use
			templateName = waterfall-kerolox-upper-1
			// This field allows you to override the parentTransform name in the EFFECTS contained in the template
			overrideParentTransform = FXmain
			position = 0,0.04,0
			rotation = 90, 0, 0
			scale = 0.97, 0.97, 1
		}
	}
	MODULE
	{
		name = ModuleWaterfallFX
		moduleID = RK-109steering_FX
		engineID = basicEngine

		CONTROLLER
		{
			name = atmosphereDepth
			linkedTo = atmosphere_density
		}
		CONTROLLER
		{
			name = rcs
			linkedTo = throttle
		}

		TEMPLATE
		{
			// This is the name of the template to use
			templateName = waterfall-rcs-jet-1
			// This field allows you to override the parentTransform name in the EFFECTS contained in the template
			overrideParentTransform = FXside
			scale = 1.5,0.5,1.5
			rotation = -90,0,0
			position = 0,0,0
		}
	}
}


@PART[nesdKeR7-rk124]:NEEDS[Waterfall]         // Based on original Waterfall LV-T45 config
{
	!EFFECTS {}
	
	EFFECTS
	{
		running
		{
			AUDIO
			{
				channel = Ship
				clip = Waterfall/Sounds/EnsouSounds/Loop_Liquid_Heavy_High_2
				volume = 0.0 0.0
				volume = 0.05 0.6
				volume = 1.0 1.2
				pitch = 0.0 0.5
				pitch = 1.0 0.9
				loop = true
			}
			PREFAB_PARTICLE
			{
				prefabName = fx_smokeTrail_light
				transformName = FX_Smoke
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.25
				speed = 1.0 1.0
				localOffset = 0, -1.0, 0
				localScale = 1.5, 1.5, 1.5
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_medium
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		disengage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_soft
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout_2
				transformName = FX_Smoke
				oneShot = true
			}
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
	}
	MODULE
	{
		name = ModuleWaterfallFX
		moduleID = RK-124_FX
		engineID = basicEngine

		CONTROLLER
		{
			name = atmosphereDepth
			linkedTo = atmosphere_density
		}
		CONTROLLER
		{
			name = throttle
			linkedTo = throttle
		}
		CONTROLLER
		{
			name = random
			linkedTo = random
			range = -1,1
		}
		// -----------------------------------------------------
		// Past here should be generated with the ingame editor!
		// -----------------------------------------------------
		TEMPLATE
		{
			// This is the name of the template to use
			templateName = waterfall-kerolox-sustainer-2
			// This field allows you to override the parentTransform name in the EFFECTS contained in the template
			overrideParentTransform = thrustTransform
			position = 0,0,0.56
			rotation = 0, 0, 0
			scale = 1.12, 1.12, 1
		}
	}
}


@PART[nesdKeR7-rk111]:NEEDS[Waterfall]         // Based on original Waterfall LV-T30 config
{
	!EFFECTS {}
	
	EFFECTS
	{
		running
		{
			AUDIO
			{
				channel = Ship
				clip = Waterfall/Sounds/KW/sound_altloop2
				volume = 0.0 0.0
				volume = 0.05 0.6
				volume = 1.0 1.2
				pitch = 0.0 0.5
				pitch = 1.0 0.9
				loop = true
			}
			PREFAB_PARTICLE
			{
				prefabName = fx_smokeTrail_light
				transformName = FX_Smoke
				emission = 0.0 0.0
				emission = 0.05 0.0
				emission = 0.075 0.25
				emission = 1.0 1.25
				speed = 0.0 0.25
				speed = 1.0 1.0
				localOffset = 0, -1.0, 0
				localScale = 2, 2, 2
			}
		}
		engage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_medium
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		disengage
		{
			AUDIO
			{
				channel = Ship
				clip = sound_vent_soft
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
		flameout
		{
			PREFAB_PARTICLE
			{
				prefabName = fx_exhaustSparks_flameout_2
				transformName = FX_Smoke
				oneShot = true
			}
			AUDIO
			{
				channel = Ship
				clip = sound_explosion_low
				volume = 1.0
				pitch = 2.0
				loop = false
			}
		}
	}
	MODULE
	{
		name = ModuleWaterfallFX
		moduleID = RK-111_FX
		engineID = basicEngine

		CONTROLLER
		{
			name = atmosphereDepth
			linkedTo = atmosphere_density
		}
		CONTROLLER
		{
			name = throttle
			linkedTo = throttle
		}
		CONTROLLER
		{
			name = random
			linkedTo = random
			range = -1,1
		}
		// -----------------------------------------------------
		// Past here should be generated with the ingame editor!
		// -----------------------------------------------------
		TEMPLATE
		{
			// This is the name of the template to use
			templateName = waterfall-kerolox-lower-5
			// This field allows you to override the parentTransform name in the EFFECTS contained in the template
			overrideParentTransform = thrustTransform
			position = 0,0,0.43
			rotation = 0, 0, 0
			scale = 1.25, 1.25, 1
		}
	}
	MODULE
	{
		name = ModuleWaterfallFX
		moduleID = RK-111pump_FX
		engineID = basicEngine

		CONTROLLER
		{
			name = atmosphereDepth
			linkedTo = atmosphere_density
		}
		CONTROLLER
		{
			name = throttle
			linkedTo = throttle
		}

		TEMPLATE
		{
			// This is the name of the template to use
			templateName = waterfall-kerolox-vernier-2
			// This field allows you to override the parentTransform name in the EFFECTS contained in the template
			overrideParentTransform = FXpump
			scale = 2.5, 2.5, 1.5
			rotation = 90, 0, 0
			position = 0, -0.01, 0
		}
	}
}


@PART[nesdKeR7-VosContR]:NEEDS[Waterfall]
{
	!EFFECTS {}
	
	EFFECTS
	{
		running
		{
			AUDIO_MULTI_POOL
			{
				channel = Ship
				transformName = RCSthruster
				clip = sound_rocket_mini
				volume = 0.0 0.0
				volume = 0.1 0.0
				volume = 0.5 0.05
				volume = 1.0 0.5
				pitch = 0.0 1.0
				pitch = 1.0 1.0
				loop = true
			}
		}
	}
	MODULE
	{
		name = ModuleWaterfallFX
		moduleID = VostRcs
		engineID = basicEngine

		CONTROLLER
		{
			name = atmosphereDepth
			linkedTo = atmosphere_density
		}
		CONTROLLER
		{
			name = rcs
			linkedTo = rcs
			}
 
		TEMPLATE
		{
			templateName = waterfall-rcs-jet-1
			overrideParentTransform = RCSthruster
			scale = 0.3, 0.2, 0.3
			rotation = 0, 0, 180
			position = 0, 0.0, 0
		}
	}
}

