Jump to content


Photo
- - - - -

Teach me to make hacks (i know C++)


  • Please log in to reply
20 replies to this topic

#1 xjsp7x

xjsp7x

    Trainee

  • Members
  • 15 posts

Posted 07 December 2009 - 08:45 PM

Can i get a video to make chams or no spread or no recoil ive got a bit of C++ down and im going to atemt making hacks. i just need a video to teach me =P

HELP PLEASE!
  • 0

#2 -Govna-

-Govna-

    God of Boredom

  • Administrator
  • 3,841 posts
  • Gender:Male

Posted 07 December 2009 - 08:49 PM

You can't make hacks out of purely C++, while it will probably help, you need to learn a lot more coding. One of them I'm pretty sure you need to know is d3d. Google up how to make them and them some coding guides, but from what I read it takes years to learn how to make hacks.
  • 0
\(・ω・\) Losing (/・ω・)/my mind

#3 xjsp7x

xjsp7x

    Trainee

  • Members
  • 15 posts

Posted 07 December 2009 - 08:57 PM

ok i got it CYA in a year! =P
  • 0

#4 dev

dev

    Corporal

  • Members
  • 219 posts
  • Gender:Male

Posted 07 December 2009 - 09:17 PM

Yeah, literally.
  • 0

Posted Image

have you gone cr@zy?
Posted Image

So this is the story,
how the noob got pwned.
Boy, he got rejected hard.
This is how it went:
"OMG YOU SHOTTY NOOB! OMG! CAMPER! HACKER!," sais the noob.
"Cry Cry nub," sais the pro.
"Wow you just have no life becuz you waste your whole life on this game," sais the noob.
"Lmao..I'm a gamer, I have unlimited lives," said the pro.

THIS IS HOW THE NOOB GOT R@PED @@@@@

#5 TrojN

TrojN

    I like linkin park

  • Administrator
  • 2,107 posts
  • Gender:Male

Posted 07 December 2009 - 11:36 PM

if ur asking this question, then ur probably incapable of making hacks
  • 0

Posted Image
im bored


#6 Accepted

Accepted

    Peon

  • Members
  • 5 posts
  • Gender:Male

Posted 06 January 2010 - 09:48 PM

ok i got it CYA in a year! =P


Lol, I wouldn't want to take that much time. I can't stand learning something for a year. lol.
  • 0
Follow me on Twitter!
@AcceptedIDK

Posted Image
Raise me!

#7 -Govna-

-Govna-

    God of Boredom

  • Administrator
  • 3,841 posts
  • Gender:Male

Posted 06 January 2010 - 10:08 PM

Most people wont, and that's why there are very few people who can actually make hacks. Also, most people who end up taking that long, end up becoming a good programmer (that doesn't spend their time making hacks) , and takes on other line of work.  
  • 0
\(・ω・\) Losing (/・ω・)/my mind

#8 iCanDoStuff

iCanDoStuff

    Member

  • Members
  • 46 posts

Posted 12 January 2010 - 07:55 PM

Although, when you do take the time to learn you get in to it, and it take WAY more than a year ;]
(I started at 10 o.o)

  • 0
Posted Image
Posted Image

#9 -Govna-

-Govna-

    God of Boredom

  • Administrator
  • 3,841 posts
  • Gender:Male

Posted 12 January 2010 - 10:42 PM

Well, the rudimentary stuff takes a year to learn. All the other stuff takes like... 4...6 years.




Also, I doubt you started at 10, I could barely even focus on one thing at 10.
  • 0
\(・ω・\) Losing (/・ω・)/my mind

#10 Mdude™

Mdude™

    I'm an assassin... rawr

  • Administrator
  • 3,690 posts
  • Gender:Male

Posted 13 January 2010 - 05:53 PM

And how old are you now iCan? o.o
  • 0

planesigcopy.jpg?t=1261596024
mdude2312.png


If I helped you, or if you just like me, press the green plus button! =D

"Almost dying changes nothing. Dying, changes everything." --Gregory House, M.D.
You steal my avatar, you die. }:)


#11 iCanDoStuff

iCanDoStuff

    Member

  • Members
  • 46 posts

Posted 20 January 2010 - 09:17 PM

@ Owna: You have NO idea how weird I was....

@MDude: 12 o.o
  • 0
Posted Image
Posted Image

#12 Mdude™

Mdude™

    I'm an assassin... rawr

  • Administrator
  • 3,690 posts
  • Gender:Male

Posted 20 January 2010 - 09:23 PM

Alrighty then.
  • 0

planesigcopy.jpg?t=1261596024
mdude2312.png


If I helped you, or if you just like me, press the green plus button! =D

"Almost dying changes nothing. Dying, changes everything." --Gregory House, M.D.
You steal my avatar, you die. }:)


#13 -Govna-

-Govna-

    God of Boredom

  • Administrator
  • 3,841 posts
  • Gender:Male

Posted 20 January 2010 - 09:37 PM

@ Owna: You have NO idea how weird I was....

@MDude: 12 o.o


Well then... salute to you, sir.
  • 0
\(・ω・\) Losing (/・ω・)/my mind

#14 Mdude™

Mdude™

    I'm an assassin... rawr

  • Administrator
  • 3,690 posts
  • Gender:Male

Posted 20 January 2010 - 09:52 PM

Yeah, really. I fail.
  • 0

planesigcopy.jpg?t=1261596024
mdude2312.png


If I helped you, or if you just like me, press the green plus button! =D

"Almost dying changes nothing. Dying, changes everything." --Gregory House, M.D.
You steal my avatar, you die. }:)


#15 Tate

Tate

    Soldier

  • Members
  • 83 posts

Posted 26 January 2010 - 02:47 PM

You can't make hacks out of purely C++, while it will probably help, you need to learn a lot more coding. One of them I'm pretty sure you need to know is d3d. Google up how to make them and them some coding guides, but from what I read it takes years to learn how to make hacks.


Sorry for being such a jew, but I simply have to correct this.

D3D is the rendering of 3D objects in a game. That's the main purpose.

D3D is an open SDK released by microsoft for developing games and what not. (SDK means Source Development Kit)

There's no such thing as "knowing D3D". It's called D3D hooking. You have to hook what goes on inside a game, such as BeginScene, or DrawIndexedPrimitive, or EndScene.

BeginScene, DrawIndexedPrimitive, and EndScene are just basic things going on inside a game. DrawIndexedPrimitive, for instance, is when you're playing, it's drawing 3D objects and rendering the lighting effects.




SO, if you hook DrawIndexedPrimitive, you can change things you see in game as they come to your field of vision. If you wanted to make a fullbright, you'd set the lighting to false in DrawIndexedPrimitive. When you do that, anything that happens in BeginScene or EndScene will be untouched.




Alot of objects are classified by Strides, NumVertices, or Primcounts. If you want to just modify those, youll do it like so: (Well pretend that your device is m_pD3Ddev)


If(m_Stride == StrideNumber)

{

m_pD3Ddev->SetRenderState( D3DRS_FILLMODE, 2 );

}




That will apply wireframe to your desired object. You can then set the color for it by generating a texture by hooking GenerateTexture

HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)


if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)) )
		return E_FAIL;
	
	WORD colour16 =	((WORD)((colour32>>28)&0xF)<<12)
			|(WORD)(((colour32>>20)&0xF)<<8)
			|(WORD)(((colour32>>12)&0xF)<<4)
			|(WORD)(((colour32>>4)&0xF)<<0);

	D3DLOCKED_RECT d3dlr; 
	(*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
	WORD *pDst16 = (WORD*)d3dlr.pBits;

	for(int xy=0; xy < 8*8; xy++)
		*pDst16++ = colour16;

	(*ppD3Dtex)->UnlockRect(0);

 return S_OK;





Then ACTUALLY generate the texture, like so:


HRESULT CD3DManager::Initialize()
{

 
 GenerateTexture(m_pD3Ddev, &texCyan, D3DCOLOR_ARGB(255,0,255,255));
 GenerateTexture(m_pD3Ddev, &texNone, D3DCOLOR_ARGB(0,0,0,0));

	return S_OK;
}






So finally, in order for your wireframe to look like this:

Posted Image




Your gonna have this in DrawIndexedPrimitive:


If(m_Stride == StrideNumber)
 {
 m_pD3Ddev->SetTexture(0, texCyan);
 m_pD3Ddev->SetRenderState(D3DRS_FILLMODE, 2);
 m_pD3Ddev->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_ONE );
 }
 //If m_Stride does NOT == StrideNumber 

 else
 {
 m_pD3Ddev->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID); //If it's not the player, keep it filled solid.
 }

}




Hopefully that will explain thoroughly what "D3D" is, and that you don't have to learn "D3D", it's just an extension to any language, such as VB.net, C#, Delphi, C++, or any other language with it supported.

Edited by Tate, 28 January 2010 - 04:26 PM.

  • 0

#16 -Govna-

-Govna-

    God of Boredom

  • Administrator
  • 3,841 posts
  • Gender:Male

Posted 26 January 2010 - 06:03 PM

Sorry for being such a jew, but I simply have to correct this.

D3D is the rendering of 3D objects in a game. That's the main purpose.

D3D is an open SDK released by microsoft for developing games and what not. (SDK means Source Development Kit)

There's no such thing as "knowing D3D". It's called D3D hooking. You have to hook what goes on inside a game, such as BeginScene, or DrawIndexedPrimitive, or EndScene.

BeginScene, DrawIndexedPrimitive, and EndScene are just basic things going on inside a game. DrawIndexedPrimitive, for instance, is when you're playing, it's drawing 3D objects and rendering the lighting effects.




Spoiler



Hopefully that will explain thoroughly what "D3D" is, and that you don't have to learn "D3D", it's just an extension to any language, such as VB.net, C#, Delphi, C++, or any other language with it supported. 


Well, yes, since I made that post I have found out that D3D isn't really a scripting code, though I never saw it explained in this detail.
  • 0
\(・ω・\) Losing (/・ω・)/my mind

#17 Tate

Tate

    Soldier

  • Members
  • 83 posts

Posted 26 January 2010 - 06:39 PM

Well, yes, since I made that post I have found out that D3D isn't really a scripting code, though I never saw it explained in this detail.


Well hopefully that detailed explanation helped you at least a little bit, and helped some random readers. :]
  • 0

#18 -Govna-

-Govna-

    God of Boredom

  • Administrator
  • 3,841 posts
  • Gender:Male

Posted 26 January 2010 - 08:17 PM

Well hopefully that detailed explanation helped you at least a little bit, and helped some random readers. :]


I read the first 5 or so lines... then I stopped... xD.
  • 0
\(・ω・\) Losing (/・ω・)/my mind

#19 Mdude™

Mdude™

    I'm an assassin... rawr

  • Administrator
  • 3,690 posts
  • Gender:Male

Posted 26 January 2010 - 08:58 PM

lol Govna... READ THE WALL OF TEXT I DARE U.
  • 0

planesigcopy.jpg?t=1261596024
mdude2312.png


If I helped you, or if you just like me, press the green plus button! =D

"Almost dying changes nothing. Dying, changes everything." --Gregory House, M.D.
You steal my avatar, you die. }:)


#20 -Govna-

-Govna-

    God of Boredom

  • Administrator
  • 3,841 posts
  • Gender:Male

Posted 26 January 2010 - 09:01 PM

lol Govna... READ THE WALL OF TEXT I DARE U.


Improper grammar, I shall not >:|.
  • 0
\(・ω・\) Losing (/・ω・)/my mind