HelpSimple PTC command not working

Posts 113 of 13 · Page 1 of 1
Simple PTC command not working
Code:
void __cdecl hMenuCore::PushToConsole( const char* szCommand )
{
	DWORD* addr = ( DWORD* ) LTClientEXE;
	if(*(BYTE*)ADDR_GAMESTATUS == 1) 
	{
	__asm
	{
		Pushad;
		Push szCommand
		call addr
		add esp, 0x4
		Popad;
		}
	}
}
LTClientEXE is 0x490230

the commands just dont work in game
i tried PushToConsole("ShowFps 1") ,PushToConsole("FogEnable 1" ) and nothing happens

Thanks
PTC's require using address's now OR you can hook the function.
Quote Originally Posted by Acea View Post
PTC's require using address's now OR you can hook the function.
okay thanks,
i have another problem with DIP i hope someone can help me:
Code:
typedef HRESULT (WINAPI* tDrawIndexedPrimitive)(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE PrimType,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount);
tDrawIndexedPrimitive oDrawIndexedPrimitive2 = NULL;
( the hook is undetected and work i tried Present and Reset.
Code:
DWORD hDIPtr = hHooker(82);
oDrawIndexedPrimitive2 = ( tDrawIndexedPrimitive )hDetour( (PBYTE)hDIPtr,(PBYTE)&tDrawIndexedPrimitive2, 5 );
Code:
HRESULT WINAPI tDrawIndexedPrimitive2(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE PrimType,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
{
	
			LPDIRECT3DVERTEXBUFFER9 Stream_Data;
        UINT Offset = 0, m_Stride = 0;

        if(pDevice->GetStreamSource(0, &Stream_Data, &Offset, &m_Stride) == D3D_OK)
        Stream_Data->Release();

//MessageBox(NULL,"","",NULL); --> game crash after this message
return oDrawIndexedPrimitive2(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);

}
isnt DIP hook patched?
Quote Originally Posted by 5555satan View Post
isnt DIP hook patched?
hmm i don't know, i wasn't here for a long time XD
is there another way to make chams ?
Quote Originally Posted by amitsl View Post
hmm i don't know, i wasn't here for a long time XD
is there another way to make chams ?
i dont code for NA...
ask all the main NA hackers, im pretty sure that DIP is long long time patched
Quote Originally Posted by 5555satan View Post
i dont code for NA...
ask all the main NA hackers, im pretty sure that DIP is long long time patched
I've had DrawIndexedPrimitive hooked for months, it's far from patched.
Quote Originally Posted by Shadow` View Post
I've had DrawIndexedPrimitive hooked for months, it's far from patched.
so can you help me please to hook it ;d ?
Nah, I use a DIP.
Its patched without HS bypass, we need some new ways and Im too lazy <_<
They are scanning:
- Whole DIP (You could hook @ call in DIP)
- Whole Engine DIP

What you can try to do is get a call in CShell to a DIP (Engine or not) and just hook that because HS isnt scanning this module :P
Also as I referred before you can hook SetTexture which works perfect and doesnt crash.
Quote Originally Posted by Ch40zz-C0d3r View Post
Its patched without HS bypass, we need some new ways and Im too lazy <_<
They are scanning:
- Whole DIP (You could hook @ call in DIP)
- Whole Engine DIP

What you can try to do is get a call in CShell to a DIP (Engine or not) and just hook that because HS isnt scanning this module :P
Also as I referred before you can hook SetTexture which works perfect and doesnt crash.
They're not scanning CShell yet. Nothing stopping them from doing it soon, as I'm sure they will end up getting around to it.

I think the best method, currently, is your idea. Hooking a call inside DIP.
Quote Originally Posted by Flengo View Post


They're not scanning CShell yet. Nothing stopping them from doing it soon, as I'm sure they will end up getting around to it.

I think the best method, currently, is your idea. Hooking a call inside DIP.
I did that before and it worked great, but texture chams were not working with 2 colors since it was hooked in the middle of DIP...
I think I will work on this (works on other games too) and probably share it.
thanks for your comments guys,
i tried so method to hook DIP but without success ( i have HS bypass)
i tried code cave hook but without success too
can someone please help me with this i need it for my esp
Posts 113 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?