ForbodingAngel

Untitled

Aug 24th, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. local Civilian = Unit:New {
  2. --Internal settings
  3. objectName = "citizen.dae",
  4. name = "Civilian",
  5. unitName = "civilian",
  6. script = "human.lua",
  7.  
  8. -- Movement
  9. acceleration = 0.5,
  10. brakeRate = 0.5,
  11. maxVelocity = 40,
  12. turnRate = 3000,
  13. footprintX = 1,
  14. footprintZ = 1,
  15.  
  16. movementClass = "Bot1x1",
  17. turnInPlace = true,
  18. turnInPlaceSpeedLimit = 1.6,
  19. turnInPlaceAngleLimit = 90,
  20.  
  21. upright = true,
  22.  
  23. customParams = {
  24. modelradius = [[12]],
  25. midposoffset = [[0 28 0]],
  26. -- Capture resources (all capturable units should have these fields defined)
  27. -- Use OOP maybe?
  28. biomass = 100,
  29. research = 0,
  30. metal = 0, -- not to be confused with engine metal
  31. },
  32.  
  33. -- Abiltiies
  34. builder = false,
  35. canAttack = true,
  36. canGuard = true,
  37. canMove = true,
  38. canPatrol = true,
  39. canStop = true,
  40. collide = true,
  41. leaveTracks = false, -- Todo, add tracks
  42.  
  43. -- Hitbox
  44. collisionVolumeOffsets = "0 0 0",
  45. collisionVolumeScales = "18 45 18",
  46. collisionVolumeType = "cylY",
  47.  
  48. -- Attributes
  49. category = "land",
  50.  
  51. mass = 100,
  52. maxDamage = 100,
  53. autoHeal = 5,
  54. idleAutoHeal = 5,
  55. idleTime = 60,
  56.  
  57. -- Economy
  58. buildCostEnergy = 100,
  59. buildCostMetal = 100,
  60. buildTime = 100,
  61. maxWaterDepth = 0,
  62. maxSlope = 55,
  63.  
  64. pieceExplosionGenerators = {
  65. "bloodtrailsmall",
  66. },
  67.  
  68. }
  69.  
  70.  
  71.  
  72. local Civilian1 = Civilian:New {
  73. name = "Civilian1",
  74. objectName = "citizen1.dae",
  75. }
  76.  
  77. return lowerkeys({
  78. Civilian = Civilian,
  79. Civilian1 = Civilian1,
  80. })
Advertisement
Add Comment
Please, Sign In to add comment