Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Problem with Chams ; /


    weest
     Share

    Recommended Posts

    Hello all!

    I have problem with chams in my d3d hack.

     

    if(CH_chams)
    {
    if(m_Stride==44 && chamstype)
    {
    pDevice->SetRenderState(D3DRS_ZENABLE,false);
    
    if(chamstype==1){//Phantom Chams
    pDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,true);
    pDevice->SetRenderState(D3DRS_DESTBLEND,D3DBLEND_INVDESTCOLOR);
    pDevice->SetRenderState(D3DRS_SRCBLEND,D3DBLEND_INVSRCALPHA);
    }
    if(chamstype==2){//Ghost Chams
    pDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,true);
    pDevice->SetRenderState(D3DRS_DESTBLEND,D3DBLEND_INVDESTCOLOR);
    pDevice->SetRenderState(D3DRS_SRCBLEND,D3DBLEND_INVSRCCOLOR);
    }
    if(chamstype==3){//Solid
    pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
    }
    if(chamstype==4){//Textureless
    pDevice->SetRenderState(D3DRS_ZENABLE,false);
    pDevice->SetRenderState(D3DRS_LIGHTING, true);
    pDevice->SetRenderState(D3DRS_SHADEMODE, D3DSHADE_FLAT);
    pDevice->SetRenderState(D3DRS_FOGENABLE, false);
    }
    if(chamsnonvisible==0)pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255, 255, 0, 0));//Red
    if(chamsnonvisible==1)pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255, 0, 0, 255));//Blue
    if(chamsnonvisible==2)pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255, 0, 255,0));//Green
    if(chamsnonvisible==3)pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255, 255, 255, 255));//White
    if(chamsnonvisible==4)pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255, 0, 0, 0));//Black
    //pDrawIndexedPrimitive(pDevice,pType,nMinIndex, nNumVertices, nStartIndex, nPrimitiveCount);
    pDevice->SetRenderState(D3DRS_ZENABLE,true);
    if(chamsvisible==0)pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255, 255, 0, 0));//Red
    if(chamsvisible==1)pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255, 0, 0, 255));//Blue
    if(chamsvisible==2)pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255, 0, 255, 0));//Green
    if(chamsvisible==3)pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255, 255, 255, 255));//White
    if(chamsvisible==4)pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255, 0, 0, 0));//Black
    }
    }

     

    its dont work in warrock ; /

    whats wrong? maybe in menu?

    there is some menu code:

     Dostrix->AddFolder("D3D", Moptfolder, &Folders.folder6, 2);
     if(Folders.folder6)
     {
      Dostrix->AddItem("Chams"			, ChamsType , &CH_chams		,5 );
      if(CH_chams)
      {
    	  Dostrix->AddItem("	Color 1" , Chams		, &chamsnonvisible		,6 );
    	  Dostrix->AddItem("	Color 2" , Chams		, &chamsvisible		,6 );
      }

    Link to comment
    Share on other sites

    • 2 weeks later...
    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...