How to hook/call game dll function from module?
I have a name of function and disassembled code, can get a signature and maybe address.
What should I do to call game dll function from my module? |
Re: How to hook/call game dll function from module?
Use Orpheu.
|
Re: How to hook/call game dll function from module?
Quote:
I could see how it is implemented in Orphey, but he contain a lot of code and i can't understand it. :cry: |
Re: How to hook/call game dll function from module?
Unless you want to use some library, it's really advanced and requires x86 assembly knowledge as well. Search around the forums for "CHooker" or CDetour.
However, if you can't deal with it, better stick to Pawn and Orpheu. |
Re: How to hook/call game dll function from module?
Quote:
|
Re: How to hook/call game dll function from module?
Where I can find any example or tutorial of CDetour?
I was looking for on this forum, but found nothing. Also, i was reseached source codes of ns, cstrike modules, but that work with pvPrivateData and do not contain any information about calling dll funcs. |
Re: How to hook/call game dll function from module?
Check amxmodx/meta_api.cpp and search for SV_DropClient.
|
Re: How to hook/call game dll function from module?
Quote:
For example, using IDA I found out that exist is that function: Code:
void AdjustSpecificWeapon(tsweapon_t, float, float, float, float, int) Will it be enough to declare a func for detour that, or i need initialize func and after detour? |
Re: How to hook/call game dll function from module?
I worked my idea without calling any clientside functions. I have more attentively studied the code and find out that target function uses g_engfuncs[47], I started looking for declare of g_engfuncs, and found function g_engfuncs[0], this function took the path to model. And later, exploring AMXX SDK, I noticed that in defines function PrecacheModel is first, and I assumed that PrecacheModel has index 0. Experimentally I scroll through 46 lines down and mark line, this line was define of MessageBegin. I used this method on other functions for convert calling using pointer on instance of array to function names. Using the obtained information, I was able to more detail examine the code of AdjustSpecificWeapon. Examined, I was discovered that this function can be replaced to messages. Thanks to all for the help.
|
Re: How to hook/call game dll function from module?
Quote:
Check for enginefuncs_t struct at eiface.h on hlsdk |
All times are GMT -4. The time now is 02:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.