Simple Lag Switch AHK file, you will have to do some editing in your Firewall. Images will be provided on step by step on what to do.
First go to your Firewall and go to advanced settings.
Next you'll click on the Inbound Rules and create a new rule and make it a program
Next you'll browse you're programs and go to your EscapeFromTarkov.exe and select that
Then you'll check the "Block the connection" circle.
Next you'll keep the Domain, Private, Public box's all checked and hit next.
Then you'll get to the page where you select the name. Make sure the name is "Lagger"
Once you hit finish the "Lagger" Rule will have a circle with a line through it all you have to do is right click it and click "Disable rule" and the circle will go away (THIS NEEDS TO BE DONE MAKE SURE THE CIRCLE IS GONE)
After you did all that you'll go into your Outbound section and do the same thing as you did with your Inbound. (MAKE SURE THE CIRCLE IS GONE WHEN YOU MAKE THE RULE)
After all that you'll need to make a new .ahk scrip and put this code in there.
Code:
Toggle = 0
if not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%"
ExitApp
}
Gui,Font,Normal s20 c0xFF0000 Bold,Segoe UI
Gui,Add,Text,x26 y282 w270 h50 Center Right c0xFF0000,
Gui,Font,Normal s16 c0x0,Tahoma
Gui,Add,Text,x104 y70 w350 h50,Lag Switch
Gui,Font
Gui,Add,Button,x110 y130 w90 h50 c0xFF0000,Enable
Gui,Font
Gui,Add,Text,x115 y110 w300 h13,Fuck Em Lag Em
Gui,Show,x933 y315 w310 h290 ,
Gui,Font,Normal Bold,Segoe UI
Gui,Add,Text,X130 Y200 w300 h13, Set Time
Gui,add,Slider, x0 y230 w310 ToolTip TickInterval1 Line2 Range1-10 vTimer2 gLagSlide
Gui, Add, Text, vMsVar, ms
Return
GuiClose:
ExitApp
Return
LagSlide:
Timer2 := Timer2*1000
GuiControl, Text, MsVar , %Timer2%
GuiControl, Move, MsVar, W300
return
Toggle := 0
~XButton1::
if (Toggle){
goto, Timer1
}
soundbeep, 523, 130
Toggle := 1
run, netsh advfirewall firewall set rule name="Lagger" new enable=yes,, hide
GuiControl, disable, Enable
SetTimer, Timer1, %Timer2%
return
Timer1:
soundbeep 223, 120
Toggle := 0
run, netsh advfirewall firewall set rule name="Lagger" new enable=no,, hide
GuiControl, enable, Enable
SetTimer, Timer1, Off
return
end::
Toggle := !toggle
if (Toggle){
soundbeep, 150, 160
ExitApp
return
}
And then you're set. You can change the Keybind to something else by changing ~XButton1:: this code and make it whatever you want like ~F:: ~F2:: ~caplock:: so on.
You can change the amount of seconds you want using the slider "It goes up to 10 seconds" and you can cancel the lag early by pressing the same key. (So if you have it on for 10 seconds and you want to stop the lag after 3 seconds just hit the keybind and it will stop you'll be prompted with a beep noise knowing it's deactivated.)
That's it simple easy scrip you can lag any game you want with it just instead of having the DayZx64.exe in the rule make it another game instead keeping everything else the same.
(You can close the scrip by pressing the red X in the gui or hitting the "end" key on your keyboard.