
Originally Posted by
ScripCody
Can you tell me how to compile it? Does it work in Windows 8?
You need:
->Visual Studio c++
->DirectX SDK June 2010
->Detour library (not the recent one; not the 3.0 but the older one)
You create a new empty project and paste the code
You add the extra mentionned libraries and headers in the compiler paths
You compile
- - - Updated - - -
So I am trying to improve this thing.
I am a bit stuck: I cannot figure out how to achieve what I want.
Maybe you can help me guys?
This is the challenge:
This code is working fine but I would like to add a bit more intelligence to it using the XYZ position of every models. Example of possibilities: to try to differentiate the enemies and only apply the Chams or Boxes to them instead of everyone.
So I need to figure out how to actually get the XYZ in the World space referential (not the model space) out of the Model and through the hooking functions.
I already tested a lot of options including D3DXVec3Unproject but I am not successful.
I believe one of the key reason is that I don't have yet the real world matrix since the Unity matrix is used in the code here for the world matrix.
Is there a Direct3D expert among us that is willing to help me and put me on the right path?
Ofcourse I Googled a lot before posting. I would say that D3DXVec3Unproject is the most promising but I cannot make it work.
I promise I will share the finished binary afterward
Let me know if you can help
- - - Updated - - -
OUPS I forgot to mention:
I would like to get the XYZ out of the Direct3D Hooking because it would survive to game updates: we would not need to redo the hack every time like the ones that are based on players memory structures