This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 6th, 2012  |  syntax: None  |  size: 6.11 KB  |  views: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. -- UNITDEF -- ECOMMANDER --
  2. --------------------------------------------------------------------------------
  3.  
  4. local unitName = "ecommander"
  5.  
  6. --------------------------------------------------------------------------------
  7.  
  8. local unitDef = {
  9. --Begin tags entered from Notepad++ en masse
  10.   pieceTrailCEGTag   = "deathceg",
  11.   pieceTrailCEGRange = 2,
  12. --End tags entered from Notepad++
  13.   acceleration       = 0.2,
  14.   brakeRate          = 0.24,
  15.   buildCostEnergy    = 0,
  16.   buildCostMetal     = 15,
  17.   buildDistance      = 1700,
  18.   builder            = true,
  19.   buildTime          = 5,
  20.   commander                      = true,
  21.   capturable             = false,
  22.   CanAttack                      = true,
  23.   CanAssist          = true,
  24.   CanCapture         = true,
  25.   cancollect         = "1",
  26.   canGuard           = true,
  27.   canMove            = true,
  28.   canPatrol          = true,
  29.   canreclamate       = "1",
  30.   canstop            = "1",
  31.   category           = "NOTAIR SUPPORT",
  32.   description        = [[Armortype: Heavy
  33.   • Press 'D' to activate EMP Defense]],
  34.   energyMake         = 0,
  35.   energyStorage      = 0,
  36.   energyUse          = 0,
  37.   explodeAs          = "emp",
  38.   fireState                      = "0",
  39.   footprintX         = 4,
  40.   footprintZ         = 4,
  41.   iconType           = "commander",
  42.   idleAutoHeal       = .5,
  43.   idleTime           = 2200,
  44.   levelground        = true,
  45.   maxDamage          = 2500,
  46.   maxSlope           = 180,
  47.   maxVelocity        = 3,
  48.   maxReverseVelocity = 1,
  49.   maxWaterDepth      = 5000,
  50.   metalmake          = 0,
  51.   metalStorage       = 0,
  52.   movementClass      = "COMMANDERTANK4",
  53.   moveState                      = "0",
  54.   name               = "The Overseer",
  55.   noChaseCategories      = "NOTAIR SUPPORT VTOL AMPHIB",
  56.   objectName         = "ecommander2.s3o",
  57.   radarDistance      = 0,
  58.   selfDestructAs     = "emp",
  59.   showNanoSpray      = "0",
  60.   sightDistance      = 1500,
  61.   smoothAnim         = true,
  62.   stealth            = false,
  63.   turnRate           = 1500,
  64.   unitname           = "ecommander",
  65.   upright            = false,
  66.   workerTime         = 2,
  67.   capturespeed       = 2,
  68.   TerraformSpeed     = 20000,
  69.   ReclaimSpeed       = 1000,
  70.   repairspeed        = 0.05,
  71.   sfxtypes = {
  72.     explosiongenerators = {
  73.       "custom:nanoflame",
  74.       "custom:dirt",
  75.           "custom:blacksmoke",
  76.     },
  77.   },
  78.   buildoptions = {
  79. --      "eexperimentalfac",
  80.     "ebasefactory", --new
  81.     "eminifac", --new
  82.     "eamphibfac",
  83.     "eairplant",
  84.         "eexperimentalfac",
  85.     "emetalextractor", --new
  86.     "emaker", --new
  87.     "esolar2", --new
  88.     "egeothermal", --new
  89.     "efusion2", --new
  90.     "estorage", --new
  91.     "eradar2", --new
  92.     "ejammer2", --new
  93.     "ebarricade",
  94.     "elightturret2", --new
  95.     "eheavyturret2", --new
  96.     "eaaturret",
  97.     "elrpc",
  98.     "eshieldgen",
  99.     "esilo"
  100.   },
  101.   sounds = {
  102.     underattack        = "unitsunderattack1",
  103.     ok = {
  104.       "ack",
  105.     },
  106.     select = {
  107.       "unitselect",
  108.     },
  109.   },
  110.   weapons = {
  111.     [1]  = {
  112.       def                = "fusionfx",
  113.           onlyTargetCategories = " ",
  114.     },
  115.     [2]  = {
  116.       def                = "emp",
  117.           onlyTargetCategories = " ",
  118.     },
  119.   },
  120.   customParams = {
  121.     needed_cover = 2,
  122.         death_sounds = "soldier",
  123.     cancollect = "1",
  124.         armortype   = "heavyarmor",
  125.         nofriendlyfire  = "1",
  126.         normaltex = "unittextures/lego2skin_explorernormal.png",
  127.         helptext       = [[The commander has an EMP defense shockwave weapon that can be triggered every 10 seconds. It costs 50 energy, so use it wisely.]],
  128.        
  129.         ring1radius = "1000", --Using this one for buildrange
  130.         ring1color = "1,0.5,0,0.8", --Orangeish
  131.         ring1thickness = "1", --Normalish thickness
  132.         ring1ShowOnlySelected = "true", --boolean If true, ring only shows when the unit is selected, if false, show all the time.
  133.        
  134.         ring2radius = "500", --Using this one for energy core collection
  135.         ring2color = "0.5,0,1,0.6", --purplish
  136.         ring2thickness = "1", --Normalish thickness
  137.         ring2ShowOnlySelected = "false", --boolean If true, ring only shows when the unit is selected, if false, show all the time.
  138.  
  139.   },
  140. }
  141.  
  142. --------------------------------------------------------------------------------
  143.  
  144. local weaponDefs = {
  145.   fusionfx = {
  146.  
  147.     AreaOfEffect       = 5,
  148.     avoidFeature       = false,
  149.     avoidFriendly      = false,
  150.     beamTime           = 0.1,
  151.     beamWeapon         = true,
  152.     collideFeature     = false,
  153.     collideFriendly    = false,
  154.     coreThickness      = 0.1,
  155.     craterBoost        = 0,
  156.     craterMult         = 0,
  157.     explosionGenerator = "custom:empty",
  158.     fallOffRate        = 0.5,
  159.     minintensity       = 1,
  160.     impulseFactor      = 0,
  161.     largeBeamLaser     = true,
  162.     lineOfSight        = true,
  163.     name               = "Light Laser",
  164.     noSelfDamage       = true,
  165.     range              = 800,
  166.     reloadtime         = 0.1,
  167.     WeaponType         = "BeamLaser",
  168.     rgbColor           = "0 0 0.5",
  169.     rgbColor2          = "0.2 0.2 0.2",
  170.     selfprop           = true,
  171.     soundTrigger       = true,
  172.     startVelocity      = 1500,
  173.     targetMoveError    = 0.3,
  174.     thickness          = 1,
  175.     turret             = true,
  176.     weaponVelocity     = 1500,
  177.     damage = {
  178.       default            = 0,
  179.     },
  180.   },
  181.   emp = {
  182.     AreaOfEffect       = 1000,
  183.     avoidFriendly      = false,
  184.     ballistic          = true,
  185.     collideFriendly    = false,
  186.         commandfire                = true,
  187.     explosionGenerator = "custom:POWERPLANT_EXPLOSION_BIG",
  188.         energypershot      = 50,
  189.         edgeEffectiveness  = 1,
  190.     impulseFactor      = 0,
  191.     name               = "Emp Blast Weapon",
  192.         paralyzer                  = true,
  193.         paralyzetime       = 5,
  194.     range              = 50,
  195.     reloadtime         = 10,
  196.     weaponType             = "Cannon",
  197.     soundStart         = "emp.wav",
  198.     startsmoke         = "1",
  199.     turret             = true,
  200.     weaponVelocity     = 1000,
  201.         customparams = {
  202.           damagetype            = "medium",
  203.           nofriendlyfire        = "true",
  204.     },      
  205.     damage = {
  206.       default           = 1000,
  207.     },
  208.   },
  209. }
  210. unitDef.weaponDefs = weaponDefs
  211. --------------------------------------------------------------------------------
  212.  
  213. return lowerkeys({ [unitName] = unitDef })
  214.  
  215. --------------------------------------------------------------------------------
clone this paste RAW Paste Data