Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. tfm.exec.newGame("@4925748")
  2. tfm.exec.setUIMapName("June Festival")
  3. tfm.exec.setGameTime(70)
  4.  
  5. function eventEmotePlayed(playerName,emote)
  6. if emote==0 then
  7. tfm.exec.giveCheese(playerName)
  8. end
  9. end
  10.  
  11. quantidade = 5 --[[Quantidade de fogos]]--
  12. tamanho = 1600 --[[Tamanho do mapa]]--
  13.  
  14. function fogos(x, y, particulas, qualidade, tamanho)
  15. local particulas = particulas or {0,1,2,9,11,13}
  16. local qualidade = qualidade or 90
  17. local tamanho = tamanho or 20
  18. for i=0,qualidade do
  19. local particula = particulas[math.random(#particulas)]
  20. local eq = math.rad(i * 360) / qualidade
  21. local s = math.sin(eq)
  22. local c = math.cos(eq)
  23. tfm.exec.displayParticle(particula, x + c * tamanho, y + s * tamanho, math.random() - math.random(), math.random() - math.random(), 0, 0, nil)
  24. end
  25. end
  26.  
  27. loop = 0
  28. function eventLoop()
  29. fogos2(math.random(0,800),math.random(0,400))
  30. loop = loop + 1
  31. if loop >= 4 then
  32. for i=0,quantidade-1 do
  33. fogos(math.random(0, tamanho), math.random(100, 180))
  34. end
  35. loop = 0
  36. end
  37.  
  38. end
  39.  
  40. function fogos2(x, y)
  41. local particle = math.random(0,2)
  42. for i=0,2 do
  43. tfm.exec.displayParticle(particle, x, y, 0.2F, 0.2F, 0.2F, 0.2F, nil)
  44. tfm.exec.displayParticle(particle, x, y, -0.2F, -0.2F, -0.2F, -0.2F, nil)
  45. tfm.exec.displayParticle(particle, x, y, 0F, 0.2F, 0F, 0.2F, nil)
  46. tfm.exec.displayParticle(particle, x, y, 0F, -0.2F, 0F, -0.2F, nil)
  47. tfm.exec.displayParticle(particle, x, y, 0.2F, 0F, 0.2F, 0F, nil)
  48. tfm.exec.displayParticle(particle, x, y, -0.2F, 0F, -0.2F, 0F, nil)
  49. particle = math.random(0,2)
  50. end
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement