NewShipType = StartShipConfig()

--====================================================================================
--NAMING AND DESCRIPTION
--====================================================================================

NewShipType.displayedName = "Executor Star-Dreadnought"
NewShipType.sobDescription = "Command Ship"
NewShipType.SquadronSize = 1
NewShipType.alwaysInRenderList = 1

--====================================================================================
--COST
--====================================================================================

NewShipType.buildCost = 20000000
NewShipType.buildTime = 500
NewShipType.buildPriorityOrder = 8

--====================================================================================
--HEALTH
--====================================================================================

NewShipType.mass = 1780000
NewShipType.maxhealth = 30330000
NewShipType.regentime = 1213.2
NewShipType.minRegenTime = 1
NewShipType.topArmourDamage = 0.8
NewShipType.bottomArmourDamage = 0.8
NewShipType.frontArmourDamage = 1
NewShipType.sideArmourDamage = 1.2
NewShipType.rearArmourDamage = 1.5
NewShipType.dustCloudDamageTime = 500
NewShipType.nebulaDamageTime = 300
addShield(NewShipType,"EMP",250000,20)

--====================================================================================
--FORMATION
--====================================================================================

NewShipType.paradeData = "hgn_carrier_parade"
NewShipType.passiveFormation = "Broad"
NewShipType.defensiveFormation = "Delta"
NewShipType.aggressiveFormation = "Claw"
NewShipType.formationSpacing = 15000

--====================================================================================
--PROPULSION
--====================================================================================
NewShipType.thrusterMaxSpeed = 200
NewShipType.mainEngineMaxSpeed = 200
NewShipType.rotationMaxSpeed = 1

NewShipType.thrusterAccelTime = 5
NewShipType.thrusterBrakeTime = 5
NewShipType.mainEngineAccelTime = 5
NewShipType.mainEngineBrakeTime = 5
NewShipType.rotationAccelTime = 20
NewShipType.rotationBrakeTime = 20

--====================================================================================
--MOVEMENT
--====================================================================================

NewShipType.controllerType = "Ship"

NewShipType.thrusterUsage = 1
NewShipType.accelerationAngle = 30
NewShipType.mirrorAngle = 0
NewShipType.secondaryTurnAngle = 0
NewShipType.maxBankingAmount = 30
NewShipType.descendPitch = 30
NewShipType.goalReachEpsilon = 1000
NewShipType.slideMoveRange = 1000
NewShipType.relativeMoveFactor = 0.01

NewShipType.collisionMultiplier = 100

--====================================================================================
--CLASSIFICATION
--====================================================================================

NewShipType.militaryUnit = 1
NewShipType.MinimalFamilyToFindPathAround = "MotherShip"
NewShipType.BuildFamily = "SuperCap_vgr"
NewShipType.AttackFamily = "SuperCapital"
NewShipType.DockFamily = "Hyper"
NewShipType.AvoidanceFamily = "SuperCap"
NewShipType.DisplayFamily = "Capital"
NewShipType.AutoFormationFamily = "Capship"
NewShipType.CollisionFamily = "Unmoveable"
NewShipType.ArmourFamily = "Hull_Cap_8D"
NewShipType.UnitCapsFamily = "UltraCap"
NewShipType.unitCapsNumber = 1

--====================================================================================
--SENSORS
--====================================================================================

NewShipType.visualRange = 35000
NewShipType.prmSensorRange = 30000
NewShipType.secSensorRange = 30000
NewShipType.detectionStrength = 3

--====================================================================================
--COMBAT
--====================================================================================

NewShipType.useEngagementRanges = 1 
NewShipType.retaliationRange = 25000
NewShipType.retaliationDistanceFromGoal = 15000
addAbility(NewShipType, "CanAttack", 1, 1, 0, 1, 1, 1.2, "Destroyer","FrontalAssault2")
addAbility(NewShipType,"GuardCommand",1,10000,10000)

--====================================================================================
--UI VISIBILITY
--====================================================================================

NewShipType.mouseOverMinFadeSize = 0.045
NewShipType.mouseOverMaxFadeSize = 0.1
NewShipType.healthBarStyle = 2

--====================================================================================
--VISIBILITY
--====================================================================================

NewShipType.nlips = 0
NewShipType.nlipsRange = 75000
NewShipType.nlipsFar = 0
NewShipType.nlipsFarRange = 0
NewShipType.SMRepresentation = "Mesh"
NewShipType.meshRenderLimit = 550000
NewShipType.dotRenderLimit = 10
NewShipType.visibleInSecondary = 0
NewShipType.goblinsStartFade = 5
NewShipType.goblinsOff = 10
NewShipType.minimumZoomFactor = 0.25
NewShipType.selectionLimit = 40000000000000000000000000
NewShipType.preciseSelectionLimit = 80000
NewShipType.preciseATILimit = 1000
NewShipType.selectionPriority = 5
NewShipType.SMHighlightDistMin = 20000
NewShipType.SMHighlightDistMax = 30000

--====================================================================================
--ABILITIES
--====================================================================================

addAbility(NewShipType,"MoveCommand",1,0)
AddShipMultiplier(NewShipType, "MaxShield", "ThisShipOnly", "Linear", 5, 0, 0)
AddShipMultiplier(NewShipType, "HealthRegenerationRate", "ThisShipOnly", "Linear", 5, 0, 0)
AddShipMultiplier(NewShipType, "Speed", "ThisShipOnly", "Linear", 1, .9, 0)
AddShipMultiplier(NewShipType, "WeaponAccuracy", "ThisShipOnly", "Linear", 1, .75, 0)
AddShipMultiplier(NewShipType, "WeaponDamage", "ThisShipOnly", "Linear", 1, .75, 0)
AddShipMultiplier(NewShipType, "PrimarySensorsRange", "ThisShipOnly", "Linear", 1, .75, 0)
addAbility(NewShipType,"WaypointMove")
addAbility(NewShipType,"HyperSpaceCommand",3,3,1000,1000,3,5)
addAbility(NewShipType,"CanBeCaptured",16000,1)
addAbility(NewShipType,"CanBeRepaired")
addAbility(NewShipType,"RetireAbility",1,1)
addAbility(NewShipType,"MinelayerAbility",1,1)
addAbility(NewShipType,"HyperspaceViaGateCommand",1,3,1,0.3)
AddShipMultiplier(NewShipType,"HyperSpaceAbortDamage","ThisShipOnly","Linear",1,0,0)
AddShipMultiplier(NewShipType,"WeaponAccuracy","OwnShipsWithinRadius","Linear",1.15,1.15,54500)
addAbility(NewShipType,"SensorPing",1,1,10,2.5)
--====================================================================================
--DOCKING
--====================================================================================

addAbility(NewShipType,"CanDock",1,1)
NewShipType.dockTimeBetweenTwoFormations = 0.25
NewShipType.dockTimeBeforeStart = 0.25
NewShipType.dockNrOfShipsInDockFormation = 1
NewShipType.dockFormation = "dockline"
NewShipType.queueFormation = "n_delta"
NewShipType.dontDockWithOtherRaceShips = 0
NewShipType.ignoreRaceWhenDocking = 1
addAbility(NewShipType,"CanLaunch")
NewShipType.launchTimeBetweenTwoFormations = 0.25
NewShipType.launchTimeBeforeStart = 0.25
NewShipType.launchNrOfShipsInDockFormation = 1
NewShipType.launchFormation = "n_delta"
addAbility(NewShipType,"ShipHold",1,0,100,"rallypoint","Fighter,Corvette,Frigate",25,{
  Fighter = "12",
},{
  Corvette = "75",
})
addAbility(NewShipType,"ParadeCommand",1)

--====================================================================================
--CONSTRUCTION
--====================================================================================

--====================================================================================
--SUBSYSTEMS
--====================================================================================
LoadModel(NewShipType,1)
--StartShipHardPointConfig(NewShipType,"Shield","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_SSD_Shields")
--StartShipHardPointConfig(NewShipType,"Shield","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_Bridge")
StartShipHardPointConfig(NewShipType,"ENGINES","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_REngines")
StartShipHardPointConfig(NewShipType,"ENGINES","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_MidEngines")
StartShipHardPointConfig(NewShipType,"ENGINES","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_LEngines")
StartShipHardPointConfig(NewShipType,"ENGINES","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_Engines")
StartShipHardPointConfig(NewShipType,"STRUCTURE","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_aft")
StartShipHardPointConfig(NewShipType,"STRUCTURE","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_bow")
StartShipHardPointConfig(NewShipType,"SENSORS","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_Psensors")
StartShipHardPointConfig(NewShipType,"SENSORS","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_Ssensors")
StartShipHardPointConfig(NewShipType,"STRUCTURE","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_LF")
StartShipHardPointConfig(NewShipType,"STRUCTURE","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_LR")
StartShipHardPointConfig(NewShipType,"STRUCTURE","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_RF")
StartShipHardPointConfig(NewShipType,"STRUCTURE","Hardpoint_Shield","System","Generic","Damageable","Vgr_Executor_RR")

StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L0","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L1","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L2","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L3","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L4","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L5","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L6","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L7","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L8","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L9","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L10","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L11","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L12","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L13","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L14","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L15","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L16","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L17","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L18","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L19","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L20","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L21","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L22","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L23","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L24","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L25","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L26","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L27","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L28","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L29","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L30","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_L31","")

StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T0","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T1","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T2","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T3","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T4","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T5","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T6","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T7","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T8","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T9","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T10","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T11","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T12","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T13","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T14","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T15","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T16","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T17","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T18","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T19","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T20","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T21","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T22","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_T23","")

StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B0","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B1","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B2","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B3","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B4","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B5","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B6","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B7","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B8","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B9","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_B10","")

StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BL0","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BL1","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BL2","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BL3","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BL4","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BL5","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BL6","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BL7","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BL8","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BL9","")

StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BR0","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BR1","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BR2","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BR3","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BR4","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BR5","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BR6","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BR7","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BR8","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_BR9","")

StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher0","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher1","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher2","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher3","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher4","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher5","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher6","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher7","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher8","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher9","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher10","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher11","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher12","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher13","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher14","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher15","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher16","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher17","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher18","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher19","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher20","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher21","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher22","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher23","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher24","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher25","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher26","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher27","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher28","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher29","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher30","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher31","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher32","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher33","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher34","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher35","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher36","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher37","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher38","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher39","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher40","")
StartShipWeaponConfig(NewShipType,"concussion_missile_launcher_large_5","Weapon_Launcher41","")

StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS0","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS1","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS2","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS3","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS4","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS5","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS6","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS7","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS8","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS9","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS10","")
StartShipWeaponConfig(NewShipType,"turbolaser_10d_ssd","Weapon_SS11","")

--62 ion emplacments
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W0","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W1","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W2","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W3","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W4","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W5","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W6","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W7","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W8","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W9","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W10","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W11","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W12","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W13","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W14","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W15","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W16","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W17","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W18","")
StartShipWeaponConfig(NewShipType,"turbolaser_7d_ssd","Weapon_W19","")

--====================================================================================
--WEAPONRY
--====================================================================================
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_E0","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_E1","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_E2","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_E3","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_E4","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_E5","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_E6","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_E7","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_E8","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_E9","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q0","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q1","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q2","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q3","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q4","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q5","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q6","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q7","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q8","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q9","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q10","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q11","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q12","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q13","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q14","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q15","")
StartShipWeaponConfig(NewShipType,"Laser_5D_PDS","Weapon_Q16","")
--====================================================================================
--DEATH
--====================================================================================

NewShipType.battleScarMaxTriBase = 5000
NewShipType.battleScarMaxTriInc = 10000
NewShipType.sobDieTime = 21.5
NewShipType.sobSpecialDieTime = 1.9
NewShipType.specialDeathSpeed = 0
NewShipType.chanceOfSpecialDeath = 0.5
NewShipType.deadSobFadeTime = 0
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg03",2,0.75,0,0,0,50,0,0,0,200,0,0,0,50,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg02",2,0.05,30,-20,200,25,300,150,85,50,0,0,0,85,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg04",2,0.05,50,40,-150,50,65,25,5,25,0,0,0,95,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg05",2,0.05,25,10,-100,30,35,75,62,75,0,0,0,80,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg01",2,0.05,60,30,150,25,35,125,65,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg03",1,0.75,0,0,0,50,0,0,0,200,0,0,0,50,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg02",1,0.05,30,-20,200,25,300,150,85,50,0,0,0,85,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg04",1,0.05,50,40,-150,50,65,25,5,25,0,0,0,95,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg05",1,0.05,25,10,-100,30,35,75,62,75,0,0,0,80,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg01",1,0.05,60,30,150,25,35,125,65,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml01",1,0.01,80,125,60,75,125,80,65,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml02",1,0.01,25,0,-125,50,80,35,120,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml03",1,0.01,60,95,200,50,15,200,20,125,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml04",1,0.01,10,60,-300,25,35,80,65,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml05",1,0.01,60,10,30,75,35,25,65,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg03",1,0.75,0,0,0,50,0,0,0,200,0,0,0,50,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg02",1,0.05,30,-20,200,25,300,150,85,50,0,0,0,85,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg04",1,0.05,50,40,-150,50,65,25,5,25,0,0,0,95,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg05",1,0.05,25,10,-100,30,35,75,62,75,0,0,0,80,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg01",1,0.05,60,30,150,25,35,125,65,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml01",1,0.01,80,125,60,75,125,80,65,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml02",1,0.01,25,0,-125,50,80,35,120,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml03",1,0.01,60,95,200,50,15,200,20,125,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml04",1,0.01,10,60,-300,25,35,80,65,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Sml05",1,0.01,60,10,30,75,35,25,65,75,0,0,0,60,0,0,0,50)
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg03",1,0.75,0,0,0,50,0,0,0,200,0,0,0,50,0,0,0,50)
--====================================================================================
--ENGINES AND SOUND
--====================================================================================

setEngineBurn(NewShipType,10,0.5,1,300,0,0.7,0.15,380)
setEngineGlow(NewShipType,20,1,1,25000,25000,50,4,{
  0.69,
  0.2,
  0.2,
  0.3,
})
loadShipPatchList(NewShipType,"data:sound\sfx\ship\imperial\sov",0,"Engines/HDestroyerEng","",1,"Ambience/sov","")

--====================================================================================
--MISC
--====================================================================================

NewShipType.isTransferable = 1
NewShipType.tumbleStaticX = 1
NewShipType.tumbleStaticY = 1
NewShipType.tumbleStaticZ = 1
NewShipType.tumbleDynamicX = 1
NewShipType.tumbleDynamicY = 1
NewShipType.tumbleDynamicZ = 1
NewShipType.tumbleSpecialDynamicX = 1
NewShipType.tumbleSpecialDynamicY = 1
NewShipType.tumbleSpecialDynamicZ = 1
NewShipType.swayUpdateTime = 50
NewShipType.swayOffsetRandomX = 1
NewShipType.swayOffsetRandomY = 1
NewShipType.swayOffsetRandomZ = 1
NewShipType.swayBobbingFactor = 0.15
NewShipType.swayRotateFactor = 0
NewShipType.useTargetRandom = 1
NewShipType.targetRandomPointXMin = -0.2
NewShipType.targetRandomPointXMax = 0.2
NewShipType.targetRandomPointYMin = -0.2
NewShipType.targetRandomPointYMax = 0.2
NewShipType.targetRandomPointZMin = -0.2
NewShipType.targetRandomPointZMax = 0.2

--====================================================================================
--AI WEIGHTING
--====================================================================================

NewShipType.fighterValue = 0
NewShipType.corvetteValue = 0
NewShipType.frigateValue = 25
NewShipType.neutralValue = 0
NewShipType.antiFighterValue = 0
NewShipType.antiCorvetteValue = 25
NewShipType.antiFrigateValue = 25
NewShipType.totalValue = 75
