This is a proof of concept for hooking events that are normally inaccessible from python. It assumes you've set up an unrestricted python interpreter for 2142 and installed ctypes. The hooking is done dynamically through python, rather than by statically modifying the executable.
- The code here is for 64 bit systems, it will not work as is on 32 bit
- The offsets may be different depending on which 2142 patch you're working with
- If you want to add new events, you'll need to reverse engineer the relevant parts of the server to find the offsets
- You'll also need to be able to write assembly