Author Topic: [D3D] Help Hooking OPF  (Read 3106 times)

0 Members and 1 Guest are viewing this topic.

Jurugi

  • Online Villain
  • ***
  • Posts: 190
    • View Profile
[D3D] Help Hooking OPF
« on: June 07, 2009, 07:20:23 pm »
First off I wanted to say hai to everyone as this is my first post and I feel bad for it having to be a plea for help.
 Anyways, I've noticed your programmers made an OPF hack which seems to use the .pbo and addon files.. I have no idea how to use those but I've been trying to hook the D3D of OPF for about 4 days now! I was able to hook DX9 games such as CS:S and COD4, but now trying to hook OPF:Resistance is a bitch(it uses DX 8.1).   Let me just get started by saying I'm not a noob looking for a quick compile, I'm pretty well experienced and can code hacks for a game as long as it has an SDK(in C++). D3D is relatively the newer thing to me and as OPF has no SDK I figured I should try to hook its D3D engine and manipulate it from there. I'm using the D3D Start Kit with the wrapper, but I keep running into the error "Direct3DCreate8 required." I've tried to delay the hooking, link the D3D8.dll in a more efficient way and simply messed around and tried many different things over the past few days. I just can't get it to hook the D3D. Can anyone give me an example of how they did it?


M. O.

  • Administrator
  • MasstKer
  • *
  • Posts: 9185
    • View Profile
    • http://www.tkc-community.net
Re: [D3D] Help Hooking OPF
« Reply #1 on: June 07, 2009, 08:37:23 pm »
I did it once, but unfortunately I lost the source code. You have the DX8 SDK and all that? Try the loader from Gwhack http://tkc-community.net/forum/index.php?action=downloads;sa=view;down=36 . Gwhack is made for dx8-games.


Heckling is an art, and game hacking a science.

Jurugi

  • Online Villain
  • ***
  • Posts: 190
    • View Profile
Re: [D3D] Help Hooking OPF
« Reply #2 on: June 08, 2009, 01:58:19 am »
Thanks a lot. If I get it working I'll post the hook here. I'm also gonna release a CS 1.6 wallhack here soon just to stick around a bit.
Edit: Woah. Looks like that loader really does work amazingly. I've been trying to use a wrapper instead of an injector but hmph that is a great injector.

Jurugi

  • Online Villain
  • ***
  • Posts: 190
    • View Profile
Re: [D3D] Help Hooking OPF
« Reply #3 on: June 08, 2009, 11:08:00 pm »
I'll add some notes here as I keep on going.
For a wallhack use m_stride == 40, and I'm still finding out the vertices for the playermodels. Then I'll have to do the tanks and maybe choppers..

Btw has anyone managed to do an OPF Aimbot? I'm too lazy to search.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: [D3D] Help Hooking OPF
« Reply #4 on: June 09, 2009, 02:18:20 am »
m8 i dont know anyone that plays cs anymore , try hacking mainstream if you want help pm me cs is dead lol
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

ZOldDude

  • The Unknown Rank!
  • Administrator
  • MasstKer
  • *
  • Posts: 20874
  • Old School TKC
    • View Profile
    • Admin
Re: [D3D] Help Hooking OPF
« Reply #5 on: June 09, 2009, 02:53:45 am »
MrM...me thinks perhaps you should have posted this in the section with the CS hack.

*While we crash and burn, small, low tech, agrarian societies such as the Hmong in the mountains of Laos will continue on without so much as blinking an eye.*

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: [D3D] Help Hooking OPF
« Reply #6 on: June 09, 2009, 04:04:04 am »
hook cs , never impossible to cheat in multi player m8 as we all know :)

god gave me the gift of mathmatics


2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384....
.. blah lol

some people say i am a computer ... they could be correct :) justthe human version maybe ?
« Last Edit: June 09, 2009, 04:09:35 am by MrMedic »
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: [D3D] Help Hooking OPF
« Reply #7 on: June 09, 2009, 04:10:46 am »
MrM...me thinks perhaps you should have posted this in the section with the CS hack.

z i dont hack i add features they for got to include in retail lol ffs
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

M. O.

  • Administrator
  • MasstKer
  • *
  • Posts: 9185
    • View Profile
    • http://www.tkc-community.net
Re: [D3D] Help Hooking OPF
« Reply #8 on: June 09, 2009, 04:13:41 am »
MrM...me thinks perhaps you should have posted this in the section with the CS hack.

z i dont hack i add features they for got to include in retail lol ffs

Lol.
Heckling is an art, and game hacking a science.

ZOldDude

  • The Unknown Rank!
  • Administrator
  • MasstKer
  • *
  • Posts: 20874
  • Old School TKC
    • View Profile
    • Admin
Re: [D3D] Help Hooking OPF
« Reply #9 on: June 09, 2009, 05:55:31 am »
Quote
i dont hack i add features
Hahaha....so you do brother,so you do.  :icon_thumbsup

*While we crash and burn, small, low tech, agrarian societies such as the Hmong in the mountains of Laos will continue on without so much as blinking an eye.*

[TKC]Symantic

  • The Indifferent Character
  • The Central Committee
  • Heckler
  • *
  • Posts: 1647
  • I can has personal text?
    • View Profile
Re: [D3D] Help Hooking OPF
« Reply #10 on: June 09, 2009, 07:05:42 am »
MrM...me thinks perhaps you should have posted this in the section with the CS hack.

z i dont hack i add features they for got to include in retail lol ffs

sexy quote m8.
Enjoy your creative game-play, whatever that may include.

Jurugi

  • Online Villain
  • ***
  • Posts: 190
    • View Profile
Re: [D3D] Help Hooking OPF
« Reply #11 on: June 09, 2009, 11:45:20 pm »
YAAA I'm gonna pm you. I need help with model detection.. everything seems to be drawn the same way, or I'm doing something wrong.

Also: CS isn't dead yet :P

So far in OFP I've got:
1) A buggy nosky
2) Nofog
3) Wireframe
4) Draw with points
5) *beta* Wallhack, still trying to do model rec though.. see thru everything
6) Whitewalls
7) *not gonna put chams cuz I was able to render all ground/sky white, everything else sticks out like a soar thumb ::D*

Now I've never done an aimbot using D3D stuff.. but I might get ahold of someone who's been kind enough to release theirs and see if I can integrate it. This is just future thinking though.

Edit: I got an awesome idea.. I can't get a hold on the model rec (I have a wide range of primcounts and vertcounts that I know they are between), but I can make it so that everything that isn't those entities is drawn instead of looking specifically for them. I already got it down pretty much using whitewalls for testing.
« Last Edit: June 10, 2009, 04:25:32 am by Jurugi »

Jurugi

  • Online Villain
  • ***
  • Posts: 190
    • View Profile
Re: [D3D] Help Hooking OPF
« Reply #12 on: June 10, 2009, 05:20:09 am »
Ok. I'm considering myself Stable right now. I've got working:
1) Nosky
2) Nofog
3) Whiteground
4) Wireframe
5) XqZWallhack
6) Sharpen (makes things darker, sharpens the imagery, deblends a tiny bit)
7) Pointsframe (er.. just wireframe with points and without lines)
8) Chams (decided to make some. it does help seeing the models thru)

And some forced blending. It makes the plants and everything look higher-quality while making them stick out just a little bit. If anyone needs help with their OFP hooks PM me, I don't feel liek just printing it out there.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: [D3D] Help Hooking OPF
« Reply #13 on: June 10, 2009, 04:37:40 pm »
use SetVertexShaderConstantF to do texture crc , use the shaders for crc , its very easy. DWORD pconstantdata , works for arma 2 and arma as well .. the engine works by blocking all texture events so hooking settexture is useless everything has the same crc also for verts and prims , the same happens , the engine renders them differently at different angles .. so its pointless trying , use svscf.

btw using this its very easy to make a aimbot using wts just convert the index to a screen pos and you have a basic aimbot..
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157