Funtions PBlackout Direct 3D By ZicoS77 (GameFrance)
//WireFrame//Not Debug//
Quote:
if(opt.d3d.wirefame)
{
if(m_Stride == 36 || 32)
{
pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);
}
}
//GlassWall//
Quote:
if (opt.d3d.GlassWall)
{
if(m_Stride == 36 || 32)
{
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
}
else
{
pDevice->SetRenderState(D3DRS_ZENABLE, TRUE);
}
}
//NoFog//
Quote:
if (opt.d3d.nofog)
{
pDevice->SetRenderState(D3DRS_FOGENABLE, false);
}
//QWall//
Quote:
if(opt.d3d.QWalls)
{
if(m_Stride == 40,44)
{
pDevice->SetRenderState(D3DRS_ZENABLE,false);
pDevice->SetRenderState(D3DRS_LIGHTING, true);
pDevice->SetRenderState(D3DRS_SHADEMODE, D3DSHADE_GOURAUD);
pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,128,128,128));
}
}
//Hippy
Quote:
if(opt.d3d.Hippy)
{
if(m_Stride == 40,44)
{
pDevice->SetRenderState(D3DRS_ZENABLE,false);
pDevice->SetRenderState(D3DRS_LIGHTING, true);
pDevice->SetRenderState(D3DRS_SHADEMODE, D3DSHADE_FLAT);
pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,255,125,0));
}
}
//Point Mode//Not Debug//
Quote:
if(opt.d3d.pointmode)
{
if(m_Stride == 36)
{
pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_POINT);
}
}
//CrossHair//
Quote:
if (opt.d3d.CrossHair==1)
{
int x = ( GetSystemMetrics( 0 ) / 2);
int y = ( GetSystemMetrics( 1 ) / 2);
D3DRECT rec = { x - 10, y, x + 10, y + 1};
D3DRECT rec2 = { x, y - 10, x + 1, y + 10};
pDevice->Clear(1, &rec, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255, 255, 0, 0), 0, 0); //Red
pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255, 255, 0, 0), 0, 0); //Red
}
//WallHack//
Quote:
if(opt.d3d.WallHack)
{
if(m_Stride == 36)
{
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
}
else
{
pDevice->SetRenderState(D3DRS_ZENABLE, TRUE);
}
//FullBright//
Quote:
if (opt.d3d.FullBright)
{
pDevice->SetRenderState(D3DRS_LIGHTING, false);
pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,255,255,255));
}
else
{
pDevice->SetRenderState(D3DRS_AMBIENT, false);
}