Re: Hooking into HL2 DLL ? -
17-01-2005
Maybe you could do something like that if you managed to get in-between the engine and the gamedll.
Injection would require a loader but you could also look into proxying a dll that the server uses like wsock32.dll and hooking LoadLibrary from there which you'd return a handle to your dll rather than the server's.
You wouldn't even need a loader and since it would be loaded while windows sets up the exe to be run you'd have no problems with hooking something too late.
The only problem I noticed was with HL1 where I got something like CCodeErrorException after a while.
I did manage to see some libraries being loaded before it crashed.
( Note: Above is an example to add a clock into the client while running in fullscreen, nothing else )
|