Feel free to suggest changes or fixes. If you have any questions I'll be happy to answer them. If you have any problems I will provide support the best i can.
I'm making a V2 thread since i cannot edit my old thread. This update includes a few minor bug fixes and support for a second keypad entity.
Directions -
There are no commands, just run the file to get started.
Red boxes indicate keypads without a known code.
Green boxes indicate keypads with a known code.
Codes are not known until someone uses the keypad. Unfortunately there is no other way to get the codes.
If you look at a keypad a box will pop up that says the code or "Not Found".
http://i.imgur.com/ZwZnb1j.jpg
I also recommend changing the hook names, otherwise it will be way too easy for a server to detect this code.
Code -
Because MPGH censors out some of my code you can find the code here instead.
KCL - Pastebin.com
Known Bugs -
Sometimes a code will be shown with an extra number in front of it. -
Fixable. I'm not worried about it because its not too common.
If two people are looking at the same keypad while a code is being input the received code will be messed up. -
Unfixable with my current method of getting codes.
If a keypad is updated it's code will still be perceived being known, even though it isn't. But it's code will still get changed if someone uses the keypad correctly again. -
Probably fixable, I need to look at how the tool gun is working.
Important Note -
The accuracy of this code is directly proportional to the lag on the server or client. So...
A lot of lag => Poor accuracy in received keypad codes.
Little to no lag => Great accuracy in receiving keypad codes.