BOOL CONNECTED()
{
return (g_LTClient->IsConnected()) ? 1 : 0;
}
gamestatus by gamemodes been around for awhile however. The above is just a short hand way to do it.
ok so i was looking the the Ltclient Class and found something very very usefull
at first i didnt know if it would work But it Does
here
Code:g_LTClient->IsConnected()
use
also Game mode addy no longer need i thinkCode:void SampleGamestatus() { if(g_LTClient->IsConnected()) { ////CODE Here } }
here
Not Tested
Code:LTRESULT (*GetGameMode)(int* Mode); //0x007C
Use
Code:void Test() { if((*(int*)g_LTClient->GetGameMode !=5))//FireTeam I think { //Code Here } }
btw You Need this
Code:CLTClient* g_LTClient;
Last edited by DisOwned; 10-30-2013 at 07:50 AM.
BOOL CONNECTED()
{
return (g_LTClient->IsConnected()) ? 1 : 0;
}
gamestatus by gamemodes been around for awhile however. The above is just a short hand way to do it.
Last edited by Acea; 10-30-2013 at 08:06 AM.
Not Needed
Code:? 1 : 0;
all thats needed is this
it auto finds if your in lobby or connected ingame
i use it like this thoCode:return (g_LTClient->IsConnected())
Code:void letssayMemoryHacks() { if(g_LTClient->IsConnected()) { //MEMORY FUNCTIONS here } }
but above is much easyer
Last edited by DisOwned; 10-30-2013 at 08:08 AM.
Because returning info that's uneeded if per say you just need a status check would create garbage and messy code. And from what you said is it auto find if your In lobby correct? Then you may need to actually use the game type check you stated above. Hmm interesting ill look Into it when I get home. And just a fyi, im creating you a hack loader to help with your cheat detection.
i know how to use IDA or Olly, but i cant to write hook, today my hook detected, also detected this detours
void *cDirectx:esvioJMP(BYTE *src, CONST BYTE *dst, CONST INT len)
{
BYTE *jmp=(BYTE*)malloc(len+5);
DWORD dwback;
VirtualProtect(src,len,PAGE_READWRITE,&dwback);
memcpy(jmp,src,len);jmp+=len;jmp[0]=JMP+0x1E;
*(DWORD*)(jmp+1)=(DWORD)(src+len-jmp)-5;
src[0]=JMP+0x1E;
*(DWORD*)(src+1)=(DWORD)(dst-src)-5;
for(INT i=5;i<len;i++)src[i]=0x90;
VirtualProtect(src,len,dwback,&dwback );
FlushInstructionCache(GetCurrentProcess(),src,0x10 );
return(jmp-len);
}
when i start game then in game crash and it says connection to server lost
If it just detected today for no reason its probably not the hook: if you're trying to hook s2s thats why its crashing, if you're not encrypting strings thats why it's crashing, if you're using "beast mode" thats why its crashing etc etc
Are you setting memory addresses before in game....? And are you using beast mode?
Last edited by Flengo; 11-02-2013 at 08:50 PM.