D3D No Smoke COD4 :P

Code:
HRESULT WINAPI DrawIndexedPrimitive_Detour(LPDIRECT3DDEVICE9 Device_Interface, D3DPRIMITIVETYPE Type, INT BaseIndex, 
                                           UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount)
{
	LPDIRECT3DVERTEXBUFFER9 Stream_Data;
	PDWORD IsInGame = 
		(PDWORD)0x0074E35C;
	D3DVIEWPORT9 Vwp;
	UINT Offset = 0;
	UINT Stride = 0;

	if(Device_Interface->GetStreamSource(0, &Stream_Data, &Offset, &Stride) == D3D_OK)
		Stream_Data->Release();

	Device_Interface->GetViewport( &Vwp );

	if( NumVertices == 16384 && StartIndex && PrimitiveCount && *IsInGame && Stride == 32 )
	{
		return D3D_OK;
	}

  return DrawIndexedPrimitive_Pointer(Device_Interface, Type, BaseIndex, MinIndex, NumVertices, StartIndex, PrimitiveCount);
}