ForbodingAngel

Untitled

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