Advertisement
MassacreLand

Kerbal Rainbow Ice

Jan 30th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.96 KB | None | 0 0
  1. tpt.el.wind.name='RICE'
  2. tpt.el.wind.description='Rainbow Ice? Beautiful yet cold. Just like your ex.'
  3. tpt.el.wind.color=0x84BFD5
  4. tpt.el.wind.menusection=4
  5. tpt.el.wind.menu=1
  6. tpt.el.wind.enabled=1
  7. tpt.el.wind.weight=-1
  8. types={'sarg','neut'}
  9. math.randomseed(os.time())
  10. function astr(i,x,y,s,n)
  11. for n=1,2 do
  12. tpt.parts[i].x=tpt.get_property('x',i)+math.random(-6,6)
  13. tpt.parts[i].y=tpt.get_property('y',i)+math.random(-6,6)
  14. for x2=-7,7 do
  15. for y2=-math.sqrt((49)-(x2^2)),math.sqrt((49)-(x2^2)) do
  16. tpt.create(x+x2,y+y2,types[math.random(1,2)])
  17. tpt.set_property('life',4,x+x2,y+y2)
  18. tpt.set_property('temp',-10000+273.15,x+x2,y+y2)
  19. if tpt.get_property('type',x+x2,y+y2)~=0 and tpt.get_property('type',x+x2,y+y2)~=tpt.el.neut.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.sarg.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.wind.id then
  20. tpt.create(x+x2,y+y2,'plsm')
  21. tpt.set_property('life',30,x+x2,y+y2)
  22. end
  23. end
  24. end
  25. end
  26. end
  27.  
  28. tpt.element_func(astr,tpt.el.wind.id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement