PART
{
	// --- general parameters ---
	name = OctoSat_Pr_Ion
	module = Part
	author = Nookos
	
	// --- Model ---
	
	MODEL
	{
		model = NSS/Parts/OctoSat_Pr_Ion
	}
	// --- asset parameters ---
	scale = 1
	rescaleFactor = 1

	// --- node definitions ---
	node_stack_bottom = 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0
	node_stack_top = 0.0, 0.2581, 0.0, 0.0, 1.0, 0.0, 0

	// --- editor parameters ---
	TechRequired = advUnmanned
	entryCost = 10000
	cost = 3200
	category = Engine
	subcategory = 0
	title = OSIX-3315 "Dusk" Electric Propulsion System
	manufacturer = NSS
	description = You have no fear of getting old? Patience is your middle name? Careful planning is your motto? If so then 'Dusk' is the propulsion you need for your OctoSat. It will get you as far as you will dare to go, as slow as it's possible to get there. Don't forget your solar panels, RTG or fuel cell. 

	// --- attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision ---
	attachRules = 1,0,1,1,0


	// --- standard part parameters ---
	mass = 0.12
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 2
	crashTolerance = 9
	maxTemp = 2000

	bulkheadProfiles = srf
	tags = octosat (dusk deep drive efficient engine (ion probe thruster vacuum xenon
	// --- resources ---

	// --- Modules ---
	MODULE
	{
		name = AnimatedEngine
		EngineAnimationName = Deploy //name of animation
		WaitForAnimation = 0.85   //normalizedTime index of when to activate engine on deploy (default is 0 = instant.  1 = wait till animation plays fully)
	}
	MODULE
	{
		name = ModuleEnginesFX
		engineID = Ion
		thrustVectorTransformName = thrustTransform
		exhaustDamage = False
		ignitionThreshold = 0.1
		minThrust = 0
		maxThrust = 2
		heatProduction = 0
		powerEffectName = IonPlume
		EngineType = Electric
		PROPELLANT
		{
			name = ElectricCharge
			ratio = 1.8
			DrawGauge = True
			minResToLeave = 1.0
		}
		PROPELLANT
		{
			name = XenonGas
			ratio = 0.1
			DrawGauge = True
		}
		atmosphereCurve
		{
			key = 0 4200
			key = 1 100
			key = 1.2 0.001
		}
	}
//	MODULE
//	{
//	name = AnimatedThrust
//	ThrustAnimationName = IonEngineEmissive
//	disableGimbalToggle = false //if true, disables multiple gimbal buttons/actiongroups and combines them to one (I just needed this because my thrust vector jet had 24 gimbals)
//	}
	MODULE
	{
		name = FXModuleAnimateThrottle
		animationName = IonEngineEmissive
		dependOnEngineState = True
		responseSpeed = 0.5
		engineName = Ion
		dependOnThrottle = True
	}
	EFFECTS
	{		
		IonPlume
		{
			AUDIO
			{
				channel = Ship
				clip = sound_IonEngine
				volume = 0.0 0.0
				volume = 0.05 0.20
				volume = 1.0 0.25
				pitch = 0.0 0.2
				pitch = 1.0 0.8
				loop = true
			}
			MODEL_MULTI_PARTICLE
			{
				modelName = Squad/FX/IonPlume
				transformName = thrustTransform
				emission = 0.0 0.0
				emission = 0.25 0.5			
				emission = 1.0 1.0
				//speed = 0.0 0.0
				//speed = 1.0 1.0
			}
		}
	}
}
