Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator:
- --Made in: 18/01/2018
- --Last update: 18/01/2018
- --[[ Notes:
- Does:
- Nuevas emociones
- ]]--
- tfm.exec.position=function(n)
- return tfm.get.room.playerList[n].x,tfm.get.room.playerList[n].y,tfm.get.room.playerList[n].isFacingRight
- end
- math.randomseed(os.time())
- eventEmotePlayed=function(n,id)
- local x,y,f = tfm.exec.position(n)
- if id==0 then
- for i = 1,20 do
- for k = -2,2,math.pi do
- tfm.exec.displayParticle(29,x + k*(math.cos(i) * 40),y + k*(math.sin(i) * 40))
- end
- end
- end
- if id==1 then
- for i = 1,20 do
- tfm.exec.displayParticle(2,x+(f and 5 or -5),y+(math.random(-1,1)*i),(f and 1 or -1),math.random(-1,1))
- end
- end
- if id==2 then
- for i = 1,10 do
- tfm.exec.displayParticle(14,x+(i%2==0 and -10 or 5),y-7,0,math.random(2))
- end
- end
- if id==3 then
- for i = 1,15 do
- tfm.exec.displayParticle(31,x+(math.random(-1,1)*i),y+(math.random(-.9,.9)*i),math.random(-1,1),math.random(-math.pi,math.pi))
- end
- end
- if id==4 then
- for i = 1,6 do
- tfm.exec.displayParticle(3,x+math.cos(i),y+(math.random(-.9,.9)*i),math.random(-1.5,1.5),math.random(-1,1))
- end
- end
- if id==5 then
- for i = 1,10 do
- tfm.exec.displayParticle(0,x+math.random(80),y-math.random(20),(f and 2 or -2))
- end
- end
- if id==6 then
- for i = 1,20 do
- tfm.exec.displayParticle(1,x+(math.random(-1,1)*i),y+(math.random(.5,1)*i),math.random(-1.5,1.5),-math.random(.5,2),math.random(-.9,.9),math.random(.1,.9))
- end
- end
- if id==7 then
- local particles={0,1,2,4,9,11,13}
- tfm.exec.displayParticle(37,x,y)
- for i = 1,8 do
- tfm.exec.displayParticle(particles[math.random(#particles)],x+math.random(-50,50),y+math.random(-10,10),math.random(-1,1))
- end
- end
- if id==8 then
- for i = 1,8 do
- tfm.exec.displayParticle(33,x+(math.random(-2,2)*i),y+(math.random(-2,2)*i),math.random(-1.5,1.5),math.random(-1,1),-math.random(-.9,.9),-math.random(-.2,.2))
- end
- end
- if id==9 then
- local confetti={21,22,23,24}
- for i = 1,20 do
- tfm.exec.displayParticle(confetti[math.random(#confetti)],x+(math.random(-2,2)*i),y+(math.random(-2,2)*i),math.random(-1.5,1.5),math.random(-1,1),math.random(-.9,.9),math.random(-.2,.2))
- end
- end
- if id==13 then
- for i = 1,6 do
- tfm.exec.displayParticle(2,x+(f and 5+(i*30) or -5-(i*40)),y-12,math.random())
- end
- end
- if id==17 then
- for i = 1,15 do
- tfm.exec.displayParticle(30,x+(math.random(-1,1)*i),y+(math.random(-2,2)*i),math.random(-1,1))
- end
- end
- if id==21 then
- for i = 1,10 do
- tfm.exec.displayParticle(5,x+(f and 20+(i*15) or -20-(i*15)),y-5,(f and .2 or -.2))
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement