Advertisement
Haxhhhhhhhhh

v1.0.5

Sep 8th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.87 KB | None | 0 0
  1. tfm.exec.disableAutoNewGame(true)
  2. tfm.exec.disableAutoShaman(true)
  3. tfm.exec.disableAutoTimeLeft(true)
  4. tfm.exec.disablePhysicalConsumables(true)
  5. tfm.exec.disableMinimalistMode(true)
  6. tfm.exec.disableDebugCommand(true)
  7. tfm.exec.disableAutoScore(true)
  8. tfm.exec.setRoomMaxPlayers(35)
  9. sudden=false
  10. winner=""
  11. data={}
  12. increase=0
  13. intensity=30
  14. mices=0
  15. remain=12
  16. enabled=false
  17. function eventNewPlayer(name)
  18.     system.bindMouse(name)
  19.     newData={
  20.     ["time"]=0;
  21.     }
  22.     data[name]=newData;
  23.     tfm.exec.chatMessage("<VP>Use the mouse to generate a explosion, and kill other mices!<br><br>BETA #explosion module by Hecarimjhenx#0000 and Jessiewind26#2546",name)
  24. end
  25. for name,player in pairs(tfm.get.room.playerList) do
  26.     eventNewPlayer(name)
  27. end
  28. function eventMouse(name,x,y)
  29.     if not tfm.get.room.playerList[name].isDead == true and enabled then
  30.         if data[name].time >= 2 then
  31.             tfm.exec.explosion(x,y,intensity/2,intensity*1.5,false)
  32.             data[name].time=0;
  33.         end
  34.     end
  35. end
  36. function eventNewGame()
  37.     ui.removeTextArea(1,nil)
  38.     sudden=false
  39.     tfm.exec.setGameTime(165)
  40.     winner=""
  41.     increase=0;
  42.     remain=12
  43.     enabled=false
  44.     intensity=30
  45.     prox=false;
  46. end
  47. function eventLoop(pass,falt)
  48.     if sudden == true then
  49.         intensity=intensity+1
  50.     end
  51.     if falt < 40000 and sudden == false and falt > 30000 then
  52.         tfm.exec.chatMessage("<R>Sudden death! Intensity factor will be more increased. MUAHAHAHAHAHAHAHAHAHAHA",nil)
  53.         ui.addTextArea(1,"",nil,-1000,-1000,3000,3000,0x000001,0x000001,0.9,false)
  54.         sudden=true;
  55.     end
  56.     if falt < 100 then
  57.         tfm.exec.newGame("#10")
  58.     end
  59.     if prox == false then
  60.     ui.setMapName(""..tfm.get.room.currentMap.."  <BL>|  <N>Click War v1.0.5  <BL>|  <N>Intensity: <b>"..intensity.."</b>  <BL>|  <N>Created by Hecarimjhenx#0000 <")
  61.     else
  62.         ui.setMapName("<b>"..winner.."</b> <N>wons the game! Next round on "..math.ceil(falt/1000).." seconds.                                                                                              ")
  63.     end
  64.     remain=remain-0.5
  65.     if remain <= 5 and remain >= 0.5 then
  66.         ui.addTextArea(0,"<font size='33'><p align='center'>"..math.ceil(remain).."",nil,370,350,60,45,0x000001,0x000001,0.8,true)
  67.     end
  68.     if remain <= 0 then
  69.         ui.removeTextArea(0,nil)
  70.         enabled=true;
  71.     end
  72.     for name,player in pairs(tfm.get.room.playerList) do
  73.         data[name].time=data[name].time+1
  74.     end
  75.     if enabled == true then
  76.         increase=increase+0.5
  77.         if increase >= 4 then
  78.             if sudden == false then
  79.                 intensity=intensity+2
  80.                 increase=0;
  81.             end
  82.         end
  83.     end
  84. end
  85. function eventPlayerDied(name)
  86.     local i=0
  87.     local n
  88.     for pname,player in pairs(tfm.get.room.playerList) do
  89.         if not player.isDead then
  90.             i=i+1
  91.             n=pname
  92.         end
  93.     end
  94.     if i==0 then
  95.         tfm.exec.newGame("#10")
  96.     elseif i==1 then
  97.         winner=n;
  98.         tfm.exec.giveCheese(n)
  99.         tfm.exec.playerVictory(n)
  100.         tfm.exec.setGameTime(10)
  101.         tfm.exec.setPlayerScore(n,1,true)
  102.         prox=true;
  103.     end
  104. end
  105. tfm.exec.newGame("#10")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement