Advertisement
Guest User

crawler code (submission (remade))

a guest
Dec 6th, 2019
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. mu = (arr, m) ->
  2. k = [];
  3. for i in [0..arr.length]
  4. k.push(arr[i]*m)
  5. return k;
  6. s = (arr, m) ->
  7. k = [];
  8. for i in [0..arr.length]
  9. k.push(m)
  10. return k;
  11. widen = 0.85
  12. return model =
  13. name: 'Crawler'
  14. level: 5
  15. model: 6
  16. size: 2.33
  17. specs:
  18. shield:
  19. capacity: [200,250]
  20. reload: [5,6]
  21. generator:
  22. capacity: [50,70]
  23. reload: [40,60]
  24. ship:
  25. mass: 235
  26. speed: [70,90]
  27. rotation: [60,70]
  28. acceleration: [65,80]
  29. bodies:
  30. main:
  31. section_segments: 8
  32. offset:
  33. x: 0
  34. y: 0
  35. z: 0
  36. position:
  37. x: [0,0,0,0,0,0,0,0]
  38. y: [-60,-53,-20,11,35,43,55,50]
  39. z: [0,0,0,0,0,0,0,0]
  40. width: mu([0,5,8,20,20,14,14,0],widen)
  41. height: [0,5,8,20,20,10,10,0]
  42. texture: [5,3,11,63,3,8,17]
  43. propeller: true
  44. propulsors:
  45. section_segments: 8
  46. offset:
  47. x: 40
  48. y: 50
  49. z: -16
  50. position:
  51. x: [0,0,0,0,0,0]
  52. y: [-30,-16,-7,0,15,14]
  53. z: [0,0,0,0,0,0]
  54. width: mu(mu([3,7,5,7,6,0],1.4),widen)
  55. height: [4,10,7,8,8,0]
  56. texture: [3,4,63,13,17]
  57. propeller: true
  58. cockpit:
  59. section_segments: 8
  60. offset:
  61. x: 0
  62. y: 30
  63. z: 15
  64. position:
  65. x: [0,0,0,0]
  66. y: [-40,-35,0,6]
  67. z: [-5,-2,2,3]
  68. width: mu([0,5,8,0],widen)
  69. height: [0,8,10,0]
  70. texture: [9]
  71. propeller: false
  72. cannons:
  73. section_segments: 8
  74. offset:
  75. x: 14
  76. y: 0
  77. z: -4
  78. position:
  79. x: [0,0,0,0,-2]
  80. y: [-35,-38,-15,20,25]
  81. z: [0,0,0,0,0]
  82. width: mu([0,4,7,7.5,3],widen-.05)
  83. height: [0,5,6,6,4]
  84. angle: 0
  85. laser:
  86. damage: [7,10]
  87. rate: 4
  88. type: 1
  89. speed: [160,200]
  90. number: 1
  91. error: 4
  92. propeller: false
  93. texture: [63,13,4,4]
  94. wings:
  95. main:
  96. offset:
  97. x: 0
  98. y: 16
  99. z: 0
  100. length: [48,16,0]
  101. width: mu([57,26,15],widen-.1)
  102. angle: [-25,10,0]
  103. position: [0,35,26]
  104. texture: [8,63]
  105. doubleside: false
  106. bump:
  107. position: 0
  108. size: 15
  109. cannonwinglet:
  110. offset:
  111. x: 17
  112. y: -20
  113. z: -5
  114. length: [15,0]
  115. width: mu([35,10],widen)
  116. angle: [-40,0]
  117. position: [0,13]
  118. texture: [63]
  119. doubleside: true
  120. bump:
  121. position: 0
  122. size: 15
  123. winglet:
  124. offset:
  125. x: 15
  126. y: 25
  127. z: 4
  128. length: [13,0]
  129. width: mu([20,7],widen)
  130. angle: [-10,0]
  131. position: [0,10]
  132. texture: [63]
  133. doubleside: true
  134. bump:
  135. position: 40
  136. size: 15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement