Referenced in https://gamehacking.academy/lesson/5/3.
A wallhack for Urban Terror 4.3.4 that reveals entities through walls by hooking the game's OpenGL function glDrawElements and disabling depth testing for OpenGL.
This is done by locating the glDrawElements function inside the OpenGL library and creating a code cave at the start of the function. In the code cave, we check the number of vertices associated with the element. If it is over 500, we call glDepthRange to clear the depth clipping plane and glDepthFunc to disable depth testing. Otherwise, we call these same functions to re-enable the depth clipping plane and re-enable depth testing.
This DLL must be injected into the Urban Terror process to work. One way to do this is to use a DLL injector. Another way is to enable AppInit_DLLs in the registry.