C++ See Players through walls

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Code:
HRESULT proxyIDirect3DDevice9::DrawIndexedPrimitive ( D3DPRIMITIVETYPE PrimitiveType, INT BaseVertexIndex,
													  UINT MinVertexIndex, UINT NumVertices, UINT startIndex,
													  UINT primCount )
{
	DWORD	dwRet_addr = ( DWORD ) _ReturnAddress();
	
//////////////////////////////////////////////////////////////////
if (bTroughtWalls && !cheat_state->_generic.cheat_panic_enabled)
	{

		// actors
		if (dwRet_addr == 0x761142)
		{
			origIDirect3DDevice9->SetRenderState(D3DRS_ZENABLE, false);

			// actor behind wall
			origIDirect3DDevice9->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
			origIDirect3DDevice9->DrawIndexedPrimitive(PrimitiveType, BaseVertexIndex, MinVertexIndex, NumVertices,
				startIndex, primCount);

			// actor infront wall
			origIDirect3DDevice9->SetRenderState(D3DRS_ZENABLE, true);
			origIDirect3DDevice9->DrawIndexedPrimitive(PrimitiveType, BaseVertexIndex, MinVertexIndex, NumVertices,
				startIndex, primCount);
			return origIDirect3DDevice9->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
		}
	}
///////////////////////////////////////////////////////////////////

	return origIDirect3DDevice9->DrawIndexedPrimitive( PrimitiveType, BaseVertexIndex, MinVertexIndex, NumVertices,
													   startIndex, primCount );
}
here see how it looks  https://s33.postimg.cc/5966ix1u7/sa-mp-296.png  
cool stuff :3
 

ini

Well-known member
Joined
Sep 28, 2015
Messages
321
Reaction score
115
RE: C++ See Players trough walls

pro hax0r :/
 

Safa

Well-known member
Joined
Feb 24, 2015
Messages
342
Reaction score
127
RE: C++ See Players trough walls

bro what is trough?
 
Top