OldSchoolHack

Registrieren / Anmelden Deutsch

VMT Hook Csgo

icon Thema: [Help] VMT Hook Csgo

Anmeldungsdatum: Feb 2016

Beiträge: 2

Hello, I have been looking around at vmt hooks on multiple forums and don't want to just c+p one, I want to figure out the coding behind it and hopefully others can understand as well.

So far I have decompiled CSGO and found the D3d Device located here.
http://i.imgur.com/dnwvVLB.png

I also found the index for end scene 42 (42 * 4) 0xA8
ok, so so far I found the d3d device and the variable for endscene in it. Now we want to draw our own d3d internalz.
So far this is what I have done, any comments suggestions, pointers would be helpful in this process.

TEXT Code:
  1. HRESULT MyEndScene(LPDIRECT3DDEVICE9 pDevice) {
  2. DrawBox(100, 100, 100, 100, D3DCOLOR_ARGB(0, 0, 0, 0), D3DCOLOR_ARGB(0, 0, 0, 0), pDevice);
  3. }
  4. void VMT_HOOK() {
  5. DWORD addr_OfEnd_Scene = (DWORD)(GetModuleHandleA("shaderapidx9.dll")) + 0x1D56D8 + 0xA8;
  6. }