CA Haxo Base

Posts 31–45 of 45 · Page 3 of 3
Quote Originally Posted by mikethemak View Post
How does

Code:
bool cSettings::InGame()
{
	return(*(BYTE*)GameStatus == 1);
}
Work? Whenever i do something like

Code:
IF (not in game)
//Reset menu values
Basically, I'm trying to find a way to work around the fact that it crashes the game if you enter a game with the hacks on, is this the right way to approach it? Because whenever I use the statement "If (!Settings.InGame())" that reads true ALWAYS, so using it makes the menu reset constantly. How do i go about making it so the hacks wont crash the game if i enter a game with some on? Am i doing it wrong?

@mo3ad001
make it so the game status of not being on makes all the hacks go off so you can turn them on in lobby and go ingame is when they really turn on.
Quote Originally Posted by teehee15 View Post
make it so the game status of not being on makes all the hacks go off so you can turn them on in lobby and go ingame is when they really turn on.
Is that the correct code though? And is this the correct addy?
Code:
0x377B2190

So you mean do something like:

Code:
if((*(BYTE *)GameStatus == 1) && recoil)
//do no recoil
correct?
Quote Originally Posted by mikethemak View Post
Is that the correct code though? And is this the correct addy?
Code:
0x377B2190

So you mean do something like:

Code:
if((*(BYTE *)GameStatus == 1) && recoil)
//do no recoil
correct?
i sent you a vm with the one i use... put the hax inbetween the first break; and the default; the addy is just gamestatus and i think if your giving me that one you might be EU and i dont have EU addies.
Quote Originally Posted by teehee15 View Post
i sent you a vm with the one i use... put the hax inbetween the first break; and the default; the addy is just gamestatus and i think if your giving me that one you might be EU and i dont have EU addies.

So for example:
Code:
if(NORECOIL_ACTIVE)

switch(*(int*)GameStatus){
case 1://in game
break;
//////////////////
// Do no recoil code here?
/////////////////

default://loading game
break;
I'm not on EU, I need the NA code but I don't have the slightest clue how to find it? How do I get that?


@teehee15
Quote Originally Posted by mikethemak View Post
So for example:
Code:
if(NORECOIL_ACTIVE)

switch(*(int*)GameStatus){
case 1://in game
break;
//////////////////
// Do no recoil code here?
/////////////////

default://loading game
break;
I'm not on EU, I need the NA code but I don't have the slightest clue how to find it? How do I get that?
noes like
switch(*(int*)GameStatus){
case 1:
//hack here
break;
default:
//off addies for the hack i.e.
memcpy((PBYTE) Findaddyelsewhere, (PBYTE)"bytesalso", 2); //Rapid Fire Off
break;

and add me on msn: danny1098222 @yahoo. com
Quote Originally Posted by teehee15 View Post
noes like
switch(*(int*)GameStatus){
case 1:
//hack here
break;
default:
//off addies for the hack i.e.
memcpy((PBYTE) Findaddyelsewhere, (PBYTE)"bytesalso", 2); //Rapid Fire Off
break;

and add me on msn: danny1098222 @yahoo. com
Ahh ok I see. What is the current GameStatus for the NA client?


Added you on msn, but just be forewarned I don't use it a lot anymore lol. Havn't been on it in ages. @teehee15
Quote Originally Posted by mikethemak View Post
Ahh ok I see. What is the current GameStatus for the NA client?


Added you on msn, but just be forewarned I don't use it a lot anymore lol. Havn't been on it in ages. @teehee15
0x377F5E9C i think
Quote Originally Posted by teehee15 View Post
0x377F5E9C i think
Ahh got it working! Thank you much! I don't suppose you could go to http://www.mpgh.net/forum/334-combat...questions.html and answer my other couple noob questions for me? It would be a huge help . Sorry, very new to the whole hack coding business, done a lot with c++ and assembly, but mainly only college work.

I've got to step out for a bit, but if you could help that would be awesome.


@teehee15
for people how dont understand how hack function works !
this an example about super bullets !

Code:
void cHacks::hSuperBullets(int Flag)// Normal Function with some parameter
{
	if(Flag) // if is on do Patch
		Tools.PatchMemory((PBYTE)Addresses.Address[SuperBullet].Value ,(PBYTE)"\x33\xC0\x90", 3);
	else // not rest it
		Tools.PatchMemory((PBYTE)Addresses.Address[SuperBullet].Value,(PBYTE)"\x0F\x94\xC0", 3 );
}

now im calling it in doMemory Function as you see

[HTML]void cHacks:oMemory(bool Flag)// again normal Function with some parameter this parameter will be gamestatus
{
if(Flag)
{
Hacks.hSuperBullets(Menu.mOpt[2][4].noptv /* If you see here its menu val if its on ....or not ...*/);
Hacks.....
}else
{ // lol i notice that i can make it in another way like

Hacks.hSuperBullets(0);// im calling superbuttels function with zero parameter so its gonna make it off
//Tools.PatchMemory((PBYTE)Addresses.Address[SuperBullet].Value,(PBYTE)"\x0F\x94\xC0", 3 ); and this is the old way
}
}[/HTML]

i hope you understand now how it work

and for people how ask about game status , the function is ok ( afffffffff) just check out ur address , and call all you memoryHacks in you render as
[HTML]
.....Render
DoMemory(Settings.InGame()); // This will be more easy than wat u r doing
[/HTML]
Quote Originally Posted by ~Killua~ View Post
hey people in this part of code say that _tcsncpy and _T is undefined anybody can help me?


CD3DFont::CD3DFont( const TCHAR* strFontName, DWORD dwHeight, DWORD dwFlags )
{

_tcsncpy( m_strFontName, strFontName, sizeof(m_strFontName) / sizeof(TCHAR) );
m_strFontName[sizeof(m_strFontName) / sizeof(TCHAR) - 1] = _T('\0');
m_dwFontHeight = dwHeight;
m_dwFontFlags = dwFlags;
m_dwSpacing = 0;

m_pd3dDevice = NULL;
m_pTexture = NULL;
m_pVB = NULL;

m_pStateBlockSaved = NULL;
m_pStateBlockDrawText = NULL;
}
includes the following libraries:

#include <stdio.h>
#include <tchar.h>
#include <d3dx9.h>
Quote Originally Posted by CAFlames View Post


Okay. I used these and I still d/c .. hmm Ill have to look at that. Alright.

And yeah, I have been studying alot too haha
You can deal with it
Quote Originally Posted by CookieMonster3 View Post
Looks
Wish it was into a project not separate files but good.
why do you complain? it will take about 30 seconds to put it in a project. or just play the game legit. dam...
Quote Originally Posted by CookieMonster3 View Post
@speedforyou
I've had it done.
Don't reply to old posts.
read the rules.
i can reply to anything. as long as i dont bump. cough 1 week. sit down bro.
Epic base dude , good work , works like a charm
Posts 31–45 of 45 · Page 3 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?