- Beranda
- Programmer Forum
[Open Source + Tutorial]Basic Hacking Game
...
TS
kuya.gaol
[Open Source + Tutorial]Basic Hacking Game
Quote:
Quote:
NEWS & Update:
#1. Update Turoial hack save game By agan yeyek
#2. Coding Freeze Value By agan postsembarangan
#1. Update Turoial hack save game By agan yeyek
#2. Coding Freeze Value By agan postsembarangan
Quote:
Quote:
![[Open Source + Tutorial]Basic Hacking Game](https://dl.kaskus.id/img717.imageshack.us/img717/263/signalattention.png)
1.ts tidak bertanggung jawab apabila terjadi pelanggaran hukum atas tutorial ini!!!
2.Gunakan kalimat yang dapat dimengerti dan sopan
3.No junk
!!!4.ts tidak menerima pm dan vm, jika kesulitan silahkan posting di thread ini!!!
5.Tidak menerima request Base cheat, Jika ada kesulitan silahkan di bahas di Thread
6.Harap Cek Index dulu sebelum bertanya (membaca lah sebelum bertanya

7.Selalu patuhi General Rules Programmer
Quote:
Support @
Review Project Tutorial Mw2
Spoiler for Comingsoon:
Polling
0 suara
Setuju tdk saya buat tut memory Hacking?
0
15.4K
Kutip
166
Balasan
Komentar yang asik ya
Mari bergabung, dapatkan informasi dan teman baru!
Programmer Forum
20.2KThread•4.9KAnggota
Tampilkan semua post
TS
kuya.gaol
#79
Chams via String
Quote:
Quote:
Source :
Global
Function
Example in Mw2 :
Global
PHP Code:
extern "C" LPVOID _ReturnAddress( );
typedef HRESULT (WINAPI *DrawIndexedPrimitive_t)( LPDIRECT3DDEVICE9 lpDevice, D3DPRIMITIVETYPE PrimitiveType, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT StartIndex, UINT PrimCount );
DrawIndexedPrimitive_t orig_DrawIndexedPrimitive = NULL;
Function
PHP Code:
HRESULT WINAPI DrawIndexedPrimitive_Hook( LPDIRECT3DDEVICE9 lpDevice, D3DPRIMITIVETYPE PrimitiveType, INT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount )
{
if( _ReturnAddress( ) == (void *)0x75474C )//Players and some wires etc...
{
lpDevice->SetRenderState( D3DRS_ZENABLE, FALSE );
lpDevice->SetRenderState( D3DRS_LIGHTING, TRUE );
lpDevice->SetTexture( 0, EnemyTextureVisible );
orig_DrawIndexedPrimitive( lpDevice, PrimitiveType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount );
lpDevice->SetRenderState( D3DRS_FOGENABLE, FALSE );
lpDevice->SetRenderState( D3DRS_ZENABLE, TRUE );
lpDevice->SetRenderState( D3DRS_LIGHTING, FALSE );
lpDevice->SetTexture( 0, FriendTextureVisible );
}
return orig_DrawIndexedPrimitive( lpDevice, PrimitiveType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount );
}
Example in Mw2 :
PHP Code:
HRESULT WINAPI hkDrawIndexedPrimitive (IDirect3DDevice9 * pDevice , D3DPRIMITIVETYPE typ ,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
{
if( (DWORD)_ReturnAddress() == 0x00558ED6 )
{
static unsigned long * dwModel;
_asm
{
push eax;
mov eax , dword ptr[ esp + 0x17C ];
mov dwModel , eax;
pop eax;
}
if( IsBadReadPtr( (void*) ( dwModel ) , 0x8 ) )
{
_asm
{
push eax;
mov eax , dword ptr[ esp + 0x1FC ];
mov dwModel , eax;
pop eax;
}
}
if( !IsBadReadPtr( (void*) ( dwModel ) , 0x8 ) )
{
_asm
{
push eax;
mov eax , dwModel;
mov eax , dword ptr[ eax + 0xB8 ]
mov dwModel , eax;
pop eax;
}
}
if(!IsBadReadPtr( (void*) ( dwModel ) , 0x8 ))//valid
{
if( strstr( *(char**)dwModel, "_tf141_" ) || strstr( *(char**)dwModel, "_tf_141_" ) || strstr( *(char**)dwModel, "_airborne_" ) || strstr( *(char**)dwModel, "_us_" )
|| strstr( *(char**)dwModel, "_seal_" ) || strstr( *(char**)dwModel, "_militia_" ) || strstr( *(char**)dwModel, "_arctic_" ) || strstr( *(char**)dwModel, "_russian_" )
|| strstr( *(char**)dwModel, "_sniper_" ) || strstr( *(char**)dwModel, "_arab_" ) || strstr( *(char**)dwModel, "_opforce_" ) || strstr( *(char**)dwModel, "_slum_" ) )
{
float teal[4] = { 0.0, 1.0, 1.0 , 1.0 };
float white[4] = { 1.0, 010, 1.0 , 1.0 };
m_IDirect3DDevice9->SetPixelShader( Layka::Shader:<img src="https://s.kaskus.id/images/smilies/sumbangan/14.gif" data-sceditor-emoticon=":D" border="0" alt="emoticon-Big Grin" title="Big Grin"/>efault->GetShader( ) );
m_IDirect3DDevice9->SetPixelShaderConstantF(1,teal,1);
m_IDirect3DDevice9->SetRenderState(D3DRS_ZENABLE,D3DZB_FALSE);
m_IDirect3DDevice9->SetRenderState(D3DRS_ZFUNC,D3DCMP_NEVER);
oDrawIndexedPrimitive(pDevice ,typ,BaseVertexIndex,MinVertexIndex,NumVertices,startIndex,primCount);
m_IDirect3DDevice9->SetRenderState(D3DRS_ZENABLE,D3DZB_TRUE);
m_IDirect3DDevice9->SetRenderState(D3DRS_ZFUNC,D3DCMP_LESSEQUAL);
m_IDirect3DDevice9->SetPixelShader( Layka::Shader:<img src="https://s.kaskus.id/images/smilies/sumbangan/14.gif" data-sceditor-emoticon=":D" border="0" alt="emoticon-Big Grin" title="Big Grin"/>efault->GetShader( ) );
m_IDirect3DDevice9->SetPixelShaderConstantF(1,white,1);
}
}
}
return oDrawIndexedPrimitive( pDevice , typ , BaseVertexIndex , MinVertexIndex , NumVertices , startIndex , primCount );
}
Spoiler for result:
Credit : Decor911, Alexak92 @ Uc-forum
0
Kutip
Balas