Advertisement
Guest User

Emote Objects

a guest
Aug 20th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. spawned = 0
  2.  
  3. tfm.exec.disableAutoShaman(true)
  4. tfm.exec.disableAutoNewGame(true)
  5.  
  6. tfm.exec.newGame(281492)
  7.  
  8. function eventEmotePlayed(name,emote)
  9. if emote==emote then
  10. tfm.exec.addShamanObject(emote, spawningplace, 200, 0, 0, 0, false)
  11. spawned = spawned + 1
  12. end
  13. end
  14.  
  15. tfm.exec.disableAutoNewGame(true)
  16. tfm.exec.setGameTime(0)
  17.  
  18. function eventNewGame()
  19. tfm.exec.setUIMapName("Map")
  20. end
  21.  
  22. function eventLoop()
  23. if spawned == 20 then
  24. tfm.exec.setUIMapName("That's a lot of stuff! Watch out you don't crash.")
  25. end
  26. end
  27.  
  28. function eventPlayerDied(name)
  29. tfm.exec.respawnPlayer(name)
  30. end
  31.  
  32. function eventLoop()
  33. spawnplace = math.random(1,7)
  34. if spawnplace == 1 then
  35. spawningplace = 100
  36. elseif spawnplace == 2 then
  37. spawningplace = 200
  38. elseif spawnplace == 3 then
  39. spawningplace = 300
  40. elseif spawnplace == 4 then
  41. spawningplace = 400
  42. elseif spawnplace == 5 then
  43. spawningplace = 500
  44. elseif spawnplace == 6 then
  45. spawningplace = 600
  46. elseif spawnplace == 7 then
  47. spawningplace = 700
  48. end
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement