Soul Posted September 2, 2014 Report Share Posted September 2, 2014 This is a modified version of a script i was using a long time to block esc on a custom spawn selection screen i'm using on our vanilla dayz servers. What this does is check for keypresses when the doorlock ui is active, when it detects the user pressing esc it cancles the actions. This effectivly blocks the user from closing the dialog with the escape button. Have fun with it. Create a new file called antiBruteForce.sqf NPG_fnc_cKeyDownGenericDisplay = { private["_keypressed","_return"]; _keypressed = _this select 1; _return = false; #define KEYSCODE_ESC_KEY 1 // disable esc while in dialog switch (_keypressed) do { case KEYSCODE_ESC_KEY: { _return = true; }; }; _return; }; [] spawn { waitUntil {sleep 0.01; (!(isNull (findDisplay 41144)))}; disableSerialization; _foundComboLockUI = findDisplay 41144; _foundComboLockUI displayAddEventHandler ["KeyDown","_this call NPG_fnc_cKeyDownGenericDisplay"]; }; Now you can include the file. It has to be run on the client so make shure it is somewhere included inside a if(!isDedicated) {}; check and make shure that your path to this file is set according to its location in your mission. #include "antiBruteForce.sqf" I'll try to update this script tonight as i dont think it needs the spawn and waituntill. But this version does work for shure. SideShowFreak, Rythron and Rocu 3 Link to comment Share on other sites More sharing options...
Rocu Posted September 2, 2014 Report Share Posted September 2, 2014 This is pretty useful. Will be implementing this. Great job, Soul. Link to comment Share on other sites More sharing options...
Coco-Nuts Posted September 2, 2014 Report Share Posted September 2, 2014 Amazing !!! Thank you very much Soul Link to comment Share on other sites More sharing options...
Soul Posted September 2, 2014 Author Report Share Posted September 2, 2014 anything to fuck over or make the life of hacker/script kiddies harder :p Link to comment Share on other sites More sharing options...
itsatrap Posted September 2, 2014 Report Share Posted September 2, 2014 Please share if you have more Link to comment Share on other sites More sharing options...
Soul Posted September 2, 2014 Author Report Share Posted September 2, 2014 i just got into epoch so theres not much that i can share yet. and vanilla dayzmod doesnt have all these problems that come with epoch so yeah ... im quite fresh on epoch. Link to comment Share on other sites More sharing options...
KoTaS Posted September 6, 2014 Report Share Posted September 6, 2014 Okay, this script works only one time, after you open again same lock window it wont prevent ESC button to be disabled Link to comment Share on other sites More sharing options...
flakvest Posted September 7, 2014 Report Share Posted September 7, 2014 Anyone know where the spawn select esc blocker is? I would love to get my hands on that and forum search is not returning result for me Link to comment Share on other sites More sharing options...
VentZer0 Posted September 10, 2014 Report Share Posted September 10, 2014 ok ok so why is this useful can someone explain please? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now