ForbodingAngel

Untitled

Apr 30th, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.09 KB | None | 0 0
  1. -- UNITDEF -- EGUNSHIP2 --
  2. --------------------------------------------------------------------------------
  3.  
  4. local unitName = "egunship2"
  5.  
  6. --------------------------------------------------------------------------------
  7.  
  8. local unitDef = {
  9.  
  10. --mobileunit
  11. transportbyenemy = false;
  12.  
  13. --**
  14.  
  15.  
  16. acceleration = 0.5,
  17. airStrafe = true,
  18. brakeRate = 0.5,
  19. buildCostEnergy = 0,
  20. buildCostMetal = 35,
  21. buildTime = 2.5,
  22. canAttack = true,
  23. canDropFlare = false,
  24. canFly = true,
  25. canGuard = true,
  26. canLoopbackAttack = true,
  27. canMove = true,
  28. canPatrol = true,
  29. canstop = true,
  30. category = "LIGHT VTOL",
  31. collide = true,
  32. corpse = "ammobox",
  33. cruiseAlt = 300,
  34. description = [[Gunship Tank Destroyer
  35. Light
  36. 100 Damage vs Light/Armored
  37. 50 Damage vs Building
  38.  
  39. Requires +7 Power
  40. Uses +7 Supply]],
  41. energyMake = 0,
  42. energyStorage = 0,
  43. energyUse = 0,
  44. explodeAs = "BIG_UNIT",
  45. flareDelay = 0.1,
  46. flareDropVector = "0 0 -1",
  47. flareefficieny = "0.3",
  48. flareReload = 3,
  49. floater = true,
  50. footprintX = 4,
  51. footprintZ = 4,
  52. hoverAttack = true,
  53. iconType = "tankdestroyer",
  54. idleAutoHeal = .5,
  55. idleTime = 2200,
  56. maxDamage = 600,
  57. maxSlope = 90,
  58. maxVelocity = 14,
  59. verticalSpeed = 15,
  60. maxWaterDepth = 0,
  61. metalStorage = 0,
  62. moverate1 = "8",
  63. name = "Wildcat",
  64. noChaseCategory = "VTOL",
  65. objectName = "egunship3.s3o",
  66. script = "egunship3.cob",
  67. radarDistance = 0,
  68. repairable = false,
  69. selfDestructAs = "BIG_UNIT",
  70. side = "CORE",
  71. sightDistance = 800,
  72. smoothAnim = true,
  73. turnRate = 920,
  74. unitname = "egunship2",
  75. sfxtypes = {
  76. pieceExplosionGenerators = {
  77. "deathceg0",
  78. "deathceg1",
  79. },
  80.  
  81. explosiongenerators = {
  82. "custom:jethtrail",
  83. "custom:blacksmoke",
  84. },
  85. },
  86. sounds = {
  87. underattack = "unitsunderattack1",
  88. ok = {
  89. "ack",
  90. },
  91. select = {
  92. "unitselect",
  93. },
  94. },
  95. weapons = {
  96. [1] = {
  97. def = "gunshipweapon",
  98. mainDir = "0 0 1",
  99. maxAngleDif = 90,
  100. OnlyTargetCategory = "NOTAIR AMPHIB",
  101. BadTargetCategory = "VTOL BUILDING WALL",
  102. noChaseCategory = "VTOL",
  103. },
  104. [2] = {
  105. def = "gunshiptorpedo",
  106. mainDir = "0 0 1",
  107. maxAngleDif = 180,
  108. OnlyTargetCategory = "NOTAIR AMPHIB SUB",
  109. noChaseCategory = "VTOL",
  110. },
  111. },
  112. customParams = {
  113. -- needed_cover = 2,
  114. canareaattack="1",
  115. death_sounds = "generic",
  116. RequireTech = "7 Power",
  117. armortype = "armored",
  118. nofriendlyfire = "1",
  119. supply_cost = 7,
  120. normalstex = "unittextures/lego2skin_explorernormal.dds",
  121. buckettex = "unittextures/lego2skin_explorerbucket.dds",
  122. factionname = "outer_colonies",
  123. },
  124. }
  125.  
  126.  
  127. --------------------------------------------------------------------------------
  128.  
  129. local weaponDefs = {
  130. gunshipweapon = {
  131. badTargetCategory = [[BUILDING]],
  132. AreaOfEffect = 1,
  133. avoidFriendly = false,
  134. avoidFeature = false,
  135. collideFriendly = false,
  136. collideFeature = false,
  137. cegTag = "missiletrailgunshiplesssmokey",
  138. explosionGenerator = "custom:genericshellexplosion-medium",
  139. energypershot = 5,
  140. edgeEffectiveness = 0.1,
  141. fireStarter = 70,
  142. guidance = false,
  143. id = 136,
  144. impulseBoost = 0,
  145. impulseFactor = 0,
  146. interceptedByShieldType = 4,
  147. lineOfSight = true,
  148. metalpershot = 0,
  149. model = "missilegunship.s3o",
  150. name = "Rockets",
  151. range = 520,
  152. reloadtime = 1,
  153. weaponType = "Cannon", -- This causes the missile trail to go off kilter
  154. -- rendertype = 1,
  155. selfprop = true,
  156. smokedelay = ".1",
  157. smokeTrail = false,
  158. soundHit = "bombhit.wav",
  159. soundHitVolume = 10,
  160. soundStart = "18395_inferno_rltx.wav",
  161. soundStartVolume = 10,
  162. startsmoke = "0",
  163. startVelocity = 250,
  164. tolerance = 8000,
  165. turnRate = 4680,
  166. turret = true,
  167. tracks = true,
  168. weaponAcceleration = 131,
  169. weaponTimer = 100,
  170. weaponVelocity = 1200,
  171. customparams = {
  172. damagetype = "egunship2",
  173. },
  174. damage = {
  175. default = 100,
  176. },
  177. },
  178.  
  179. gunshiptorpedo = {
  180. AreaOfEffect = 1,
  181. avoidFriendly = false,
  182. avoidFeature = false,
  183. collideFriendly = false,
  184. collideFeature = false,
  185. cegTag = "torpedotrailuwturret",
  186. cylinderTargeting = true,
  187. explosionGenerator = "custom:torpedoexplosion",
  188. energypershot = 5,
  189. fireStarter = 80,
  190. impulseFactor = 0.1,
  191. interceptedByShieldType = 4,
  192. model = "missilesmall.s3o",
  193. name = "Underwater Torpedo",
  194. pitchtolerance = 3000,
  195. range = 520,
  196. reloadtime = 1,
  197. weaponType = "TorpedoLauncher",
  198. soundHit = "torpedolaunch.wav",
  199. soundStart = "18393_inferno_reject.wav",
  200. tolerance = 3000,
  201. turret = true,
  202. startVelocity = 200,
  203. acceleration = 2000,
  204. weaponVelocity = 10000,
  205. tracks = true,
  206. turnrate = 100000,
  207. flighttime = 4,
  208. customparams = {
  209. damagetype = "egunship2",
  210. },
  211. damage = {
  212. default = 100,
  213. },
  214. },
  215.  
  216. }
  217. unitDef.weaponDefs = weaponDefs
  218.  
  219.  
  220. --------------------------------------------------------------------------------
  221.  
  222. return lowerkeys({ [unitName] = unitDef })
  223.  
  224. --------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment