1--[[ OLD ship templates 2These are older ship templates, going to be replaced soon. 3----------------------------------------------------------]] 4 5--[[ Player ships --]] 6template = ShipTemplate():setName("Player Cruiser"):setLocaleName(_("playerShip", "Player Cruiser")):setModel("battleship_destroyer_5_upgraded"):setType("playership") 7template:setRadarTrace("radar_cruiser.png") 8-- Arc, Dir, Range, CycleTime, Dmg 9template:setBeam(0, 90, -15, 1000.0, 6.0, 10) 10template:setBeam(1, 90, 15, 1000.0, 6.0, 10) 11-- Setup 3 missile tubes. 2 forward at a slight angle, and 1 in the rear exclusive for mines. 12template:setTubes(3, 8.0) -- Amount of torpedo tubes, and loading time of the tubes. 13template:setTubeDirection(0, -5):weaponTubeDisallowMissle(0, "Mine") 14template:setTubeDirection(1, 5):weaponTubeDisallowMissle(1, "Mine") 15template:setTubeDirection(2, 180):setWeaponTubeExclusiveFor(2, "Mine") 16template:setHull(200) 17template:setShields(80, 80) 18template:setSpeed(90, 10, 20) 19template:setWarpSpeed(0) 20template:setJumpDrive(true) 21template:setCombatManeuver(400, 250) 22template:setWeaponStorage("Homing", 12) 23template:setWeaponStorage("Nuke", 4) 24template:setWeaponStorage("Mine", 8) 25template:setWeaponStorage("EMP", 6) 26 27template:addRoomSystem(1, 0, 2, 1, "Maneuver"); 28template:addRoomSystem(1, 1, 2, 1, "BeamWeapons"); 29template:addRoom(2, 2, 2, 1); 30 31template:addRoomSystem(0, 3, 1, 2, "RearShield"); 32template:addRoomSystem(1, 3, 2, 2, "Reactor"); 33template:addRoomSystem(3, 3, 2, 2, "Warp"); 34template:addRoomSystem(5, 3, 1, 2, "JumpDrive"); 35template:addRoom(6, 3, 2, 1); 36template:addRoom(6, 4, 2, 1); 37template:addRoomSystem(8, 3, 1, 2, "FrontShield"); 38 39template:addRoom(2, 5, 2, 1); 40template:addRoomSystem(1, 6, 2, 1, "MissileSystem"); 41template:addRoomSystem(1, 7, 2, 1, "Impulse"); 42 43template:addDoor(1, 1, true); 44template:addDoor(2, 2, true); 45template:addDoor(3, 3, true); 46template:addDoor(1, 3, false); 47template:addDoor(3, 4, false); 48template:addDoor(3, 5, true); 49template:addDoor(2, 6, true); 50template:addDoor(1, 7, true); 51template:addDoor(5, 3, false); 52template:addDoor(6, 3, false); 53template:addDoor(6, 4, false); 54template:addDoor(8, 3, false); 55template:addDoor(8, 4, false); 56 57 58--Airlock doors 59--template:addDoor(2, 2, false); 60--template:addDoor(2, 5, false); 61 62template = ShipTemplate():setName("Player Missile Cr."):setLocaleName(_("playerShip", "Player Missile Cr.")):setModel("space_cruiser_4"):setType("playership") 63template:setRadarTrace("radar_missile_cruiser.png") 64-- Arc, Dir, Range, CycleTime, Dmg 65--Setup 7 tubes. 2 forward for any type of missile, and 2 on each side of the ship and 1 in the rear. The side tubes are exclusive for homing missiles. The rear is exclusive for mines. 66template:setTubes(7, 8.0) 67template:setTubeDirection(0, 0):weaponTubeDisallowMissle(0, "Mine") 68template:setTubeDirection(1, 0):weaponTubeDisallowMissle(1, "Mine") 69template:setTubeDirection(2, 90):setWeaponTubeExclusiveFor(2, "Homing") 70template:setTubeDirection(3, 90):setWeaponTubeExclusiveFor(3, "Homing") 71template:setTubeDirection(4,-90):setWeaponTubeExclusiveFor(4, "Homing") 72template:setTubeDirection(5,-90):setWeaponTubeExclusiveFor(5, "Homing") 73template:setTubeDirection(6,180):setWeaponTubeExclusiveFor(6, "Mine") 74template:setHull(200) 75template:setShields(110, 70) 76template:setSpeed(60, 8, 15) 77template:setCombatManeuver(450, 150) 78template:setWarpSpeed(800) 79template:setJumpDrive(false) 80template:setCloaking(false) 81template:setWeaponStorage("Homing", 30) 82template:setWeaponStorage("Nuke", 8) 83template:setWeaponStorage("Mine", 12) 84template:setWeaponStorage("EMP", 10) 85 86template:addRoomSystem(1, 0, 2, 1, "Maneuver"); 87template:addRoomSystem(1, 1, 2, 1, "BeamWeapons"); 88template:addRoom(2, 2, 2, 1); 89 90template:addRoomSystem(0, 3, 1, 2, "RearShield"); 91template:addRoomSystem(1, 3, 2, 2, "Reactor"); 92template:addRoomSystem(3, 3, 2, 2, "Warp"); 93template:addRoomSystem(5, 3, 1, 2, "JumpDrive"); 94template:addRoom(6, 3, 2, 1); 95template:addRoom(6, 4, 2, 1); 96template:addRoomSystem(8, 3, 1, 2, "FrontShield"); 97 98template:addRoom(2, 5, 2, 1); 99template:addRoomSystem(1, 6, 2, 1, "MissileSystem"); 100template:addRoomSystem(1, 7, 2, 1, "Impulse"); 101 102template:addDoor(1, 1, true); 103template:addDoor(2, 2, true); 104template:addDoor(3, 3, true); 105template:addDoor(1, 3, false); 106template:addDoor(3, 4, false); 107template:addDoor(3, 5, true); 108template:addDoor(2, 6, true); 109template:addDoor(1, 7, true); 110template:addDoor(5, 3, false); 111template:addDoor(6, 3, false); 112template:addDoor(6, 4, false); 113template:addDoor(8, 3, false); 114template:addDoor(8, 4, false); 115 116template = ShipTemplate():setName("Player Fighter"):setLocaleName(_("playerShip", "Player Fighter")):setModel("small_fighter_1"):setType("playership") 117template:setRadarTrace("radar_fighter.png") 118-- Arc, Dir, Range, CycleTime, Dmg 119template:setBeam(0, 40, -10, 1000.0, 6.0, 8) 120template:setBeam(1, 40, 10, 1000.0, 6.0, 8) 121template:setHull(60) 122template:setShields(40) 123template:setSpeed(110, 20, 40) 124template:setCombatManeuver(600, 0) 125template:setWarpSpeed(0) 126template:setJumpDrive(false) 127template:setCloaking(false) 128template:setEnergyStorage(400) 129template:setTubes(1, 10.0) -- Amount of torpedo tubes, loading time 130template:setWeaponStorage("HVLI", 4) 131 132template:addRoomSystem(3, 0, 1, 1, "Maneuver"); 133template:addRoomSystem(1, 0, 2, 1, "BeamWeapons"); 134 135template:addRoomSystem(0, 1, 1, 2, "RearShield"); 136template:addRoomSystem(1, 1, 2, 2, "Reactor"); 137template:addRoomSystem(3, 1, 2, 1, "Warp"); 138template:addRoomSystem(3, 2, 2, 1, "JumpDrive"); 139template:addRoomSystem(5, 1, 1, 2, "FrontShield"); 140 141template:addRoomSystem(1, 3, 2, 1, "MissileSystem"); 142template:addRoomSystem(3, 3, 1, 1, "Impulse"); 143 144template:addDoor(2, 1, true); 145template:addDoor(3, 1, true); 146template:addDoor(1, 1, false); 147template:addDoor(3, 1, false); 148template:addDoor(3, 2, false); 149template:addDoor(3, 3, true); 150template:addDoor(2, 3, true); 151template:addDoor(5, 1, false); 152template:addDoor(5, 2, false); 153 154--[[ Neutral or special ship types --]] 155--Tug, used for transport of small goods (like weapons) 156template = ShipTemplate():setName("Tug"):setLocaleName(_("ship", "Tug")):setModel("space_tug") 157template:setRadarTrace("radar_tug.png") 158template:setHull(50) 159template:setShields(20) 160template:setSpeed(100, 10, 15) 161template:setWeaponStorage("Homing", 5) 162template:setWeaponStorage("Nuke", 1) 163template:setWeaponStorage("Mine", 3) 164template:setWeaponStorage("EMP", 2) 165template:setDescription(_([[The tugboat is a reliable, but small and un-armed transport ship. Due to it's low cost, it is a favourite ship to teach the ropes to fledgeling captains, without risking friendly fire.]])) 166 167--List of possible fighters -- 168-- Interceptor (anti fighter) -> High speed, low visibility, front beam weapons 169-- Bomber (anti capital) -> Low speed, high visibility, high armor (for a fighter), high shields (for a fighter), multiple missiles 170 -- Bomber mine 171 172-- Mine ship -- 173variation = template:copy("Nautilus"):setLocaleName(_("playerShip", "Nautilus")):setType("playership"):setClass(_("class", "Frigate"), _("subclass", "Mine Layer")) 174variation:setDescription(_("Small mine laying vessel with minimal armament, shields and hull")) 175variation:setShields(60,60) 176variation:setHull(100) 177-- Arc, Dir, Range, CycleTime, Dmg 178variation:setBeam(0, 10, 35, 1000.0, 6.0, 6) 179variation:setBeam(1, 10, -35, 1000.0, 6.0, 6) 180-- Arc, Dir, Rotate speed 181variation:setBeamWeaponTurret(0, 90, 35, 6) 182variation:setBeamWeaponTurret(1, 90, -35, 6) 183variation:setJumpDrive(true) 184template:setEnergyStorage(800) 185variation:setCombatManeuver(250,150) 186variation:setTubes(3, 10.0) 187variation:setTubeDirection(0, 180) 188variation:setTubeDirection(1, 180) 189variation:setTubeDirection(2, 180) 190variation:setWeaponStorage("Mine", 12) 191variation:setWeaponStorage("Homing", 0) 192variation:setWeaponStorage("Nuke", 0) 193variation:setWeaponStorage("EMP", 0) 194 195variation:setRepairCrewCount(4) 196-- (H)oriz, (V)ert HC,VC,HS,VS, system (C)oordinate (S)ize 197variation:addRoomSystem( 0, 1, 1, 2, "Impulse") 198variation:addRoomSystem( 1, 0, 2, 1, "RearShield") 199variation:addRoomSystem( 1, 1, 2, 2, "JumpDrive") 200variation:addRoomSystem( 1, 3, 2, 1, "FrontShield") 201variation:addRoomSystem( 3, 0, 2, 1, "Beamweapons") 202variation:addRoomSystem( 3, 1, 3, 1, "Warp") 203variation:addRoomSystem( 3, 2, 3, 1, "Reactor") 204variation:addRoomSystem( 3, 3, 2, 1, "MissileSystem") 205variation:addRoomSystem( 6, 1, 1, 2, "Maneuver") 206 207-- (H)oriz, (V)ert H, V, true = horizontal 208variation:addDoor( 1, 1, false) 209variation:addDoor( 2, 1, true) 210variation:addDoor( 1, 3, true) 211variation:addDoor( 3, 2, false) 212variation:addDoor( 4, 3, true) 213variation:addDoor( 6, 1, false) 214variation:addDoor( 4, 2, true) 215variation:addDoor( 4, 1, true) 216 217 218--[[ Enemy ship types --]] 219-- Fighters are quick agile ships that do not do a lot of damage, but usually come in larger groups. They are easy to take out, but should not be underestimated. 220template = ShipTemplate():setName("Fighter"):setLocaleName(_("ship", "Fighter")):setModel("small_fighter_1") 221template:setRadarTrace("radar_fighter.png") 222template:setDescription(_("Fighters are quick agile ships that do not do a lot of damage, but usually come in larger groups. They are easy to take out, but should not be underestimated.")) 223-- Arc, Dir, Range, CycleTime, Dmg 224template:setBeam(0, 60, 0, 1000.0, 4.0, 4) 225template:setHull(30) 226template:setShields(30) 227template:setSpeed(120, 30, 25) 228template:setDefaultAI('fighter') -- set fighter AI, which dives at the enemy, and then flies off, doing attack runs instead of "hanging in your face". 229 230-- The cruiser is an average ship you can encounter, it has average shields, and average beams. It's pretty much average with nothing special. 231-- Karnack cruiser mark I 232-- Fabricated by: Repulse shipyards 233-- Due to it's versatility, this ship has found wide adaptation in most factions. Most factions have extensively retrofitted these ships 234-- to suit their combat doctrines. Because it's an older model, most factions have been selling stripped versions. This practice has led to this ship becoming an all time favorite with smugglers and other civilian parties. However, they have used it's adaptable nature to re-fit them with (illegal) weaponry. 235template = ShipTemplate():setName("Karnack"):setLocaleName(_("ship", "Karnack")):setModel("small_frigate_4"):setClass(_("class", "Frigate"), _("subclass", "Cruiser")) 236template:setRadarTrace("radar_cruiser.png") 237template:setDescription(_("Fabricated by: Repulse shipyards. Due to it's versatility, this ship has found wide adaptation in most factions. Most factions have extensively retrofitted these ships to suit their combat doctrines. Because it's an older model, most factions have been selling stripped versions. This practice has led to this ship becoming an all time favorite with smugglers and other civilian parties. However, they have used it's adaptable nature to re-fit them with (illegal) weaponry.")) 238-- Arc, Dir, Range, CycleTime, Dmg 239template:setBeam(0, 60, -15, 1000.0, 6.0, 6) 240template:setBeam(1, 60, 15, 1000.0, 6.0, 6) 241template:setHull(60) 242template:setShields(40, 40) 243template:setSpeed(60, 6, 10) 244 245-- Karnack Cruiser mark II 246-- Fabricated by: Repulse shipyards 247-- The successor to the widely successful mark I Karnack cruiser. This ship has several notable improvements over the original ship, including better armor, slightly improved weaponry and customization by the shipyards. The latter improvement was the most requested feature by several factions once they realized that their old surplus mark I ships were used for less savory purposes. 248 249variation = template:copy("Cruiser"):setLocaleName(_("ship", "Karnack MK2")) 250variation:setDescription(_("Fabricated by: Repulse shipyards. The successor to the widely successful mark I Karnack cruiser. This ship has several notable improvements over the original ship, including better armor, slightly improved weaponry and customization by the shipyards. The latter improvement was the most requested feature by several factions once they realized that their old surplus mark I ships were used for less savory purposes.")) 251-- Arc, Dir, Range, CycleTime, Dmg 252variation:setBeam(0, 90, -15, 1000.0, 6.0, 6) 253variation:setBeam(1, 90, 15, 1000.0, 6.0, 6) 254variation:setHull(70) 255 256-- Polaris missile cruiser mark I 257-- Fabricated by: Repulse shipyards 258-- TODO 259-- The missile cruiser is a long range missile firing platform. It cannot handle a lot of damage, but can do a lot of damage if not dealt with properly. 260template = ShipTemplate():setName("Missile Cruiser"):setLocaleName(_("ship", "Missile Cruiser")):setModel("space_cruiser_4"):setClass(_("class", "Frigate"), _("subclass", "Cruiser: Missile")) 261template:setRadarTrace("radar_missile_cruiser.png") 262template:setDescription(_("Polaris missile cruiser mark I. Fabricated by: Repulse shipyards. This missile cruiser is a long range missile firing platform. It cannot handle a lot of damage, but can do a lot of damage if not dealt with properly.")) 263-- Arc, Dir, Range, CycleTime, Dmg 264template:setTubes(1, 25.0) 265template:setHull(40) 266template:setShields(50, 50) 267template:setSpeed(45, 3, 10) 268template:setWeaponStorage("Homing", 10) 269 270-- The gunship is a ship equipped with a homing missile tube to do initial damage and then take out the enemy with 2 front firing beams. It's designed to quickly take out the enemies weaker then itself. 271template = ShipTemplate():setName("Gunship"):setLocaleName(_("ship", "Gunship")):setModel("battleship_destroyer_4_upgraded"):setClass(_("class", "Frigate"), _("subclass", "Gunship")) 272template:setRadarTrace("radar_adv_gunship.png") 273template:setDescription(_("The gunship is a ship equipped with a homing missile tube to do initial damage and then take out the enemy with 2 front firing beams. It's designed to quickly take out the enemies weaker then itself.")) 274-- Arc, Dir, Range, CycleTime, Dmg 275template:setBeam(0, 50,-15, 1000.0, 6.0, 8) 276template:setBeam(1, 50, 15, 1000.0, 6.0, 8) 277template:setTubes(1, 8.0) -- Amount of torpedo tubes 278template:setHull(100) 279template:setShields(100, 80, 80) 280template:setSpeed(60, 5, 10) 281template:setWeaponStorage("Homing", 4) 282 283-- The advanced gunship is a ship equipped with 2 homing missiles to do initial damage and then take out the enemy with 2 front firing beams. It's designed to quickly take out the enemies weaker then itself. 284variation = template:copy("Adv. Gunship"):setLocaleName(_("ship", "Adv. Gunship")) 285variation:setDescription(_("The advanced gunship is a ship equipped with 2 homing missiles to do initial damage and then take out the enemy with 2 front firing beams. It's designed to quickly take out the enemies weaker then itself.")) 286variation:setTubes(2, 8.0) -- Amount of torpedo tubes 287 288-- The Strikeship is a warp-drive equipped fighter build for quick strikes, it's fast, it's agile, but does not do an extreme amount of damage, and lacks in rear shields. 289template = ShipTemplate():setName("Strikeship"):setLocaleName(_("ship", "Strikeship")):setModel("small_frigate_3"):setClass(_("class", "Starfighter"), _("subclass", "Strike")) 290template:setRadarTrace("radar_striker.png") 291template:setDescription(_("The Strikeship is a warp-drive equipped fighter build for quick strikes, it's fast, it's agile, but does not do an extreme amount of damage, and lacks in rear shields.")) 292-- Arc, Dir, Range, CycleTime, Dmg 293template:setBeam(0, 40,-5, 1000.0, 6.0, 6) 294template:setBeam(1, 40, 5, 1000.0, 6.0, 6) 295template:setHull(100) 296template:setShields(80, 30, 30, 30) 297template:setSpeed(70, 12, 12) 298template:setWarpSpeed(1000) 299 300-- The Advanced Striker is a jump-drive equipped fighter build for quick strikes, it's slow but very agile, but does not do an extreme amount of damage, and lacks in shields. However, due to the jump drive, it's quick to get into the action. 301template = ShipTemplate():setName("Adv. Striker"):setLocaleName(_("ship", "Adv. Striker")):setClass(_("class", "Starfighter"), _("subclass", "Patrol")):setModel("dark_fighter_6") 302template:setRadarTrace("radar_adv_striker.png") 303template:setDescription(_("The Advanced Striker is a jump-drive equipped fighter build for quick strikes, it's slow but very agile, but does not do an extreme amount of damage, and lacks in shields. However, due to the jump drive, it's quick to get into the action.")) 304-- Arc, Dir, Range, CycleTime, Dmg 305template:setBeam(0, 50,-15, 1000.0, 6.0, 6) 306template:setBeam(1, 50, 15, 1000.0, 6.0, 6) 307template:setHull(70) 308template:setShields(50, 30) 309template:setSpeed(45, 12, 15) 310template:setJumpDrive(true) 311 312variation = template:copy("Striker"):setLocaleName(_("playerShip", "Striker")):setType("playership") 313variation:setDescription(_("The Striker is the predecessor to the advanced striker, slow but agile, but does not do an extreme amount of damage, and lacks in shields")) 314variation:setBeam(0, 10,-15, 1000.0, 6.0, 6) 315variation:setBeam(1, 10, 15, 1000.0, 6.0, 6) 316-- Arc, Dir, Rotate speed 317variation:setBeamWeaponTurret( 0, 100, -15, 6) 318variation:setBeamWeaponTurret( 1, 100, 15, 6) 319variation:setHull(120) 320variation:setSpeed(45, 15, 30) 321variation:setJumpDrive(false) 322variation:setCombatManeuver(250, 150) 323variation:setEnergyStorage(500) 324 325variation:setRepairCrewCount(2) 326 327variation:addRoomSystem(4,0,3,1,"RearShield") 328variation:addRoomSystem(3,1,3,1,"MissileSystem") 329variation:addRoomSystem(0,1,1,1,"Beamweapons") 330variation:addRoomSystem(1,1,1,3,"Reactor") 331variation:addRoomSystem(2,2,3,1,"Warp") 332variation:addRoomSystem(5,2,4,1,"JumpDrive") 333variation:addRoomSystem(0,3,1,1,"Impulse") 334variation:addRoomSystem(3,3,3,1,"Maneuver") 335variation:addRoomSystem(4,4,3,1,"FrontShield") 336 337variation:addDoor(1,1,false) 338variation:addDoor(1,3,false) 339variation:addDoor(2,2,false) 340variation:addDoor(5,2,false) 341variation:addDoor(4,3,true) 342variation:addDoor(5,2,true) 343variation:addDoor(4,1,true) 344variation:addDoor(5,4,true) 345 346 347-- The Dreadnought is a flying fortress, it's slow, slow to turn, but packs a huge amount of beam weapons in the front. Taking it head-on is suicide. 348template = ShipTemplate():setName("Dreadnought"):setLocaleName(_("ship", "Dreadnought")):setModel("battleship_destroyer_1_upgraded"):setClass(_("class", "Dreadnought"), _("subclass", "Assault")) 349template:setRadarTrace("radar_dread.png") 350template:setDescription(_("The Dreadnought is a flying fortress, it's slow, slow to turn, but packs a huge amount of beam weapons in the front. Taking it head-on is suicide.")) 351-- Arc, Dir, Range, CycleTime, Dmg 352template:setBeam(0, 90, -25, 1500.0, 6.0, 8) 353template:setBeam(1, 90, 25, 1500.0, 6.0, 8) 354template:setBeam(2,100, -60, 1000.0, 6.0, 8) 355template:setBeam(3,100, 60, 1000.0, 6.0, 8) 356template:setBeam(4, 30, 0, 2000.0, 6.0, 8) 357template:setBeam(5,100, 180, 1200.0, 6.0, 8) 358template:setHull(70) 359template:setShields(300, 300, 300, 300, 300) 360template:setSpeed(30, 1.5, 5) 361 362-- The battle station is a huge ship with many defensive features. It can be docked by smaller ships. 363template = ShipTemplate():setName("Battlestation"):setLocaleName(_("ship", "Battlestation")):setModel("Ender Battlecruiser"):setClass(_("class", "Dreadnought"), _("subclass", "Battlecruiser")) 364template:setRadarTrace("radar_battleship.png") 365template:setDescription(_("The battle station is a huge ship with many defensive features. It can be docked by smaller ships.")) 366-- Arc, Dir, Range, CycleTime, Dmg 367template:setBeam(0, 120, -90, 2500.0, 6.1, 4) 368template:setBeam(1, 120, -90, 2500.0, 6.0, 4) 369template:setBeam(2, 120, 90, 2500.0, 6.1, 4) 370template:setBeam(3, 120, 90, 2500.0, 6.0, 4) 371template:setBeam(4, 120, -90, 2500.0, 5.9, 4) 372template:setBeam(5, 120, -90, 2500.0, 6.2, 4) 373template:setBeam(6, 120, 90, 2500.0, 5.9, 4) 374template:setBeam(7, 120, 90, 2500.0, 6.2, 4) 375template:setBeam(8, 120, -90, 2500.0, 6.1, 4) 376template:setBeam(9, 120, -90, 2500.0, 6.0, 4) 377template:setBeam(10, 120, 90, 2500.0, 6.1, 4) 378template:setBeam(11, 120, 90, 2500.0, 6.0, 4) 379template:setHull(100) 380template:setShields(2500) 381template:setSpeed(20, 1.5, 3) 382template:setJumpDrive(true) 383template:setDockClasses("Starfighter", "Frigate", "Corvette") 384template:setSharesEnergyWithDocked(true) 385 386variation = template:copy("Ender"):setType("playership"):setLocaleName(_("playerShip", "Ender")) 387-- Arc, Dir, Range, CycleTime, Dmg 388variation:setBeam(0, 10, -90, 2500.0, 6.1, 4) 389variation:setBeam(1, 10, -90, 2500.0, 6.0, 4) 390variation:setBeam(2, 10, 90, 2500.0, 5.8, 4) 391variation:setBeam(3, 10, 90, 2500.0, 6.3, 4) 392variation:setBeam(4, 10, -90, 2500.0, 5.9, 4) 393variation:setBeam(5, 10, -90, 2500.0, 6.4, 4) 394variation:setBeam(6, 10, 90, 2500.0, 5.7, 4) 395variation:setBeam(7, 10, 90, 2500.0, 5.6, 4) 396variation:setBeam(8, 10, -90, 2500.0, 6.6, 4) 397variation:setBeam(9, 10, -90, 2500.0, 5.5, 4) 398variation:setBeam(10, 10, 90, 2500.0, 6.5, 4) 399variation:setBeam(11, 10, 90, 2500.0, 6.2, 4) 400-- Arc, Dir, Rotate speed 401variation:setBeamWeaponTurret( 0, 120, -90, 6) 402variation:setBeamWeaponTurret( 1, 120, -90, 6) 403variation:setBeamWeaponTurret( 2, 120, 90, 6) 404variation:setBeamWeaponTurret( 3, 120, 90, 6) 405variation:setBeamWeaponTurret( 4, 120, -90, 6) 406variation:setBeamWeaponTurret( 5, 120, -90, 6) 407variation:setBeamWeaponTurret( 6, 120, 90, 6) 408variation:setBeamWeaponTurret( 7, 120, 90, 6) 409variation:setBeamWeaponTurret( 8, 120, -90, 6) 410variation:setBeamWeaponTurret( 9, 120, -90, 6) 411variation:setBeamWeaponTurret(10, 120, 90, 6) 412variation:setBeamWeaponTurret(11, 120, 90, 6) 413variation:setEnergyStorage(1200) 414variation:setTubes(2, 8.0) -- Amount of torpedo tubes, loading time 415variation:setWeaponStorage("Homing", 6) 416variation:setWeaponStorage("Mine", 6) 417variation:setTubeDirection(0, 0):setWeaponTubeExclusiveFor(0, "Homing") 418variation:setTubeDirection(1, 180):setWeaponTubeExclusiveFor(1, "Mine") 419variation:setShields(1200, 1200) 420variation:setSpeed(30, 2, 6) 421variation:setCombatManeuver(800, 500) 422 423variation:setRepairCrewCount(8) 424 425variation:addRoomSystem(0,1,2,4,"RearShield") 426variation:addRoom(3,0,2,1) 427variation:addRoomSystem(7,0,2,1,"Maneuver") 428variation:addRoomSystem(11,0,2,1,"MissileSystem") 429variation:addRoomSystem(2,1,4,2,"Reactor") 430variation:addRoomSystem(6,1,4,2,"Warp") 431variation:addRoom(10,1,4,2) 432variation:addRoomSystem(14,2,2,2,"FrontShield") 433variation:addRoomSystem(2,3,4,2,"Impulse") 434variation:addRoomSystem(6,3,4,2,"JumpDrive") 435variation:addRoom(10,3,4,2) 436variation:addRoom(3,5,2,1) 437variation:addRoom(7,5,2,1) 438variation:addRoomSystem(11,5,2,1,"Beamweapons") 439 440variation:addDoor(3,1,true) 441variation:addDoor(7,1,true) 442variation:addDoor(11,1,true) 443variation:addDoor(2,2,false) 444variation:addDoor(6,1,false) 445variation:addDoor(10,2,false) 446variation:addDoor(14,3,false) 447variation:addDoor(10,4,false) 448variation:addDoor(6,3,false) 449variation:addDoor(8,3,true) 450variation:addDoor(4,5,true) 451variation:addDoor(8,5,true) 452variation:addDoor(12,5,true) 453 454-- The weapons-platform is a stationary platform with beam-weapons. It's extremely slow to turn, but it's beam weapons do a huge amount of damage. 455template = ShipTemplate():setName("Weapons platform"):setLocaleName(_("ship", "Weapons platform")):setModel("space_cruiser_4") 456template:setRadarTrace("radar_missile_cruiser.png") 457template:setDescription(_("The weapons-platform is a stationary platform with beam-weapons. It's extremely slow to turn, but it's beam weapons do a huge amount of damage.")) 458-- Arc, Dir, Range, CycleTime, Dmg 459template:setBeam(0, 30, 0, 4000.0, 1.5, 20) 460template:setBeam(1, 30, 60, 4000.0, 1.5, 20) 461template:setBeam(2, 30, 120, 4000.0, 1.5, 20) 462template:setBeam(3, 30, 180, 4000.0, 1.5, 20) 463template:setBeam(4, 30, 240, 4000.0, 1.5, 20) 464template:setBeam(5, 30, 300, 4000.0, 1.5, 20) 465template:setHull(70) 466template:setShields(120, 120, 120, 120, 120, 120) 467template:setSpeed(0, 0.5, 0) 468 469-- Blockade runner is a reasonably fast, high shield, slow on weapons ship designed to break through defense lines and deliver goods. 470template = ShipTemplate():setName("Blockade Runner"):setLocaleName(_("ship", "Blockade Runner")):setModel("battleship_destroyer_3_upgraded"):setClass(_("class", "Frigate"),_("subclass", "High Punch")) 471template:setRadarTrace("radar_blockade.png") 472template:setDescription(_("Blockade runner is a reasonably fast, high shield, slow on weapons ship designed to break through defense lines and deliver goods.")) 473-- Arc, Dir, Range, CycleTime, Dmg 474template:setBeam(0, 60, -15, 1000.0, 6.0, 8) 475template:setBeam(1, 60, 15, 1000.0, 6.0, 8) 476template:setBeam(2, 25, 170, 1000.0, 6.0, 8) 477template:setBeam(3, 25, 190, 1000.0, 6.0, 8) 478template:setHull(70) 479template:setShields(100, 150) 480template:setSpeed(60, 15, 25) 481 482----------------------Ktlitan ships 483template = ShipTemplate():setName("Ktlitan Fighter"):setLocaleName(_("ship", "Ktlitan Fighter")):setModel("sci_fi_alien_ship_1") 484template:setRadarTrace("radar_ktlitan_fighter.png") 485template:setBeam(0, 60, 0, 1200.0, 4.0, 6) 486template:setHull(70) 487template:setSpeed(140, 30, 25) 488template:setDefaultAI('fighter') -- set fighter AI, which dives at the enemy, and then flies off, doing attack runs instead of "hanging in your face". 489 490template = ShipTemplate():setName("Ktlitan Breaker"):setLocaleName(_("ship", "Ktlitan Breaker")):setModel("sci_fi_alien_ship_2") 491template:setRadarTrace("radar_ktlitan_breaker.png") 492template:setBeam(0, 40, 0, 800.0, 4.0, 6) 493template:setBeam(1, 35,-15, 800.0, 4.0, 6) 494template:setBeam(2, 35, 15, 800.0, 4.0, 6) 495template:setTubes(1, 13.0) -- Amount of torpedo tubes, loading time 496template:setWeaponStorage("HVLI", 5) --Only give this ship HVLI's 497template:setHull(120) 498template:setSpeed(100, 5, 25) 499 500template = ShipTemplate():setName("Ktlitan Worker"):setLocaleName(_("ship", "Ktlitan Worker")):setModel("sci_fi_alien_ship_3") 501template:setRadarTrace("radar_ktlitan_worker.png") 502template:setBeam(0, 40, -90, 600.0, 4.0, 6) 503template:setBeam(1, 40, 90, 600.0, 4.0, 6) 504template:setHull(50) 505template:setSpeed(100, 35, 25) 506 507template = ShipTemplate():setName("Ktlitan Drone"):setLocaleName(_("ship", "Ktlitan Drone")):setModel("sci_fi_alien_ship_4") 508template:setRadarTrace("radar_ktlitan_drone.png") 509template:setBeam(0, 40, 0, 600.0, 4.0, 6) 510template:setHull(30) 511template:setSpeed(120, 10, 25) 512 513template = ShipTemplate():setName("Ktlitan Feeder"):setLocaleName(_("ship", "Ktlitan Feeder")):setModel("sci_fi_alien_ship_5") 514template:setRadarTrace("radar_ktlitan_feeder.png") 515template:setBeam(0, 20, 0, 800.0, 4.0, 6) 516template:setBeam(1, 35,-15, 600.0, 4.0, 6) 517template:setBeam(2, 35, 15, 600.0, 4.0, 6) 518template:setBeam(3, 20,-25, 600.0, 4.0, 6) 519template:setBeam(4, 20, 25, 600.0, 4.0, 6) 520template:setHull(150) 521template:setSpeed(120, 8, 25) 522 523template = ShipTemplate():setName("Ktlitan Scout"):setLocaleName(_("ship", "Ktlitan Scout")):setModel("sci_fi_alien_ship_6") 524template:setRadarTrace("radar_ktlitan_scout.png") 525template:setBeam(0, 40, 0, 600.0, 4.0, 6) 526template:setHull(100) 527template:setSpeed(150, 30, 25) 528 529template = ShipTemplate():setName("Ktlitan Destroyer"):setLocaleName(_("ship", "Ktlitan Destroyer")):setModel("sci_fi_alien_ship_7") 530template:setRadarTrace("radar_ktlitan_destroyer.png") 531template:setBeam(0, 90, -15, 1000.0, 6.0, 10) 532template:setBeam(1, 90, 15, 1000.0, 6.0, 10) 533template:setHull(300) 534template:setShields(50, 50, 50) 535template:setTubes(3, 15.0) -- Amount of torpedo tubes 536template:setSpeed(70, 5, 10) 537template:setWeaponStorage("Homing", 25) 538template:setDefaultAI('missilevolley') 539 540template = ShipTemplate():setName("Ktlitan Queen"):setLocaleName(_("ship", "Ktlitan Queen")):setModel("sci_fi_alien_ship_8") 541template:setRadarTrace("radar_ktlitan_queen.png") 542template:setHull(350) 543template:setShields(100, 100, 100) 544template:setTubes(2, 15.0) -- Amount of torpedo tubes 545template:setWeaponStorage("Nuke", 5) 546template:setWeaponStorage("EMP", 5) 547template:setWeaponStorage("Homing", 5) 548 549for type=1,5 do 550 for cnt=1,5 do 551 template = ShipTemplate():setName("Transport" .. type .. "x" .. cnt):setLocaleName(string.format(_("ship", "Transport %dx%d"), type, cnt)):setModel("transport_" .. type .. "_" .. cnt) 552 template:setHull(100) 553 template:setShields(50, 50) 554 template:setSpeed(60 - 5 * cnt, 6, 10) 555 template:setRadarTrace("radar_transport.png") 556 template:setDefaultAI("evasion") 557 end 558end 559