View Single Post
STekLyAToR
Member
Join Date: May 2016
Old 08-15-2017 , 23:40   Re: How to hook/call game dll function from module?
Reply With Quote #9

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.

Last edited by STekLyAToR; 08-15-2017 at 23:40.
STekLyAToR is offline