Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tpt.el.phot.name='SHDW'
- tpt.el.phot.description='A unpredictable burste of energy.'
- tpt.el.phot.color=0x434343
- tpt.el.phot.menusection=8
- tpt.el.phot.menu=1
- tpt.el.phot.enabled=1
- tpt.el.phot.weight=-1
- types={'neut','plsm'}
- math.randomseed(os.time())
- function shadow(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',10,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.plsm.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.neut.id and tpt.get_property('type',x+x2,y+y2)~=tpt.el.phot.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(shadow,tpt.el.phot.id)
- tpt.el.neut.color=0x434343
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement