Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. --[[
  2. Primarily Created by Durux, admin on EU13 Spongebob Squarepants server as DayZ script.
  3. Modded by CoPkiLLah 4 use with Maximum Depth Hack.
  4.  
  5. https://forums.geforce.com/default/topic/519243/3d-vision/maximum-depth-hack-go-beyond-100-/1/ .
  6.  
  7.  
  8. For use with the G15 Keyboard, probably works on others.
  9. If you like to use a different M key, then change the value "3" at current_mkey == 3
  10. 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
  11.  
  12. HOW TO USE:
  13.  
  14. 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)
  15. 2) From that profile go to the m3 -1 key and assign a new command --> assign shortcut and select your Allow.batch SHORTCUT file
  16. 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)
  17.  
  18. ]]
  19.  
  20.  
  21.  
  22.  
  23. bAllow = false;
  24. bBlock = false;
  25. sAllow = "OFF";
  26. sBlock = "OFF";
  27. iLCDTimer = 5000;
  28.  
  29. function OnEvent(event, arg)
  30.  
  31. current_mkey = GetMKeyState();
  32.  
  33. if (current_mkey == 3) then
  34.  
  35. if (event == "G_PRESSED" and arg == 1) then
  36.  
  37. Allow();
  38.  
  39. end
  40. if (event == "G_PRESSED" and arg == 2) then
  41.  
  42. Block();
  43.  
  44. end
  45.  
  46. end
  47.  
  48. end
  49.  
  50. function Allow()
  51.  
  52. local outputLCD;
  53. if (bBlock == true) then
  54.  
  55. bBlock = false;
  56. sBlock = "OFF";
  57. end
  58.  
  59. if (bAllow == false) then
  60. sAllow = "ON";
  61. bAllow = true;
  62. outputLCD = string.format("Allow: %s\nBlock: %s", sAllow, sBlock);
  63. ClearLCD();
  64. OutputLCDMessage(outputLCD, iLCDTimer);
  65. end
  66. end
  67.  
  68. function Block()
  69.  
  70. local outputLCD;
  71. if (bAllow == true) then
  72. bAllow = false;
  73. sAllow = "OFF";
  74. end
  75. if (bBlock == false) then
  76. sBlock = "ON";
  77. bBlock = true;
  78. outputLCD = string.format("Allow: %s\nBlock: %s", sAllow, sBlock);
  79. ClearLCD();
  80. OutputLCDMessage(outputLCD, iLCDTimer);
  81. end
  82.  
  83. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement