PART
{


// --- general parameters ---
name = A6IntruderHull
module = Part
author = Morgan

// --- asset parameters ---
mesh = model.mu
scale = 1
rescaleFactor = 1

// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,0,1,1,1

node_stack_top = 0.3790395, 1.983346, -0.1234082, 0.0, 1.0, 0.0, 1 //CoPilotSEAT
node_stack_top = -0.3702246, 1.983346, -0.1234082, 0.0, 1.0, 0.0, 1 //PilotSEAT
//node_stack_top2 = 0.0, 4.050344, -1.080715, 0.0, -1.0, 0.0, 1 //canopy
node_stack_bottom = 0.0, 1.0, 0.0, 0.0, -1.0, 0.0, 1
node_stack_top = 0.0, 1.0, 0.0, 0.0, -1.0, 0.0, 1
node_stack_top = -0.3489417, -8.911329, -0.8151891, 0.0, 1.0, 0.0, 1  //LE
node_stack_top = 0.3420333, -8.914079, -0.8124639, 0.0, 1.0, 0.0, 1  //RE
//node_stack_top = -0.000464607, -5.538733, -1.908029, 0.0, -1.0, 0.0, 1 //Rudder

// --- editor parameters ---
TechRequired = start
entryCost = 0
cost = 600
category = Pods
subcategory = 0
title = A-6 Intruder Primary Hull
manufacturer = Grumman
description = All Weather Navy attack Bomber


// --- standard part parameters ---
mass = 3
dragModelType = default
maximum_drag = 0.15
minimum_drag = 0.15
angularDrag = 2
crashTolerance = 5
maxTemp = 3400
heatConductivity = 0.05
thermalMassModifier = 5

emissiveConstant = 0.97
fuelCrossFeed = True
dragCoeff = 0.1
deflectionLiftCoeff = 1.85

vesselType = Ship


// --- internal setup ---


MODULE
	{
		name = ModuleAnimateGeneric
		animationName = Canopy
		startEventGUIName = Open Canopy
		endEventGUIName = Close Canopy
		actionGUIName = Canopy
	}

MODULE
	{
		name = ModuleAnimateGeneric
		animationName = Brakes
		startEventGUIName = Deploy Air Brakes
		endEventGUIName = Secure Air Brakes
		actionGUIName = Air Brakes
	}

MODULE
	{
		name = ModuleAnimateGeneric
		animationName = Ladders
		startEventGUIName = Open Crew Ladders
		endEventGUIName = Close Crew Ladders
		actionGUIName = Crew Ladders
	}

MODULE
	{
		name = ModuleAnimateGeneric
		animationName = Hook
		startEventGUIName = Deploy Arrestor Hook
		endEventGUIName = Retract Arrestor Hook
		actionGUIName = Arrestor Hook
	}
RESOURCE
{
	name = ElectricCharge
	amount = 50
	maxAmount = 50
}

RESOURCE
{
	name = LiquidFuel
	amount = 250
	maxAmount = 250
}

MODULE
{
	name = ModuleReactionWheel
	
	PitchTorque = 400  //170
	YawTorque = 400    //170
	RollTorque = 400   //170
	
	RESOURCE
	{
		name = ElectricCharge
		rate = 0.24
	}
}





EFFECTS
    {
        
	
        power
        {

            MODEL_MULTI_PARTICLE
            {
                name = flamejet1
                modelName = BahaSP/Parts/125vectorjet/effects/engineFX
                transformName = thrustTransform
                emission = 0.0 0.0
                emission = 0.93 0.0
                emission = 0.95 1.1
                emission = 1.0 1.2
                speed = 0.0 1.0
                speed = 1.0 1.0
            }
            MODEL_MULTI_PARTICLE
            {
                name = flamejet2
                modelName = BahaSP/Parts/125vectorjet/effects/engineFX2
                transformName = thrustTransform
                emission = 0.0 0.0
                emission = 0.93 0.0
                emission = 0.95 1.1
                emission = 1.0 1.2
                speed = 0.0 1.0
                speed = 1.0 1.0
            }

            MODEL_MULTI_PARTICLE
            {
                name = flamejet1
                modelName = BahaSP/Parts/125vectorjet/effects/engineFX
                transformName = thrustTransform1
                emission = 0.0 0.0
                emission = 0.93 0.0
                emission = 0.95 1.1
                emission = 1.0 1.2
                speed = 0.0 1.0
                speed = 1.0 1.0
            }
            MODEL_MULTI_PARTICLE
            {
                name = flamejet2
                modelName = BahaSP/Parts/125vectorjet/effects/engineFX2
                transformName = thrustTransform1
                emission = 0.0 0.0
                emission = 0.93 0.0
                emission = 0.95 1.1
                emission = 1.0 1.2
                speed = 0.0 1.0
                speed = 1.0 1.0
            }
	AUDIO
            {
                channel = Ship
                clip = BahaSP/Parts/125vectorjet/afterburner
                volume = 0.0 0.0
		volume = 0.25 0.0
		volume = 0.26 0.5
		volume = 0.93 0.55
		volume = 0.935 1	
                volume = 1.0 1
                pitch = 0.0 0.7
		pitch = 0.93 0.8
		pitch = 0.95 1.0
                pitch = 1.0 1.0
                loop = true
            }

        }

	running
        {
	    PREFAB_PARTICLE
            {
                name = flamethrust2
                prefabName = fx_smokeTrail_light 
                transformName = smokePoint
                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, 1
            }

            PREFAB_PARTICLE
            {
                name = flamethrust2
                prefabName = fx_smokeTrail_light 
                transformName = smokePoint1
                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, 1
            }
	    AUDIO
            {
                channel = Ship
                clip = BahaSP/Parts/125vectorjet/jet
                volume = 0.0 0.0
		volume = 0.05 0.3
                volume = 1.0 0.4
                pitch = 0.0 0.0
		pitch = 0.1 0.4
		pitch = 0.93 1.2
		pitch = 0.95 1.5
                pitch = 1.0 1.52
                loop = true
            }

        }
        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
        {
            AUDIO
            {
                channel = Ship
                clip = sound_explosion_low
                volume = 1.0
                pitch = 2.0
                loop = false
            }
        }
    }
    MODULE
    {
	name = ModuleEnginesFX
	
	runningEffectName = running
	directThrottleEffectName = power
	thrustVectorTransformName = thrustTransform
	exhaustDamage = False
	ignitionThreshold = 0.1
	minThrust = 0
	maxThrust = 175
	heatProduction = 60
        useEngineResponseTime = True
	engineAccelerationSpeed = 0.27
	engineDecelerationSpeed = 0.35
	useVelocityCurve = True
            
            PROPELLANT
            {
                name = LiquidFuel
                ratio = 1
		DrawGauge = True
            }
            PROPELLANT
            {
                name = IntakeAir
                ratio = 21
            }
            atmosphereCurve
            {
                //    Atm.P.  Isp   iTan oTan
                key = 0       1625  0    2.25E+07
                key = 7.5E-06 1772  0    0
                key = 0.0006  1492  0    0
                key = 0.11    1668  0    0
                key = 1       1440 -660  0
            }
            velocityCurve
            {
		//from B9 aerospace turbo jet
                // Based on Fnet data from NASA EngineSim, curve fitted with MuMech CurveEd
                key = 0    0.56 0      -0.0003
                key = 230  0.52 0      0
                key = 687  0.7  0.0011 0.0011
                key = 1030 1    0      0
                key = 1260 0.5  -0.004 -0.004
                key = 1430 0    0      0
            }
    }

MODULE
    {
	name = ModuleEnginesFX
	
	runningEffectName = running
	directThrottleEffectName = power
	thrustVectorTransformName = thrustTransform1
	exhaustDamage = False
	ignitionThreshold = 0.1
	minThrust = 0
	maxThrust = 175
	heatProduction = 60
        useEngineResponseTime = True
	engineAccelerationSpeed = 0.27
	engineDecelerationSpeed = 0.35
	useVelocityCurve = True
            
            PROPELLANT
            {
                name = LiquidFuel
                ratio = 1
		DrawGauge = True
            }
            PROPELLANT
            {
                name = IntakeAir
                ratio = 21
            }
            atmosphereCurve
            {
                //    Atm.P.  Isp   iTan oTan
                key = 0       1625  0    2.25E+07
                key = 7.5E-06 1772  0    0
                key = 0.0006  1492  0    0
                key = 0.11    1668  0    0
                key = 1       1440 -660  0
            }
            velocityCurve
            {
		//from B9 aerospace turbo jet
                // Based on Fnet data from NASA EngineSim, curve fitted with MuMech CurveEd
                key = 0    0.56 0      -0.0003
                key = 230  0.52 0      0
                key = 687  0.7  0.0011 0.0011
                key = 1030 1    0      0
                key = 1260 0.5  -0.004 -0.004
                key = 1430 0    0      0
            }
    }







MODULE
{
	name = ModuleAlternator	
	RESOURCE
	{
		name = ElectricCharge
		rate = 50
	}
}




MODULE
{
	name = AnimatedThrust
	ThrustAnimationName = vjthrust2
	disableGimbalToggle = true
}








MODULE
{
  name = ModuleResourceIntake
  resourceName = IntakeAir
  checkForOxygen = true
  area = 0.012
  intakeSpeed = 12
  intakeTransformName = IntakeAir  
}

RESOURCE
{
 name = IntakeAir
 amount = 0.4
 maxAmount = 0.8
}








}


