Interdictor-SD

Execuclipse III, the Eternal Hunter

Apr 5th, 2020
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Array::mult = (m) -> @map (v) -> v*m
  2. Array::add = (m) -> @map (v) -> v+m
  3. for key, value of []
  4.   delete Array::[key]
  5.   Object.defineProperty Array::, key,
  6.     value: value
  7.     configurable: true
  8.     enumerable: false
  9.  
  10. addStructureTurret = (n, xpos, ypos, zpos, size, angle, damage, rate, speed, number) ->
  11.   model.bodies['StructureTurretBase'+n] =
  12.     section_segments: 8
  13.     offset:
  14.       x: xpos
  15.       y: zpos
  16.       z: -ypos
  17.     position:
  18.       x: [0,0,0,0,0,0]
  19.       y: [-21,-21,-4,-4].mult(size)
  20.       z: [0,0,0,0,0,0].mult(size)
  21.     width: [0,22,18,0].mult(size)
  22.     height: [0,22,18,0].mult(size)
  23.     texture: [4,4,17]
  24.     vertical: true
  25.   model.bodies['StructureTurret'+n] =
  26.     section_segments: [0,45,60,120,135,180,225,240,300,315]
  27.     offset:
  28.       x: xpos
  29.       y: ypos
  30.       z: zpos
  31.     position:
  32.       x: [0,0,0,0,0,0]
  33.       y: [-17,-15,-10,10,11,12].mult(size)
  34.       z: [0,0,0,0,0,0].mult(size)
  35.     width: [0,9,14,16,6,0].mult(size)
  36.     height: [0,3,5,5,3,0].mult(size)
  37.     texture: [4,4,15.1,3.9,15.1]
  38.     angle: angle
  39.     laser:
  40.       damage: damage
  41.       rate: rate
  42.       speed: speed
  43.       number: number
  44.   model.bodies['StructureTurretBarrelLeft'+n] =
  45.     section_segments: 16
  46.     offset:
  47.       x: xpos
  48.       y: ypos
  49.       z: zpos
  50.     position:
  51.       x: [14,14,14,14,14,13,13].mult(size)
  52.       y: [-27,-32,-14,-14,4,9,10].mult(size)
  53.       z: [0,0,0,0,0,0,0].mult(size)
  54.     width: [0,1.7,2,2.4,2.6,2,0].mult(size)
  55.     height: [0,1.7,2,2.4,2.6,2,0].mult(size)
  56.     texture: [17,8,3,3,2,2]
  57.     angle: angle
  58.   model.bodies['StructureTurretBarrelRight'+n] =
  59.     section_segments: 16
  60.     offset:
  61.       x: xpos
  62.       y: ypos
  63.       z: zpos
  64.     position:
  65.       x: [-14,-14,-14,-14,-14,-13,-13].mult(size)
  66.       y: [-27,-32,-14,-14,4,9,10].mult(size)
  67.       z: [0,0,0,0,0,0,0].mult(size)
  68.     width: [0,1.7,2,2.4,2.6,2,0].mult(size)
  69.     height: [0,1.7,2,2.4,2.6,2,0].mult(size)
  70.     texture: [17,8,3,3,2,2]
  71.     angle: angle
  72.   model.bodies['StructureTurretBarrelInnerLeft'+n] =
  73.     section_segments: 16
  74.     offset:
  75.       x: xpos
  76.       y: ypos
  77.       z: zpos
  78.     position:
  79.       x: [6,6,6,6,6,6,6].mult(size)
  80.       y: [-37,-39,-14,-14,4,5,5].mult(size)
  81.       z: [0,0,0,0,0,0,0].mult(size)
  82.     width: [0,1.7,2,2.4,2.6,3,0].mult(size)
  83.     height: [0,1.7,2,2.4,2.6,3,0].mult(size)
  84.     texture: [17,3,3,3,2,2]
  85.     angle: angle
  86.   model.bodies['StructureTurretBarrelInnerRight'+n] =
  87.     section_segments: 16
  88.     offset:
  89.       x: xpos
  90.       y: ypos
  91.       z: zpos
  92.     position:
  93.       x: [-6,-6,-6,-6,-6,-6,-6].mult(size)
  94.       y: [-37,-39,-14,-14,4,5,5].mult(size)
  95.       z: [0,0,0,0,0,0,0].mult(size)
  96.     width: [0,1.7,2,2.4,2.6,3,0].mult(size)
  97.     height: [0,1.7,2,2.4,2.6,3,0].mult(size)
  98.     texture: [17,3,3,3,2,2]
  99.     angle: angle
  100.   model.bodies['StructureTurretBarrelInnerMain'+n] =
  101.     section_segments: 16
  102.     offset:
  103.       x: xpos
  104.       y: ypos
  105.       z: zpos
  106.     position:
  107.       x: [0,0,0,0,0,0,0].mult(size)
  108.       y: [-39,-42,-30,-14,4,5,5].mult(size)
  109.       z: [0,0,0,0,0,0,0].mult(size)
  110.     width: [0,1.7,2,2.4,2.6,3,0].mult(size)
  111.     height: [0,1.7,2,2.4,2.6,3,0].mult(size)
  112.     texture: [17,8,3,3,2,2]
  113.     angle: angle
  114. addBroadsideTurret = (n, xpos, ypos, zpos, size, angle, damage, rate, speed, number) ->
  115.   model.bodies['broadsideTurretBase'+n] =
  116.     section_segments: 16
  117.     offset:
  118.       x: xpos
  119.       y: zpos
  120.       z: -ypos
  121.     position:
  122.       x: [0,0,0,0,0,0]
  123.       y: [-23,-23,-4,-4].mult(size)
  124.       z: [0,0,0,0,0,0].mult(size)
  125.     width: [0,22,19,0].mult(size)
  126.     height: [0,22,19,0].mult(size)
  127.     texture: [1,10,11]
  128.     vertical: true
  129.   model.bodies['broadsideTurret'+n] =
  130.     section_segments: [45,90+45,180+45,270+45]
  131.     offset:
  132.       x: xpos
  133.       y: ypos
  134.       z: zpos
  135.     position:
  136.       x: [0,0,0,0,0]
  137.       y: [-10,-10,-10,18.2,19].mult(size)
  138.       z: [-2,-2,-2,0,-4].mult(size)
  139.     width: [0,0,6,7,0].mult(size)
  140.     height: [0,0,3,5,0].mult(size)
  141.     texture: [3]
  142.     angle: angle
  143.     laser:
  144.       damage: damage
  145.       rate: rate
  146.       speed: speed
  147.       number: number
  148.   model.bodies['broadsideTurretBarrelInnerLeft'+n] =
  149.     section_segments: 16
  150.     offset:
  151.       x: xpos
  152.       y: ypos
  153.       z: zpos
  154.     position:
  155.       x: [6,6,6,6,6,6,4.5].mult(size)
  156.       y: [-22,-27,0,1,9,14,18].mult(size)
  157.       z: [0,0,0,0,0,0,0].mult(size)
  158.     width: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  159.     height: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  160.     texture: [17,3,17,2,3,3]
  161.     angle: angle
  162.   model.bodies['broadsideTurretBarrelCenterLeft'+n] =
  163.     section_segments: 16
  164.     offset:
  165.       x: xpos
  166.       y: ypos
  167.       z: zpos
  168.     position:
  169.       x: [9,9,9,9,9,9,5].mult(size)
  170.       y: [-22,-27,0,1,9,14,17].mult(size)
  171.       z: [0,0,0,0,0,0,0].mult(size)
  172.     width: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  173.     height: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  174.     texture: [17,3,17,2,3,3]
  175.     angle: angle
  176.   model.bodies['broadsideTurretBarrelMidLeft'+n] =
  177.     section_segments: 16
  178.     offset:
  179.       x: xpos
  180.       y: ypos
  181.       z: zpos
  182.     position:
  183.       x: [12,12,12,12,12,12,6].mult(size)
  184.       y: [-22,-27,0,1,9,14,16].mult(size)
  185.       z: [0,0,0,0,0,0,0].mult(size)
  186.     width: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  187.     height: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  188.     texture: [17,3,17,2,3,3]
  189.     angle: angle
  190.   model.bodies['broadsideTurretBarrelOuterLeft'+n] =
  191.     section_segments: 16
  192.     offset:
  193.       x: xpos
  194.       y: ypos
  195.       z: zpos
  196.     position:
  197.       x: [15,15,15,15,15,15,7].mult(size)
  198.       y: [-22,-27,0,1,9,14,15].mult(size)
  199.       z: [0,0,0,0,0,0,0].mult(size)
  200.     width: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  201.     height: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  202.     texture: [17,3,17,2,3,3]
  203.     angle: angle
  204.   model.bodies['broadsideTurretBarrelInnerRight'+n] =
  205.     section_segments: 16
  206.     offset:
  207.       x: xpos
  208.       y: ypos
  209.       z: zpos
  210.     position:
  211.       x: [6,6,6,6,6,6,4.5].mult(-size)
  212.       y: [-22,-27,0,1,9,14,18].mult(size)
  213.       z: [0,0,0,0,0,0,0].mult(size)
  214.     width: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  215.     height: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  216.     texture: [17,3,17,2,3,3]
  217.     angle: angle
  218.   model.bodies['broadsideTurretBarrelCenterRight'+n] =
  219.     section_segments: 16
  220.     offset:
  221.       x: xpos
  222.       y: ypos
  223.       z: zpos
  224.     position:
  225.       x: [9,9,9,9,9,9,5].mult(-size)
  226.       y: [-22,-27,0,1,9,14,17].mult(size)
  227.       z: [0,0,0,0,0,0,0].mult(size)
  228.     width: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  229.     height: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  230.     texture: [17,3,17,2,3,3]
  231.     angle: angle
  232.   model.bodies['broadsideTurretBarrelMidRight'+n] =
  233.     section_segments: 16
  234.     offset:
  235.       x: xpos
  236.       y: ypos
  237.       z: zpos
  238.     position:
  239.       x: [12,12,12,12,12,12,6].mult(-size)
  240.       y: [-22,-27,0,1,9,14,16].mult(size)
  241.       z: [0,0,0,0,0,0,0].mult(size)
  242.     width: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  243.     height: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  244.     texture: [17,3,17,2,3,3]
  245.     angle: angle
  246.   model.bodies['broadsideTurretBarrelOuterRight'+n] =
  247.     section_segments: 16
  248.     offset:
  249.       x: xpos
  250.       y: ypos
  251.       z: zpos
  252.     position:
  253.       x: [15,15,15,15,15,15,7].mult(-size)
  254.       y: [-22,-27,0,1,9,14,15].mult(size)
  255.       z: [0,0,0,0,0,0,0].mult(size)
  256.     width: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  257.     height: [0,1.7,2,2.4,2.6,2,0].mult(size*0.8)
  258.     texture: [17,3,17,2,3,3]
  259.     angle: angle
  260. addSideCannon = (n, xpos, ypos, zpos, size, angle) ->
  261.   model.bodies['sideCannonTop'+n] =
  262.       section_segments: 10
  263.       offset:
  264.         x: xpos
  265.         y: ypos
  266.         z: zpos+(3*size)
  267.       position:
  268.         x: [0,0,0,0,0,0,0,0,0].add(7*size)
  269.         y: [-20,-30,-30,-20,-20,0,0,8,8].mult(size*0.8)
  270.         z: [0,0,0,0,0,0,0,0,0]
  271.       width: [0,0.5,1,1,1.5,2,1.5,0].mult(size)
  272.       height: [0,0.5,1,1,1.5,2,1.5,0].mult(size)
  273.       texture: [17,2,2,2,3,2]
  274.       angle: angle-90
  275.       laser:
  276.         damage: [20,20]
  277.         rate: 4
  278.         speed: [180,180]
  279.         number: 1
  280.         error: 0
  281.   model.bodies['SideCannonProngTop'+n] =
  282.       section_segments: 8
  283.       offset:
  284.         x: xpos
  285.         y: ypos
  286.         z: zpos
  287.       position:
  288.         x: [0,0,0,0].add(7*size)
  289.         y: [-25,-22,-19,-19].mult(size)
  290.         z: [-0.5,0,-1,-1].add(4.4*size)
  291.       width: [0,1,1,0].mult(size*0.5)
  292.       height: [0,1,1,0].mult(size*0.5)
  293.       texture: [1]
  294.       angle: angle-90
  295.   model.bodies['SideCannonProngBottom'+n] =
  296.       section_segments: 8
  297.       offset:
  298.         x: xpos
  299.         y: ypos
  300.         z: zpos
  301.       position:
  302.         x: [0,0,0,0].add(7*size)
  303.         y: [-25,-22,-19,-19].mult(size)
  304.         z: [0.5,0,1,1].add(1.6*size)
  305.       width: [0,1,1,0].mult(size*0.5)
  306.       height: [0,1,1,0].mult(size*0.5)
  307.       texture: [1]
  308.       angle: angle-90
  309.   model.bodies['SideCannonProngLeft'+n] =
  310.       section_segments: 8
  311.       offset:
  312.         x: xpos
  313.         y: ypos
  314.         z: zpos
  315.       position:
  316.         x: [0.5,0,1,1].add(5.5*size)
  317.         y:[-25,-22,-19,-19].mult(size)
  318.         z: [0,0,0,0].add(3*size)
  319.       width: [0,1,1,0].mult(size*0.5)
  320.       height: [0,1,1,0].mult(size*0.5)
  321.       texture: [1]
  322.       angle: angle-90
  323.   model.bodies['SideCannonProngRight'+n] =
  324.       section_segments: 8
  325.       offset:
  326.         x: xpos
  327.         y: ypos
  328.         z: zpos
  329.       position:
  330.         x: [-0.5,0,-1,-1].add(8.5*size)
  331.         y: [-25,-22,-19,-19].mult(size)
  332.         z: [0,0,0,0].add(3*size)
  333.       width: [0,1,1,0].mult(size*0.5)
  334.       height: [0,1,1,0].mult(size*0.5)
  335.       texture: [1]
  336.       angle: angle-90
  337. addPropulsor = (n, xoff, zoff, xpos, ypos, zpos, size, angle, texture) ->
  338.   model.bodies['engine'+n] =
  339.       section_segments: 16
  340.       offset:
  341.         x: xpos
  342.         y: ypos
  343.         z: zpos
  344.       position:
  345.         x: xoff.mult(size)
  346.         y: [42,42,50,90,92,88].mult(size)
  347.         z: zoff.mult(size)
  348.       width: [0,2,7,10,8,0].mult(size)
  349.       height: [0,2,7,10,8,0].mult(size)
  350.       texture: [3,4,11,16,17]
  351.       propeller: true
  352.       angle: angle
  353. addHangarStripe = (n, xpos, ypos, zpos, size, angle) ->
  354.   model.bodies['hangarStripe'+n] =
  355.       section_segments: [45,90+45,180+45,270+45]
  356.       offset:
  357.         x: xpos
  358.         y: ypos
  359.         z: zpos
  360.       position:
  361.         x: [0,0,0,0]
  362.         y: [-9,-9,8,8].mult(size)
  363.         z: [4,4,0,0].mult(size)
  364.       width: [0,6,6,0].mult(size)
  365.       height: [0,6,6,0].mult(size)
  366.       texture: [8]
  367.       angle: angle
  368. addRamStripe = (n, zpos) ->
  369.   model.bodies['ramStripeMain'+n] =
  370.       section_segments: [45,90+45,180+45,270+45]
  371.       offset:
  372.         x: 0
  373.         y: -294
  374.         z: zpos
  375.       position:
  376.         x: [0,0,0,0]
  377.         y: [-10,-10,14,14]
  378.         z: [0,0,0,0]
  379.       width: [0,8,17,0]
  380.       height: [0,5,5,0]
  381.       texture: [1]
  382.   model.bodies['ramStripeInner'+n] =
  383.       section_segments: [45,90+45,180+45,270+45]
  384.       offset:
  385.         x: 0
  386.         y: -294.01
  387.         z: zpos
  388.       position:
  389.         x: [0,0,0,0]
  390.         y: [-10,-10,13,13]
  391.         z: [0,0,0,0]
  392.       width: [0,8,17,0]
  393.       height: [0,4,4,0]
  394.       texture: [15.001]
  395.   model.bodies['ramStripeInnerTop'+n] =
  396.       section_segments: [45,90+45,180+45,270+45]
  397.       offset:
  398.         x: 0
  399.         y: -294.02
  400.         z: zpos+2
  401.       position:
  402.         x: [0,0,0,0]
  403.         y: [-10,-10,12,12]
  404.         z: [0,0,0,0]
  405.       width: [0,8,17,0]
  406.       height: [0,0.5,0.5,0]
  407.       texture: [17]
  408.   model.bodies['ramStripeInnerBottom'+n] =
  409.       section_segments: [45,90+45,180+45,270+45]
  410.       offset:
  411.         x: 0
  412.         y: -294.02
  413.         z: zpos-2
  414.       position:
  415.         x: [0,0,0,0]
  416.         y: [-10,-10,12,12]
  417.         z: [0,0,0,0]
  418.       width: [0,8,17,0]
  419.       height: [0,0.5,0.5,0]
  420.       texture: [17]
  421. addShieldSupport = (n, xpos, ypos, zpos) ->
  422.   model.bodies['shieldSupport'+n] =
  423.       section_segments: 16
  424.       offset:
  425.         x: xpos
  426.         y: ypos
  427.         z: zpos
  428.       position:
  429.         x: [0,0,0,0,0,0,0,0]
  430.         y: [-1,-1,-1,-1,4,4,4]
  431.         z: [0,0,0,0,0,0,0]
  432.       width: [0,0.5,0.5,0.5,0.5,0.5,0]
  433.       height: [0,0.5,0.5,0.5,0.5,0.5,0]
  434.       texture: [16]
  435.       vertical: true
  436. addBridgeLowerStripeDetail = (n, xpos) ->
  437.   model.bodies['bridgeLowerStripeDetail'+n] =
  438.       section_segments: [45,90+45,180+45,270+45]
  439.       offset:
  440.         x: xpos
  441.         y: 133.5
  442.         z: 40
  443.       position:
  444.         x: [0,0,0,0]
  445.         y: [0,0,2,2]
  446.         z: [0,0,0,0]
  447.       width: [0,0.5,0.5,0]
  448.       height: [0,6,6,0]
  449.       texture: [14]
  450. addBridgeBottomStripeMain = (n, zpos) ->
  451.   model.bodies['bridgeBottomStripeMain'+n] =
  452.       section_segments: [45,90+45,180+45,270+45]
  453.       offset:
  454.         x: 0
  455.         y: 130
  456.         z: zpos+0.4
  457.       position:
  458.         x: [0,0,0,0]
  459.         y: [-1,-1,9,9]
  460.         z: [0,0,0,0]
  461.       width: [0,10,9.5,0]
  462.       height: [0,0.3,0.3,0]
  463.       texture: [1,11,1]
  464. addCitystructureDetail = (n, xpos, ypos, zpos, size, angle, texture) ->
  465.   model.bodies['citystructureDetailMain'+n] =
  466.       section_segments: [45,90+45,180+45,270+45]
  467.       offset:
  468.         x: xpos
  469.         y: ypos
  470.         z: zpos
  471.       position:
  472.         x: [0,0,0,0]
  473.         y: [-9,-9,8,8].mult(size)
  474.         z: [0,0,0,0].mult(size)
  475.       width: [0,6,6,0].mult(size)
  476.       height: [0,6,6,0].mult(size)
  477.       texture: [3]
  478.       angle: angle
  479.   model.bodies['citystructureDetailTop'+n] =
  480.       section_segments: [45,90+45,180+45,270+45]
  481.       offset:
  482.         x: xpos
  483.         y: ypos
  484.         z: zpos
  485.       position:
  486.         x: [0,0,0,0]
  487.         y: [-9.4,-9.4,8.4,8.4].mult(size)
  488.         z: [1.5,1.5,1.5,1.5].mult(size)
  489.       width: [0,6.4,6.4,0].mult(size)
  490.       height: [0,4,4,0].mult(size)
  491.       texture: texture
  492.       angle: angle
  493.   model.bodies['citystructureDetailStripeFront'+n] =
  494.       section_segments: [45,90+45,180+45,270+45]
  495.       offset:
  496.         x: xpos
  497.         y: ypos
  498.         z: zpos
  499.       position:
  500.         x: [0,0,0,0]
  501.         y: [-8,-8,-7,-7].mult(size)
  502.         z: [2,2,2,2].mult(size)
  503.       width: [0,8,7,0].mult(size)
  504.       height: [0,4,4,0].mult(size)
  505.       texture: [4]
  506.       angle: angle
  507.   model.bodies['citystructureDetailStripeBack'+n] =
  508.       section_segments: [45,90+45,180+45,270+45]
  509.       offset:
  510.         x: xpos
  511.         y: ypos
  512.         z: zpos
  513.       position:
  514.         x: [0,0,0,0]
  515.         y: [6,6,7,7].mult(size)
  516.         z: [2,2,2,2].mult(size)
  517.       width: [0,7,8,0].mult(size)
  518.       height: [0,4,4,0].mult(size)
  519.       texture: [4]
  520.       angle: angle
  521.   model.bodies['citystructureDetailStripeCentral'+n] =
  522.       section_segments: [45,90+45,180+45,270+45]
  523.       offset:
  524.         x: xpos
  525.         y: ypos
  526.         z: zpos
  527.       position:
  528.         x: [0,0,0,0]
  529.         y: [-7,-7,6,6].mult(size)
  530.         z: [2,2,2,2].mult(size)
  531.       width: [0,0.6,0.6,0].mult(size)
  532.       height: [0,4,4,0].mult(size)
  533.       texture: [15.9]
  534.       angle: angle
  535.   model.bodies['citystructureDetailStripeCentralOuterOne'+n] =
  536.       section_segments: [45,90+45,180+45,270+45]
  537.       offset:
  538.         x: xpos
  539.         y: ypos
  540.         z: zpos
  541.       position:
  542.         x: [2,2,2,2].mult(size)
  543.         y: [-7,-7,6,6].mult(size)
  544.         z: [2,2,2,2].mult(size)
  545.       width: [0,0.6,0.6,0].mult(size)
  546.       height: [0,4,4,0].mult(size)
  547.       texture: [15.9]
  548.       angle: angle
  549.   model.bodies['citystructureDetailStripeCentralOuterTwo'+n] =
  550.       section_segments: [45,90+45,180+45,270+45]
  551.       offset:
  552.         x: xpos
  553.         y: ypos
  554.         z: zpos
  555.       position:
  556.         x: [-2,-2,-2,-2].mult(size)
  557.         y: [-7,-7,6,6].mult(size)
  558.         z: [2,2,2,2].mult(size)
  559.       width: [0,0.6,0.6,0].mult(size)
  560.       height: [0,4,4,0].mult(size)
  561.       texture: [15.9]
  562.       angle: angle
  563.   model.bodies['citystructureDetailStripeCentralOuterThree'+n] =
  564.       section_segments: [45,90+45,180+45,270+45]
  565.       offset:
  566.         x: xpos
  567.         y: ypos
  568.         z: zpos
  569.       position:
  570.         x: [3.5,3.5,3.5,3.5].mult(size)
  571.         y: [-2,-2,1,1].mult(size)
  572.         z: [2,2,2,2].mult(size)
  573.       width: [0,1,1,0].mult(size)
  574.       height: [0,4,4,0].mult(size)
  575.       texture: [16]
  576.       angle: angle
  577.   model.bodies['citystructureDetailStripeCentralOuterFour'+n] =
  578.       section_segments: [45,90+45,180+45,270+45]
  579.       offset:
  580.         x: xpos
  581.         y: ypos
  582.         z: zpos
  583.       position:
  584.         x: [-3.5,-3.5,-3.5,-3.5].mult(size)
  585.         y: [-2,-2,1,1].mult(size)
  586.         z: [2,2,2,2].mult(size)
  587.       width: [0,1,1,0].mult(size)
  588.       height: [0,4,4,0].mult(size)
  589.       texture: [16]
  590.       angle: angle
  591.   model.bodies['citystructureDetailStripeCentralHighlight'+n] =
  592.       section_segments: [45,90+45,180+45,270+45]
  593.       offset:
  594.         x: xpos
  595.         y: ypos
  596.         z: zpos
  597.       position:
  598.         x: [0,0,0,0].mult(size)
  599.         y: [-5,-5,4,4].mult(size)
  600.         z: [0,0,0,0].mult(size)
  601.       width: [0,6.8,6.8,0].mult(size)
  602.       height: [0,2,2,0].mult(size)
  603.       texture: [17]
  604.       angle: angle
  605. addMainTurret = (n, xpos, ypos, zpos, size, angle, damage, rate, speed, number) ->
  606.   model.bodies['MainTurretBase'+n] =
  607.     section_segments: 12
  608.     offset:
  609.       x: xpos
  610.       y: zpos
  611.       z: -ypos
  612.     position:
  613.       x: [0,0,0,0,0,0]
  614.       y: [-21,-21,-4,-4].mult(size)
  615.       z: [0,0,0,0,0,0].mult(size)
  616.     width: [0,22,18,0].mult(size)
  617.     height: [0,22,18,0].mult(size)
  618.     texture: [4,4,1]
  619.     vertical: true
  620.   model.bodies['MainTurret'+n] =
  621.     section_segments: 6
  622.     offset:
  623.       x: xpos
  624.       y: ypos
  625.       z: zpos
  626.     position:
  627.       x: [0,0,0,0,0]
  628.       y: [-14,-14,-12,12,18].mult(size)
  629.       z: [-4,-4,-3,-2,-4.2].mult(size)
  630.     width: [0,0,9,14,0].mult(size)
  631.     height: [0,0,3,5,0].mult(size)
  632.     texture: [3,3,2.9,2.9]
  633.     angle: angle
  634.     laser:
  635.       damage: damage
  636.       rate: rate
  637.       speed: speed
  638.       number: number
  639.   model.bodies['MainTurretFront'+n] =
  640.     section_segments: 6
  641.     offset:
  642.       x: xpos
  643.       y: ypos
  644.       z: zpos
  645.     position:
  646.       x: [0,0,0,0,0]
  647.       y: [-11,-11,-11,2,3].mult(size)
  648.       z: [-4,-4,-3,-2,-4.2].mult(size)
  649.     width: [0,0,9,12,0].mult(size)
  650.     height: [0,0,3,4,0].mult(size)
  651.     texture: [15.9]
  652.     angle: angle
  653.   model.bodies['MainTurretBarrelInnerLeft'+n] =
  654.     section_segments: 16
  655.     offset:
  656.       x: xpos
  657.       y: ypos
  658.       z: zpos
  659.     position:
  660.       x: [12,12,12,12,12,12,12].mult(size)
  661.       y: [-22,-27,-1,0,8,12,12.4].mult(size)
  662.       z: [-2,-2,-2,-2,-2,-2,-2].mult(size)
  663.     width: [0,1.4,2,2.4,2.6,2,0].mult(size*0.8)
  664.     height: [0,1.4,2,2.4,2.6,2,0].mult(size*0.8)
  665.     texture: [17,2,17,3,11,2]
  666.     angle: angle
  667.   model.bodies['MainTurretBarrelInnerRight'+n] =
  668.     section_segments: 16
  669.     offset:
  670.       x: xpos
  671.       y: ypos
  672.       z: zpos
  673.     position:
  674.       x: [-12,-12,-12,-12,-12,-12,-12].mult(size)
  675.       y: [-22,-27,-1,0,8,12,12.4].mult(size)
  676.       z: [-2,-2,-2,-2,-2,-2,-2].mult(size)
  677.     width: [0,1.4,2,2.4,2.6,2,0].mult(size*0.8)
  678.     height: [0,1.4,2,2.4,2.6,2,0].mult(size*0.8)
  679.     texture: [17,2,17,3,11,2]
  680.     angle: angle
  681.   model.bodies['MainTurretBarrelCenterLeft'+n] =
  682.     section_segments: 16
  683.     offset:
  684.       x: xpos
  685.       y: ypos
  686.       z: zpos
  687.     position:
  688.       x: [10,10,10,10,10,10,10].mult(size)
  689.       y: [-28,-32,-11,0,8,8,8].mult(size)
  690.       z: [-2,-2,-2,-2,-2,-2,-2].mult(size)
  691.     width: [0,1,1.2,2,0,0,0].mult(size*0.8)
  692.     height: [0,1,1.2,2,0,0,0].mult(size*0.8)
  693.     texture: [17,4,3,3,11,2]
  694.     angle: angle
  695.   model.bodies['MainTurretBarrelCenterRight'+n] =
  696.     section_segments: 16
  697.     offset:
  698.       x: xpos
  699.       y: ypos
  700.       z: zpos
  701.     position:
  702.       x: [-10,-10,-10,-10,-10,-10,-10].mult(size)
  703.       y: [-28,-32,-11,0,8,8,8].mult(size)
  704.       z: [-2,-2,-2,-2,-2,-2,-2].mult(size)
  705.     width: [0,1,1.2,2,0,0,0].mult(size*0.8)
  706.     height: [0,1,1.2,2,0,0,0].mult(size*0.8)
  707.     texture: [17,4,3,3,11,2]
  708.     angle: angle
  709.  
  710.  
  711. m=0.082
  712. sph=0.76
  713. finSize=0.3
  714.  
  715. model =
  716.   name: 'The Eternal Hunter'
  717.   designer: 'Interdictor''unmatched OUTDENT' so it's manual now
  718.      section_segments: 16
  719.      offset:
  720.        x: 0
  721.        y: 144.5
  722.        z: 38
  723.      position:
  724.        x: [0,0,0,0,0,0,0,0]
  725.        y: [-30,-30,30,30,30,30].mult(0.2)
  726.        z: [0,0,0,0,0,0,0,0]
  727.      width: [0,0.7,0.7,0.7,0,0]
  728.      height: [0,0.7,0.7,0.7,0,0]
  729.      texture: [3]
  730.      angle: -90
  731.    bridgeDetailRod2:
  732.      section_segments: 16
  733.      offset:
  734.        x: 0
  735.        y: 144
  736.        z: 40
  737.      position:
  738.        x: [0,0,0,0,0,0,0,0]
  739.        y: [-30,-30,30,30,30,30].mult(0.2)
  740.        z: [0,0,0,0,0,0,0,0]
  741.      width: [0,0.7,0.7,0.7,0,0]
  742.      height: [0,0.7,0.7,0.7,0,0]
  743.      texture: [3]
  744.      angle: -90
  745.    bridgeDetailRod3:
  746.      section_segments: 16
  747.      offset:
  748.        x: 0
  749.        y: 143.5
  750.        z: 42
  751.      position:
  752.        x: [0,0,0,0,0,0,0,0]
  753.        y: [-30,-30,30,30,30,30].mult(0.2)
  754.        z: [0,0,0,0,0,0,0,0]
  755.      width: [0,0.7,0.7,0.7,0,0]
  756.      height: [0,0.7,0.7,0.7,0,0]
  757.      texture: [3]
  758.      angle: -90
  759.    bridgeDetailRod4:
  760.      section_segments: 16
  761.      offset:
  762.        x: 0
  763.        y: 143
  764.        z: 44
  765.      position:
  766.        x: [0,0,0,0,0,0,0,0]
  767.        y: [-30,-30,30,30,30,30].mult(0.2)
  768.        z: [0,0,0,0,0,0,0,0]
  769.      width: [0,0.7,0.7,0.7,0,0]
  770.      height: [0,0.7,0.7,0.7,0,0]
  771.      texture: [3]
  772.      angle: -90
  773.    bridgeDetailRod5:
  774.      section_segments: 16
  775.      offset:
  776.        x: 0
  777.        y: 142.5
  778.        z: 46
  779.      position:
  780.        x: [0,0,0,0,0,0,0,0]
  781.        y: [-30,-30,30,30,30,30].mult(0.2)
  782.        z: [0,0,0,0,0,0,0,0]
  783.      width: [0,0.7,0.7,0.7,0,0]
  784.      height: [0,0.7,0.7,0.7,0,0]
  785.      texture: [3]
  786.      angle: -90
  787.    bridgeDetailRod6:
  788.      section_segments: 16
  789.      offset:
  790.        x: 0
  791.        y: 142
  792.        z: 48
  793.      position:
  794.        x: [0,0,0,0,0,0,0,0]
  795.        y: [-30,-30,30,30,30,30].mult(0.2)
  796.        z: [0,0,0,0,0,0,0,0]
  797.      width: [0,0.7,0.7,0.7,0,0]
  798.      height: [0,0.7,0.7,0.7,0,0]
  799.      texture: [3]
  800.      angle: -90
  801.  
  802.  
  803.  
  804.  
  805.  
  806. # bridge bottom stripe details
  807. addBridgeBottomStripeMain(0,40.5)
  808. addBridgeBottomStripeMain(1,39.25)
  809. addBridgeBottomStripeMain(2,38)
  810. addBridgeBottomStripeMain(3,36.75)
  811.  
  812. # bridge top stripe details
  813. addBridgeLowerStripeDetail(0,0)
  814. addBridgeLowerStripeDetail(1,1.5)
  815. addBridgeLowerStripeDetail(2,3)
  816. addBridgeLowerStripeDetail(3,4.5)
  817.  
  818. #shield generator supports
  819. addShieldSupport(0,9,51,-123)
  820. addShieldSupport(1,9,51,-127)
  821. addShieldSupport(2,11,51,-125)
  822. addShieldSupport(3,7,51,-125)
  823.  
  824. #battering ram deco
  825. addRamStripe(0,-15)
  826. addRamStripe(1,-36)
  827. addRamStripe(2,-57)
  828. addRamStripe(3,-78)
  829.  
  830. #citystructure detail
  831. addCitystructureDetail(0,4,-50,15.4,0.15,0,[3,8,3])
  832. addCitystructureDetail(1,9,-30,16,0.15,0,[3,2,3])
  833. addCitystructureDetail(2,7,-25,16.4,0.15,0,[1,10,1])
  834. addCitystructureDetail(3,13,-5,16,0.15,0,[2,2,2])
  835. addCitystructureDetail(4,16,14,17,0.15,90,[3,3,3])
  836. addCitystructureDetail(5,6,18,19.6,0.15,0,[3,3,3])
  837.  
  838. addCitystructureDetail(6,4,25,23,0.15,0,[3,3,3])
  839. addCitystructureDetail(7,21,32,19.9,0.15,0,[2,2,2])
  840. addCitystructureDetail(8,0,38,24.4,0.15,90,[2,2,2])
  841. addCitystructureDetail(9,6,41,24,0.15,0,[1,10,1])
  842. addCitystructureDetail(10,26,44,19.7,0.15,0,[3,8,3])
  843. addCitystructureDetail(11,35,92,22,0.15,90,[3,3,3])
  844. addCitystructureDetail(12,37,96,21.4,0.15,0,[2,2,2])
  845. addCitystructureDetail(13,39,126,24,0.15,0,[2,2,2])
  846. addCitystructureDetail(14,48,144,23.4,0.15,0,[3,3,3])
  847. addCitystructureDetail(15,42,180,22.5,0.15,90,[3,8,3])
  848. addCitystructureDetail(16,39,186,22,0.15,0,[2,2,2])
  849. addCitystructureDetail(17,10,219,25,0.15,0,[2,2,2])
  850. addCitystructureDetail(18,0,224,24.5,0.15,90,[2,2,2])
  851. addCitystructureDetail(19,4,250,22.5,0.15,0,[1,10,1])
  852. addCitystructureDetail(20,7,266,21.3,0.15,0,[3,3,3])
  853.  
  854. addCitystructureDetail(21,19,0,12.5,0.18,0,[3,3,3])
  855. addCitystructureDetail(22,28,25,12,0.18,90,[3,3,3])
  856. addCitystructureDetail(23,31,19,11,0.18,90,[3,8,3])
  857. addCitystructureDetail(24,16,-22,12,0.18,0,[2,2,2])
  858. addCitystructureDetail(25,24,-8,10.8,0.18,0,[12,12,12])
  859.  
  860. addCitystructureDetail(26,24,-50,8,0.18,0,[2,2,2])
  861. addCitystructureDetail(27,19,-59,8,0.18,90,[3,8,3])
  862. addCitystructureDetail(28,41,9,8,0.18,0,[3,8,3])
  863. addCitystructureDetail(29,48,12,6.8,0.18,0,[2,2,2])
  864. addCitystructureDetail(30,44,23,8.5,0.18,0,[3,3,3])
  865.  
  866. addCitystructureDetail(31,74,123,9,0.18,0,[3,3,3])
  867. addCitystructureDetail(32,68,102,8.6,0.18,0,[2,2,2])
  868. addCitystructureDetail(33,76,98,8,0.18,0,[2,3,2])
  869. addCitystructureDetail(34,82,138,9,0.18,90,[3,3,3])
  870. addCitystructureDetail(35,84,130,8,0.18,0,[3,8,3])
  871.  
  872. addCitystructureDetail(36,29,130,27.9,0.18,0,[3,8,3])
  873. addCitystructureDetail(37,25,104,26.8,0.18,0,[3,8,3])
  874. addCitystructureDetail(38,20,60,23.8,0.18,0,[3,3,3])
  875. addCitystructureDetail(39,25,168,32.4,0.18,0,[2,2,2])
  876. addCitystructureDetail(40,21,190,31.5,0.18,90,[2,3,2])
  877.  
  878. addCitystructureDetail(41,14,-140,8,0.18,90,[2,3,2])
  879. addCitystructureDetail(42,24,-112,8,0.18,0,[2,3,2])
  880. addCitystructureDetail(43,19,-96,9.5,0.18,0,[2,2,2])
  881. addCitystructureDetail(44,5,-109,10.2,0.18,0,[3,8,3])
  882.  
  883. addCitystructureDetail(45,5,104,35,0.18,0,[3,8,3])
  884. addCitystructureDetail(46,14,122,34,0.18,0,[3,3,3])
  885. addCitystructureDetail(47,17,150,36,0.18,90,[2,2,2])
  886.  
  887. #structure turrets
  888. addStructureTurret(0,57,0,6.4,0.099,-40,[10,10],5,[140,140],1)
  889. addStructureTurret(1,55.4,-8,6.35,0.099,-40,[10,10],5,[140,140],1)
  890. addStructureTurret(2,53.8,-16,6.3,0.099,-40,[10,10],5,[140,140],1)
  891. addStructureTurret(3,52.2,-24,6.25,0.099,-40,[10,10],5,[140,140],1)
  892. addStructureTurret(4,50.6,-32,6.2,0.099,-40,[10,10],5,[140,140],1)
  893.  
  894. addStructureTurret(5,46.4,-54,5.7,0.099,-40,[10,10],5,[140,140],1)
  895. addStructureTurret(6,44.8,-62,5.65,0.099,-40,[10,10],5,[140,140],1)
  896. addStructureTurret(7,43.2,-70,5.6,0.099,-40,[10,10],5,[140,140],1)
  897. addStructureTurret(8,41.6,-78,5.55,0.099,-40,[10,10],5,[140,140],1)
  898.  
  899. addStructureTurret(8,37.4,-100,5,0.099,-40,[10,10],5,[140,140],1)
  900. addStructureTurret(9,35.8,-108,4.95,0.099,-40,[10,10],5,[140,140],1)
  901. addStructureTurret(10,34.2,-116,4.9,0.099,-40,[10,10],5,[140,140],1)
  902. addStructureTurret(11,32.6,-124,4.85,0.099,-40,[10,10],5,[140,140],1)
  903. addStructureTurret(12,31,-132,4.8,0.099,-40,[10,10],5,[140,140],1)
  904. addStructureTurret(13,29.4,-140,4.75,0.099,-40,[10,10],5,[140,140],1)
  905. addStructureTurret(14,27.8,-148,4.7,0.099,-40,[10,10],5,[140,140],1)
  906. addStructureTurret(15,26.2,-156,4.65,0.099,-40,[10,10],5,[140,140],1)
  907. addStructureTurret(16,24.6,-164,4.6,0.099,-40,[10,10],5,[140,140],1)
  908. addStructureTurret(17,23,-172,4.55,0.099,-40,[10,10],5,[140,140],1)
  909.  
  910. addStructureTurret(18,18,-224,2.75,0.099,0,[10,10],5,[140,140],1)
  911. addStructureTurret(19,16.4,-232,2.7,0.099,0,[10,10],5,[140,140],1)
  912. addStructureTurret(20,14.8,-240,2.65,0.099,0,[10,10],5,[140,140],1)
  913. addStructureTurret(21,13.2,-248,2.6,0.099,0,[10,10],5,[140,140],1)
  914. addStructureTurret(22,11.6,-256,2.55,0.099,0,[10,10],5,[140,140],1)
  915. addStructureTurret(23,10,-264,2.5,0.099,0,[10,10],5,[140,140],1)
  916. addStructureTurret(24,8.4,-272,2.45,0.099,0,[10,10],5,[140,140],1)
  917. #structure turrets back
  918. addStructureTurret(25,91,92,5.7,0.099,-60,[10,10],5,[140,140],1)
  919. addStructureTurret(26,92.6,100,5.8,0.099,-60,[10,10],5,[140,140],1)
  920. addStructureTurret(27,94.2,108,5.9,0.099,-60,[10,10],5,[140,140],1)
  921. addStructureTurret(28,95.8,116,6,0.099,-60,[10,10],5,[140,140],1)
  922. addStructureTurret(29,97.4,124,6.1,0.099,-60,[10,10],5,[140,140],1)
  923.  
  924. addStructureTurret(30,94,149,7.4,0.099,-75,[10,10],5,[140,140],1)
  925. addStructureTurret(31,95.6,157,7.5,0.099,-75,[10,10],5,[140,140],1)
  926. addStructureTurret(32,97.2,165,7.6,0.099,-75,[10,10],5,[140,140],1)
  927. addStructureTurret(33,98.8,173,7.7,0.099,-75,[10,10],5,[140,140],1)
  928. addStructureTurret(34,100.4,181,7.8,0.099,-75,[10,10],5,[140,140],1)
  929. addStructureTurret(35,102,189,7.9,0.099,-75,[10,10],5,[140,140],1)
  930. addStructureTurret(36,103.6,197,8,0.099,-75,[10,10],5,[140,140],1)
  931.  
  932. addStructureTurret(37,80,206,9,0.099,-120,[10,10],5,[140,140],1)
  933. addStructureTurret(38,72,208.5,8.8,0.099,-120,[10,10],5,[140,140],1)
  934. addStructureTurret(39,64,211,8.6,0.099,-120,[10,10],5,[140,140],1)
  935. addStructureTurret(40,56,213.5,8.4,0.099,-120,[10,10],5,[140,140],1)
  936.  
  937. addStructureTurret(41,31,290,11,0.099,-135,[10,10],5,[140,140],1)
  938. addStructureTurret(42,29,298,11.2,0.099,-135,[10,10],5,[140,140],1)
  939. addStructureTurret(43,27,306,11.4,0.099,-135,[10,10],5,[140,140],1)
  940. addStructureTurret(44,25,314,11.6,0.099,-135,[10,10],5,[140,140],1)
  941. addStructureTurret(45,23,322,11.8,0.099,-135,[10,10],5,[140,140],1)
  942. addStructureTurret(46,21,330,12,0.099,-135,[10,10],5,[140,140],1)
  943. addStructureTurret(47,19,338,12.2,0.099,-135,[10,10],5,[140,140],1)
  944.  
  945. #broadside turrets
  946. addBroadsideTurret(0,70,12,5.8,0.149,-30,[40,40],2,[160,160],1)
  947. addBroadsideTurret(1,72,24,6,0.149,-30,[40,40],2,[160,160],1)
  948. addBroadsideTurret(2,74,36,6.2,0.149,-30,[40,40],2,[160,160],1)
  949. addBroadsideTurret(3,76,48,6.4,0.149,-30,[40,40],2,[160,160],1)
  950.  
  951. addBroadsideTurret(4,32,214,22,0.109,-90,[40,40],2,[160,160],1)
  952. addBroadsideTurret(5,29.5,224,21.3,0.109,-90,[40,40],2,[160,160],1)
  953. addBroadsideTurret(6,27,234,20.6,0.109,-90,[40,40],2,[160,160],1)
  954. addBroadsideTurret(7,24.5,244,19.9,0.109,-90,[40,40],2,[160,160],1)
  955. addBroadsideTurret(8,22,254,19.2,0.109,-90,[40,40],2,[160,160],1)
  956. addBroadsideTurret(9,19.5,264,18.5,0.109,-90,[40,40],2,[160,160],1)
  957. addBroadsideTurret(10,17,274,17.8,0.109,-90,[40,40],2,[160,160],1)
  958.  
  959. addBroadsideTurret(11,68.9999999,192,13,0.098,-120,[40,40],2,[160,160],1)
  960. addBroadsideTurret(12,72,184,12.5,0.098,-120,[40,40],2,[160,160],1)
  961. addBroadsideTurret(13,75,176,12,0.098,-120,[40,40],2,[160,160],1)
  962. addBroadsideTurret(14,78,168,11.5,0.098,-120,[40,40],2,[160,160],1)
  963.  
  964. addBroadsideTurret(15,82,91,7.5,0.098,-90,[40,40],2,[160,160],1)
  965. addBroadsideTurret(16,83.6,99,7.7,0.098,-90,[40,40],2,[160,160],1)
  966. addBroadsideTurret(17,85.2,107,7.9,0.098,-90,[40,40],2,[160,160],1)
  967. addBroadsideTurret(18,86.8,115,8.1,0.098,-90,[40,40],2,[160,160],1)
  968. addBroadsideTurret(19,88.4,123,8.3,0.098,-90,[40,40],2,[160,160],1)
  969. addBroadsideTurret(20,90,131,8.5,0.098,-90,[40,40],2,[160,160],1)
  970. addBroadsideTurret(21,91.6,139,8.7,0.098,-90,[40,40],2,[160,160],1)
  971.  
  972. addBroadsideTurret(22,40.5,35,11,0.098,-30,[40,40],2,[160,160],1)
  973. addBroadsideTurret(23,38.4,25,10.9,0.098,-30,[40,40],2,[160,160],1)
  974. addBroadsideTurret(24,36.3,15,10.8,0.098,-30,[40,40],2,[160,160],1)
  975. addBroadsideTurret(25,34.2,5,10.7,0.098,-30,[40,40],2,[160,160],1)
  976. addBroadsideTurret(26,32.1,-5,10.6,0.098,-30,[40,40],2,[160,160],1)
  977. addBroadsideTurret(27,30,-15,10.5,0.098,-30,[40,40],2,[160,160],1)
  978. addBroadsideTurret(28,27.9,-25,10.4,0.098,-30,[40,40],2,[160,160],1)
  979. addBroadsideTurret(29,25.8,-35,10.3,0.098,-30,[40,40],2,[160,160],1)
  980.  
  981. #main body turrets
  982. addMainTurret(0,49,59,11,0.11,-20,[20,20],4,[180,180],1)
  983. addMainTurret(1,51.2,69,11.3,0.11,-20,[20,20],4,[180,180],1)
  984. addMainTurret(2,53.4,79,11.6,0.11,-20,[20,20],4,[180,180],1)
  985. addMainTurret(3,55.6,89,11.9,0.11,-20,[20,20],4,[180,180],1)
  986. addMainTurret(4,57.8,99,12.2,0.11,-20,[20,20],4,[180,180],1)
  987. addMainTurret(5,60,109,12.5,0.11,-20,[20,20],4,[180,180],1)
  988. addMainTurret(6,62.2,119,12.8,0.11,-20,[20,20],4,[180,180],1)
  989. addMainTurret(7,64.4,129,13.1,0.11,-20,[20,20],4,[180,180],1)
  990. addMainTurret(8,66.6,139,13.4,0.11,-20,[20,20],4,[180,180],1)
  991.  
  992. addMainTurret(9,41,62,12.3,0.11,0,[20,20],4,[180,180],1)
  993. addMainTurret(10,43.2,72,12.6,0.11,0,[20,20],4,[180,180],1)
  994. addMainTurret(11,45.4,82,12.9,0.11,0,[20,20],4,[180,180],1)
  995. addMainTurret(12,47.6,92,13.2,0.11,0,[20,20],4,[180,180],1)
  996. addMainTurret(13,49.8,102,13.5,0.11,0,[20,20],4,[180,180],1)
  997. addMainTurret(14,52,112,13.8,0.11,0,[20,20],4,[180,180],1)
  998. addMainTurret(15,54.2,122,14.1,0.11,0,[20,20],4,[180,180],1)
  999. addMainTurret(16,56.4,132,14.4,0.11,0,[20,20],4,[180,180],1)
  1000. addMainTurret(17,58.6,142,14.7,0.11,0,[20,20],4,[180,180],1)
  1001.  
  1002. addMainTurret(18,7,47,30.3,0.101,0,[20,20],4,[180,180],1)
  1003. addMainTurret(19,7.6,55,30.6,0.101,0,[20,20],4,[180,180],1)
  1004. addMainTurret(20,8.2,63,30.9,0.101,0,[20,20],4,[180,180],1)
  1005. addMainTurret(21,8.8,71,31.2,0.101,0,[20,20],4,[180,180],1)
  1006. addMainTurret(22,9.4,79,31.5,0.101,0,[20,20],4,[180,180],1)
  1007. addMainTurret(23,10,87,31.8,0.101,0,[20,20],4,[180,180],1)
  1008.  
  1009. addMainTurret(24,0,47,30.8,0.101,0,[20,20],4,[180,180],1)
  1010. addMainTurret(25,0,55,31.1,0.101,0,[20,20],4,[180,180],1)
  1011. addMainTurret(26,0,63,31.4,0.101,0,[20,20],4,[180,180],1)
  1012. addMainTurret(27,0,71,31.7,0.101,0,[20,20],4,[180,180],1)
  1013. addMainTurret(28,0,79,32,0.101,0,[20,20],4,[180,180],1)
  1014. addMainTurret(29,0,87,32.3,0.101,0,[20,20],4,[180,180],1)
  1015.  
  1016. addMainTurret(30,10,170,35.5,0.101,-120,[20,20],4,[180,180],1)
  1017. addMainTurret(31,9.2,178,35.2,0.101,-120,[20,20],4,[180,180],1)
  1018. addMainTurret(32,8.4,186,34.9,0.101,-120,[20,20],4,[180,180],1)
  1019. addMainTurret(33,7.6,194,34.6,0.101,-120,[20,20],4,[180,180],1)
  1020. addMainTurret(34,6.8,202,34.3,0.101,-120,[20,20],4,[180,180],1)
  1021.  
  1022. #engines
  1023. addPropulsor(0,[0,0,0,0,0,0],[4,4,4,0,0,0,0],0,150,-71,0.95,0)
  1024. addPropulsor(1,[0,0,0,0,0,0],[4,4,4,0,0,0,0],24,146,-72,0.95,0)
  1025.  
  1026. addPropulsor(2,[0,0,0,0,0,0],[0,0,0,0,0,0,0],88,140,-42,0.7,0)
  1027. addPropulsor(3,[0,0,0,0,0,0],[0,0,0,0,0,0,0],78,140,-54,0.7,0)
  1028.  
  1029. addPropulsor(4,[-4,-4,-4,0,0,0],[0,0,0,0,0,0,0],94,75,-34,0.4,0)
  1030. addPropulsor(5,[-4,-4,-4,0,0,0],[0,0,0,0,0,0,0],85.5,73,-39,0.425,0)
  1031. addPropulsor(6,[-4,-4,-4,0,0,0],[0,0,0,0,0,0,0],77,75.5,-45,0.4,0)
  1032.  
  1033. addPropulsor(7,[-20,-20,0,0,0,0],[0,0,0,0,0,0,0],115,150,-12,0.7,0)
  1034.  
  1035. addPropulsor(8,[-20,-20,0,0,0,0],[0,0,0,0,0,0,0],73,147,-19,0.85,0)
  1036. addPropulsor(9,[-20,-20,0,0,0,0],[0,0,0,0,0,0,0],73,149,-2.5,0.85,0)
  1037.  
  1038. #hangar stripe things
  1039. addHangarStripe(0,23.5,65,-63,1,0)
  1040. addHangarStripe(1,14,65,-63,1,0)
  1041. addHangarStripe(2,4.5,65,-63,1,0)
  1042. addHangarStripe(3,23.5,34,-56,1,0)
  1043.  
  1044. #missile launchers
  1045. addSideCannon(0,75,8,-8,1,0)
  1046. addSideCannon(1,76.4,13,-8,1,0)
  1047. addSideCannon(2,77.8,18,-8,1,0)
  1048. addSideCannon(3,79.2,23,-8,1,0)
  1049. addSideCannon(4,80.6,28,-8,1,0)
  1050. addSideCannon(5,82,33,-8,1,0)
  1051. addSideCannon(6,83.4,38,-8,1,0)
  1052. addSideCannon(7,84.8,43,-8,1,0)
  1053. addSideCannon(8,86.2,48,-8,1,0)
  1054. addSideCannon(9,88.6,53,-8,1,0)
  1055. addSideCannon(10,90,58,-8,1,0)
  1056. addSideCannon(11,91.4,63,-8,1,0)
  1057. addSideCannon(12,92.8,68,-8,1,0)
  1058. addSideCannon(13,94.2,73,-8,1,0)
  1059. addSideCannon(14,95.6,78,-8,1,0)
  1060. addSideCannon(15,97,83,-8,1,0)
  1061.  
  1062. addSideCannon(90,75,8,-14,1,0)
  1063. addSideCannon(91,76.4,13,-14,1,0)
  1064. addSideCannon(92,77.8,18,-14,1,0)
  1065. addSideCannon(93,79.2,23,-14,1,0)
  1066. addSideCannon(94,80.6,28,-14,1,0)
  1067. addSideCannon(95,82,33,-14,1,0)
  1068. addSideCannon(96,83.4,38,-14,1,0)
  1069. addSideCannon(97,84.8,43,-14,1,0)
  1070. addSideCannon(98,86.2,48,-14,1,0)
  1071. addSideCannon(99,88.6,53,-14,1,0)
  1072. addSideCannon(910,90,58,-14,1,0)
  1073. addSideCannon(911,91.4,63,-14,1,0)
  1074. addSideCannon(912,92.8,68,-14,1,0)
  1075. addSideCannon(913,94.2,73,-14,1,0)
  1076. addSideCannon(914,95.6,78,-14,1,0)
  1077. addSideCannon(915,97,83,-14,1,0)
  1078.  
  1079. return model;
Add Comment
Please, Sign In to add comment