Advertisement
ForbodingAngel

Untitled

Aug 30th, 2014
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. -- UNITDEF -- ELIGHTTANK3 --
  2. --------------------------------------------------------------------------------
  3.  
  4. local unitName = "elighttank3"
  5.  
  6. --------------------------------------------------------------------------------
  7.  
  8. local unitDef = {
  9.  
  10. --mobileunit
  11. transportbyenemy = false;
  12.  
  13. --**
  14.  
  15. acceleration = 1,
  16. brakeRate = 0.1,
  17. buildCostEnergy = 0,
  18. buildCostMetal = 27,
  19. builder = false,
  20. buildTime = 5,
  21. canAttack = true,
  22. cancollect = "1",
  23. canGuard = true,
  24. canHover = true,
  25. canMove = true,
  26. canPatrol = true,
  27. canstop = "1",
  28. category = "LIGHT NOTAIR RAID",
  29. corpse = "ammobox",
  30. description = [[Raider
  31. Light
  32. 45 Damage vs Light/Armored
  33. 60 Damage vs Building
  34.  
  35. Requires +3 Power
  36. Uses +3 Supply]],
  37. energyMake = 0,
  38. energyStorage = 0,
  39. energyUse = 0,
  40. explodeAs = "smallExplosionGenericBlue",
  41. footprintX = 2,
  42. footprintZ = 2,
  43. iconType = "raider",
  44. idleAutoHeal = .5,
  45. idleTime = 2200,
  46. leaveTracks = false,
  47. maxDamage = 245,
  48. maxSlope = 26,
  49. maxVelocity = 5,
  50. maxReverseVelocity = 2,
  51. maxWaterDepth = 10,
  52. metalStorage = 0,
  53. movementClass = "HOVERTANK2",
  54. name = "Kite",
  55. noChaseCategory = "VTOL",
  56. objectName = "elighttank4.s3o",
  57. radarDistance = 0,
  58. repairable = false,
  59. selfDestructAs = "smallExplosionGenericBlue",
  60. side = "CORE",
  61. sightDistance = 550,
  62. smoothAnim = true,
  63. stealth = true,
  64. seismicSignature = 2,
  65. -- turnInPlace = false,
  66. -- turnInPlaceSpeedLimit = 5.5,
  67. turnInPlace = true,
  68. turnRate = 5000,
  69. -- turnrate = 475,
  70. unitname = "elighttank3",
  71. upright = true,
  72. workerTime = 0,
  73.  
  74. sfxtypes = {
  75. explosiongenerators = {
  76. "custom:electricity",
  77. "custom:dirt",
  78. "custom:blacksmoke",
  79. },
  80. pieceExplosionGenerators = {
  81. "deathceg0",
  82. "deathceg1",
  83. },
  84. },
  85.  
  86. sounds = {
  87. underattack = "unitsunderattack1",
  88. ok = {
  89. "ack",
  90. },
  91. select = {
  92. "unitselect",
  93. },
  94. },
  95. weapons = {
  96. [1] = {
  97. def = "lighttankweapon",
  98. badTargetCategory = "VTOL ARMORED WALL",
  99. },
  100. },
  101. customParams = {
  102. needed_cover = 1,
  103. death_sounds = "generic",
  104. RequireTech = "3 Power",
  105. armortype = "light",
  106. nofriendlyfire = "1",
  107. supply_cost = 3,
  108. normalstex = "unittextures/lego2skin_explorernormal.dds",
  109. buckettex = "unittextures/lego2skin_explorerbucket.dds",
  110. factionname = "outer_colonies",
  111. helptext = [[]],
  112. },
  113. }
  114.  
  115.  
  116. --------------------------------------------------------------------------------
  117.  
  118. local weapon1Damage = 60
  119.  
  120. local weaponDefs = {
  121. lighttankweapon = {
  122. badTargetCategory = [[ARMORED BUILDING]],
  123. AreaOfEffect = 1,
  124. avoidFriendly = false,
  125. avoidFeature = false,
  126. collideFriendly = false,
  127. collideFeature = false,
  128. craterBoost = 0,
  129. craterMult = 0,
  130. explosionGenerator = "custom:genericshellexplosion-medium-lightning",
  131. energypershot = weapon1Damage / 20,
  132. impulseBoost = 0,
  133. impulseFactor = 0,
  134. interceptedByShieldType = 4,
  135. lineOfSight = true,
  136. name = "elighttank3weapon",
  137. noSelfDamage = true,
  138. range = 550,
  139. reloadtime = 1,
  140. WeaponType = "LightningCannon",
  141. rgbColor = "0.1 0.2 0.5",
  142. rgbColor2 = "0 0 1",
  143. soundStart = "jacobs.wav",
  144. startsmoke = "1",
  145. texture1 = "lightning",
  146. thickness = 5,
  147. turret = true,
  148. weaponVelocity = 400,
  149. customparams = {
  150. damagetype = "elighttank3",
  151.  
  152. --Upgrades--
  153. upgradeClass = "groundweapons",
  154. },
  155. damage = {
  156. default = weapon1Damage,
  157. },
  158. },
  159. }
  160. unitDef.weaponDefs = weaponDefs
  161.  
  162.  
  163. --------------------------------------------------------------------------------
  164.  
  165. return lowerkeys({ [unitName] = unitDef })
  166.  
  167. --------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement