Guest User

Untitled

a guest
Nov 24th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. -- Default Spring Treedef
  2.  
  3. local DRAWTYPE = { NONE = -1, MODEL = 0, TREE = 1 }
  4.  
  5. local treeDefs = {}
  6.  
  7. local function CreateTreeDef(type)
  8. treeDefs["treetype" .. type] = {
  9. description = [[Tree]],
  10. blocking = true,
  11. burnable = true,
  12. reclaimable = true,
  13. energy = 25,
  14. damage = 5,
  15. metal = 0,
  16. reclaimTime = 25,
  17. mass = 20,
  18. drawType = DRAWTYPE.TREE,
  19. footprintX = 2,
  20. footprintZ = 2,
  21. collisionVolumeTest = 0,
  22.  
  23. customParams = {
  24. mod = true,
  25. },
  26.  
  27. modelType = type,
  28. }
  29. end
  30.  
  31. for i=0,20 do
  32. CreateTreeDef(i)
  33. end
  34.  
  35. --------------------------------------------------------------------------------
  36. --------------------------------------------------------------------------------
  37.  
  38. return lowerkeys( treeDefs )
  39.  
  40. --------------------------------------------------------------------------------
  41. --------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment