Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Primarily Created by Durux, admin on EU13 Spongebob Squarepants server as DayZ script.
- Modded by CoPkiLLah 4 use with Maximum Depth Hack.
- https://forums.geforce.com/default/topic/519243/3d-vision/maximum-depth-hack-go-beyond-100-/1/ .
- For use with the G15 Keyboard, probably works on others.
- If you like to use a different M key, then change the value "3" at current_mkey == 3
- If you like to change your G key, then change the value "1" and "2" at "G_PRESSED" and arg == 1 and at "G_PRESSED" and arg == 2
- HOW TO USE:
- 1) Make a profile on your G keyboard, pick the dropdown menu and copy past everything that is written here into the scripting box. Be sure to overwrite everything. (If you are unsure you can make a copy of the default script)
- 2) From that profile go to the m3 -1 key and assign a new command --> assign shortcut and select your Allow.batch SHORTCUT file
- 3) Same thing for m3 - 2 but pick Block.batch SHORTCUT file. (If you can't view your batch file be sure to select "all files" instead of exe)
- ]]
- bAllow = false;
- bBlock = false;
- sAllow = "OFF";
- sBlock = "OFF";
- iLCDTimer = 5000;
- function OnEvent(event, arg)
- current_mkey = GetMKeyState();
- if (current_mkey == 3) then
- if (event == "G_PRESSED" and arg == 1) then
- Allow();
- end
- if (event == "G_PRESSED" and arg == 2) then
- Block();
- end
- end
- end
- function Allow()
- local outputLCD;
- if (bBlock == true) then
- bBlock = false;
- sBlock = "OFF";
- end
- if (bAllow == false) then
- sAllow = "ON";
- bAllow = true;
- outputLCD = string.format("Allow: %s\nBlock: %s", sAllow, sBlock);
- ClearLCD();
- OutputLCDMessage(outputLCD, iLCDTimer);
- end
- end
- function Block()
- local outputLCD;
- if (bAllow == true) then
- bAllow = false;
- sAllow = "OFF";
- end
- if (bBlock == false) then
- sBlock = "ON";
- bBlock = true;
- outputLCD = string.format("Allow: %s\nBlock: %s", sAllow, sBlock);
- ClearLCD();
- OutputLCDMessage(outputLCD, iLCDTimer);
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement