Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disablePhysicalConsumables(true)
- tfm.exec.disableMinimalistMode(true)
- tfm.exec.disableDebugCommand(true)
- tfm.exec.disableAutoScore(true)
- tfm.exec.setRoomMaxPlayers(35)
- sudden=false
- winner=""
- data={}
- increase=0
- intensity=30
- mices=0
- remain=12
- enabled=false
- function eventNewPlayer(name)
- system.bindMouse(name)
- newData={
- ["time"]=0;
- }
- data[name]=newData;
- 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)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventMouse(name,x,y)
- if not tfm.get.room.playerList[name].isDead == true and enabled then
- if data[name].time >= 2 then
- tfm.exec.explosion(x,y,intensity/2,intensity*1.5,false)
- data[name].time=0;
- end
- end
- end
- function eventNewGame()
- ui.removeTextArea(1,nil)
- sudden=false
- tfm.exec.setGameTime(165)
- winner=""
- increase=0;
- remain=12
- enabled=false
- intensity=30
- prox=false;
- end
- function eventLoop(pass,falt)
- if sudden == true then
- intensity=intensity+1
- end
- if falt < 40000 and sudden == false and falt > 30000 then
- tfm.exec.chatMessage("<R>Sudden death! Intensity factor will be more increased. MUAHAHAHAHAHAHAHAHAHAHA",nil)
- ui.addTextArea(1,"",nil,-1000,-1000,3000,3000,0x000001,0x000001,0.9,false)
- sudden=true;
- end
- if falt < 100 then
- tfm.exec.newGame("#10")
- end
- if prox == false then
- 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 <")
- else
- ui.setMapName("<b>"..winner.."</b> <N>wons the game! Next round on "..math.ceil(falt/1000).." seconds. ")
- end
- remain=remain-0.5
- if remain <= 5 and remain >= 0.5 then
- ui.addTextArea(0,"<font size='33'><p align='center'>"..math.ceil(remain).."",nil,370,350,60,45,0x000001,0x000001,0.8,true)
- end
- if remain <= 0 then
- ui.removeTextArea(0,nil)
- enabled=true;
- end
- for name,player in pairs(tfm.get.room.playerList) do
- data[name].time=data[name].time+1
- end
- if enabled == true then
- increase=increase+0.5
- if increase >= 4 then
- if sudden == false then
- intensity=intensity+2
- increase=0;
- end
- end
- end
- end
- function eventPlayerDied(name)
- local i=0
- local n
- for pname,player in pairs(tfm.get.room.playerList) do
- if not player.isDead then
- i=i+1
- n=pname
- end
- end
- if i==0 then
- tfm.exec.newGame("#10")
- elseif i==1 then
- winner=n;
- tfm.exec.giveCheese(n)
- tfm.exec.playerVictory(n)
- tfm.exec.setGameTime(10)
- tfm.exec.setPlayerScore(n,1,true)
- prox=true;
- end
- end
- tfm.exec.newGame("#10")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement