Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.newGame("@4925748")
- tfm.exec.setUIMapName("June Festival")
- tfm.exec.setGameTime(70)
- function eventEmotePlayed(playerName,emote)
- if emote==0 then
- tfm.exec.giveCheese(playerName)
- end
- end
- quantidade = 5 --[[Quantidade de fogos]]--
- tamanho = 1600 --[[Tamanho do mapa]]--
- function fogos(x, y, particulas, qualidade, tamanho)
- local particulas = particulas or {0,1,2,9,11,13}
- local qualidade = qualidade or 90
- local tamanho = tamanho or 20
- for i=0,qualidade do
- local particula = particulas[math.random(#particulas)]
- local eq = math.rad(i * 360) / qualidade
- local s = math.sin(eq)
- local c = math.cos(eq)
- tfm.exec.displayParticle(particula, x + c * tamanho, y + s * tamanho, math.random() - math.random(), math.random() - math.random(), 0, 0, nil)
- end
- end
- loop = 0
- function eventLoop()
- fogos2(math.random(0,800),math.random(0,400))
- loop = loop + 1
- if loop >= 4 then
- for i=0,quantidade-1 do
- fogos(math.random(0, tamanho), math.random(100, 180))
- end
- loop = 0
- end
- end
- function fogos2(x, y)
- local particle = math.random(0,2)
- for i=0,2 do
- tfm.exec.displayParticle(particle, x, y, 0.2F, 0.2F, 0.2F, 0.2F, nil)
- tfm.exec.displayParticle(particle, x, y, -0.2F, -0.2F, -0.2F, -0.2F, nil)
- tfm.exec.displayParticle(particle, x, y, 0F, 0.2F, 0F, 0.2F, nil)
- tfm.exec.displayParticle(particle, x, y, 0F, -0.2F, 0F, -0.2F, nil)
- tfm.exec.displayParticle(particle, x, y, 0.2F, 0F, 0.2F, 0F, nil)
- tfm.exec.displayParticle(particle, x, y, -0.2F, 0F, -0.2F, 0F, nil)
- particle = math.random(0,2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement