Results 1 to 8 of 8

Threaded View

  1. #1
    ~GameFrance-ZicoS77~'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    93
    My Mood
    Cool

    Functions PBlackout Direct3D

    Funtions PBlackout Direct 3D By ZicoS77 (GameFrance)



    //WireFrame//Not Debug//

    if(opt.d3d.wirefame)
    {
    if(m_Stride == 36 || 32)
    {
    pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);
    }
    }
    //GlassWall//

    if (opt.d3d.GlassWall)
    {
    if(m_Stride == 36 || 32)
    {
    pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
    }
    else
    {
    pDevice->SetRenderState(D3DRS_ZENABLE, TRUE);
    }
    }
    //NoFog//

    if (opt.d3d.nofog)
    {
    pDevice->SetRenderState(D3DRS_FOGENABLE, false);
    }
    //QWall//

    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

    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//

    if(opt.d3d.pointmode)
    {
    if(m_Stride == 36)
    {
    pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_POINT);
    }
    }
    //CrossHair//
    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//

    if(opt.d3d.WallHack)
    {
    if(m_Stride == 36)
    {
    pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
    }
    else
    {
    pDevice->SetRenderState(D3DRS_ZENABLE, TRUE);
    }
    //FullBright//

    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);
    }
    Cordially ZicoS77

  2. The Following 3 Users Say Thank You to ~GameFrance-ZicoS77~ For This Useful Post:

    johnpp (11-12-2011),KissU (11-13-2011),N89lx (12-01-2011)

Similar Threads

  1. Using GDI functions on hooked Direct3D applications?
    By ThePro in forum General Game Hacking
    Replies: 1
    Last Post: 07-22-2010, 04:46 PM
  2. hack function idea
    By l0ngcat in forum WarRock - International Hacks
    Replies: 6
    Last Post: 10-02-2007, 06:01 AM
  3. Direct3D sprites
    By arunforce in forum C++/C Programming
    Replies: 23
    Last Post: 09-16-2007, 01:18 AM
  4. Replies: 8
    Last Post: 07-09-2007, 03:15 PM
  5. Disable some of punkbuster's functions.
    By System79 in forum Game Hacking Tutorials
    Replies: 3
    Last Post: 09-06-2006, 11:32 PM