Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tpt.el.wind.name='RICE'
- tpt.el.wind.description='Rainbow Ice? Beautiful yet cold. Just like your ex.'
- tpt.el.wind.color=0x84BFD5
- tpt.el.wind.menusection=4
- tpt.el.wind.menu=1
- tpt.el.wind.enabled=1
- tpt.el.wind.weight=-1
- types={'rbwg','neut'}
- math.randomseed(os.time())
- function rice(i,x,y,s,n)
- for n=1,2 do
- tpt.parts[i].x=tpt.get_property('x',i)+math.random(-6,6)
- tpt.parts[i].y=tpt.get_property('y',i)+math.random(-6,6)
- for x2=-7,7 do
- for y2=-math.sqrt((49)-(x2^2)),math.sqrt((49)-(x2^2)) do
- tpt.create(x+x2,y+y2,types[math.random(1,2)])
- tpt.set_property('life',4,x+x2,y+y2)
- tpt.set_property('temp',-50000+273.15,x+x2,y+y2)
- 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.rbwg.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.wind.id then
- tpt.create(x+x2,y+y2,'ice')
- tpt.set_property('life',30,x+x2,y+y2)
- end
- end
- end
- end
- end
- tpt.element_func(rice,tpt.el.wind.id)
- tpt.el.boyl.name="RBWG"
- tpt.el.boyl.description="Super Awesome Rainbow Gas"
- tpt.el.boyl.menusection=4
- tpt.el.boyl.color=0xCCFCFF
- math.randomseed(os.time())
- function rbow_update(i, x, y, s, n)
- cindex=math.random(0,255)
- tpt.set_property("dcolour",math.floor(math.sin(cindex*3.14159/127.5)*128+128)+math.floor(math.sin(cindex*3.14159/127.5+2.0944)*128+128)*0x100+math.floor(math.sin(cindex*3.14159/127.5+4.1888)*128+128)*0x10000+0xff000000,i)
- end
- tpt.element_func(rbow_update, tpt.el.boyl.id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement