Guest User

Emote Objects

a guest
Aug 21st, 2014
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 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 eventPlayerDied(name)
  23. tfm.exec.respawnPlayer(name)
  24. end
  25.  
  26. function eventLoop()
  27. spawnplace = math.random(1,7)
  28. if spawnplace == 1 then
  29. spawningplace = 100
  30. elseif spawnplace == 2 then
  31. spawningplace = 200
  32. elseif spawnplace == 3 then
  33. spawningplace = 300
  34. elseif spawnplace == 4 then
  35. spawningplace = 400
  36. elseif spawnplace == 5 then
  37. spawningplace = 500
  38. elseif spawnplace == 6 then
  39. spawningplace = 600
  40. elseif spawnplace == 7 then
  41. spawningplace = 700
  42. end
  43.  
  44. if spawned == 30 then
  45. tfm.exec.setUIMapName("That's a lot of stuff! Watch out you don't crash.")
  46. end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment