unitDef                    = {
	--acceleration                 = 0.5,
	airStrafe                    = false,
	airHoverFactor				 = 0,
	--brakeRate                    = 1,
	buildCostEnergy              = 0,
	buildCostMetal               = 76,
	buildTime                    = 2.5,
	buildpic					 = "egunship2.png",
	canAttack                    = true,
	canFly                       = true,
	canGuard                     = true,
	canLoopbackAttack            = true,
	canMove                      = true,
	canPatrol                    = true,
	canstop                      = true,
	category                     = "AIRARMORED VTOL",
	collide                      = true,
	cruiseAlt                    = 125,
	description                  = [[Anti-Armor Gunship]],
	energyMake                   = 0,
	energyStorage                = 0,
	energyUse                    = 0,
	explodeAs                    = "mediumExplosionGenericRed",
	floater                      = true,
	footprintX                   = 2,
	footprintZ                   = 2,
	hoverAttack                  = false,
	iconType                     = "air_arm",
	idleAutoHeal                 = .5,
	idleTime                     = 2200,
	maxacc						 = 1,
	
	maxAileron					 = 0.01,
	maxElevator					 = 0.01,
	maxRudder					 = 0.01,
	maxBank					 	 = 0.01,
	
	maxDamage                    = 940,
	maxSlope                     = 90,
	maxVelocity                  = 15,
	maxWaterDepth                = 0,
	metalStorage                 = 0,
	moverate1                    = "8",
	name                         = humanName,
	objectName                   = objectName,
	script			             = script,
	radarDistance                = 0,
	repairable		             = false,
	selfDestructAs               = "mediumExplosionGenericRed",
	side                         = "CORE",
	sightDistance                = 1400,
	smoothAnim                   = true,
	sonarDistance                = 0,
	transportbyenemy             = false;
	turnRate                     = 5000,
	turnradius					 = 250,
	unitname                     = unitName,
	upright						 = true,
	sfxtypes                     = { 
		pieceExplosionGenerators = { 
			"deathceg3", 
			"deathceg4", 
		}, 

		explosiongenerators      = {
			"custom:jethtrail",
			"custom:blacksmoke",
		},
	},
	sounds                       = {
		underattack              = "other/unitsunderattack1",
		ok                       = {
			"ack",
		},
		select                   = {
			"unitselect",
		},
	},
	weapons                      = {
		[1]                      = {
			def                  = "gunshipweapon",
			BadTargetCategory    = "BUILDING WALL",
			mainDir              = "0 0 1",
			maxAngleDif          = 90,
		},
	},
	customParams                 = {
		unittype				  = "mobile",
		--    needed_cover       = 2,
		isupgraded               = isUpgraded,
		canareaattack            ="1",
		death_sounds             = "generic",
		RequireTech              = tech,
		armortype                = armortype,
		nofriendlyfire	         = "1",
		supply_cost              = supply,
		normaltex               = "unittextures/lego2skin_explorernormal.dds", 
		buckettex                = "unittextures/lego2skin_explorerbucket.dds",
		factionname	             = "ateran",
		corpse                   = "energycore",
		retreatRangeDAI			 = 0,
	},
}

weaponDefs                 = {

	gunshipweapon             = {
		AreaOfEffect             = 1,
		avoidFriendly            = false,
		avoidFeature             = false,
		collideFriendly          = false,
		collideFeature           = false,
		cegTag                   = "gunshiptrail-optimized",
		explosionGenerator       = "custom:genericshellexplosion-medium",
		energypershot            = 0,
		edgeEffectiveness        = 0.1,
		fireStarter              = 70,
		tracks                   = true,
		impulseBoost             = 0,
		impulseFactor            = 0,
		interceptedByShieldType  = 4,
		model                    = "missilesmalllauncher.s3o",
		name                     = "Rockets",
		range                    = 700,
		reloadtime               = 1,
		weaponType		         = "MissileLauncher",
		waterweapon				 = true,
		smokeTrail               = false,
		soundHit                 = "explosions/bombhit.wav",
		soundHitWet				 = "weapons/subhit.wav",
		soundHitVolume	         = 10,
		soundStart               = "weapons/18395_inferno_rltx.wav",
		soundStartVolume         = 10,
		startVelocity            = 50,
		tolerance                = 5000,
		turnRate                 = 20000,
		turret                   = false,
		weaponAcceleration       = 100,
		flightTime               = 2.5,
		weaponVelocity           = 700,
		customparams             = {
			isupgraded           = isUpgraded,
			damagetype		     = "antilightarmored",  
		},      
		damage                   = {
			default              = 150,
		},
	},
}
