Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    [H]aaBX's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    277
    Reputation
    23
    Thanks
    1,085
    My Mood
    Asleep

    Useful D3D9 Functions



    I were bored.

    Wallhack

    Code:
    void Wallhack( LPDIRECT3DDEVICE9 D3DDEVICE, DWORD VALUE )
    {
    	D3DDEVICE->SetRenderState( D3DRS_ZENABLE, VALUE );
    }
    FullBright
    Code:
    void FullBright( LPDIRECT3DDEVICE9 D3DDEVICE, DWORD VALUE )
    {
    	D3DDEVICE->SetRenderState( D3DRS_LIGHTING, VALUE ); 
    }
    Fillmode
    Code:
    void Fillmode( LPDIRECT3DDEVICE9 D3DDEVICE, DWORD FILLMODE )
    {
    	D3DDEVICE->SetRenderState( D3DRS_FILLMODE, FILLMODE );
    }
    Chams
    Code:
    void Chams( LPDIRECT3DDEVICE9 D3DDEVICE, DWORD COLOR )
    {
    	D3DDEVICE->SetRenderState( D3DRS_AMBIENT, COLOR );
    }
    Instant Chams
    Code:
    void InstantChams( LPDIRECT3DDEVICE9 D3DDEVICE, LPDIRECT3DTEXTURE9 tCOLOR, DWORD COLOR )
    {
    	GenerateTexture( D3DDEVICE, &tCOLOR, COLOR );
    	D3DDEVICE->SetTexture( 0, tCOLOR );
    }

    Usage
    Code:
    /*Wallhack*/
    Wallhack( pDevice, D3DZB_FALSE );
    
    /*FullBright*/
    FullBright( pDevice, D3DZB_FALSE );
    
    /*Fillmode*/
    FullBright( pDevice, D3DFILL_WIREFRAME ); //You even can use Point etc.
    
    /*Chams*/
    Chams( pDevice, Red );
    
    /*Instant Chams*/
    InstantChams( pDevice, tYellow, Yellow );//Define tYellow like that: LPDIRECT3DTEXTURE9 tYellow;
    Please NOTE:
    The Instant Chams Function requires another function, too.( GenerateTexture )

     
    Credits for that @azorbix
    Code:
    HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
    {
        if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)) )
            return E_FAIL;
         
        WORD colour16 =    ((WORD)((colour32>>28)&0xF)<<12)
                |(WORD)(((colour32>>20)&0xF)<<8)
                |(WORD)(((colour32>>12)&0xF)<<4)
                |(WORD)(((colour32>>4)&0xF)<<0);
     
        D3DLOCKED_RECT d3dlr;    
        (*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
        WORD *pDst16 = (WORD*)d3dlr.pBits;
     
        for(int xy=0; xy < 8*8; xy++)
            *pDst16++ = colour16;
     
        (*ppD3Dtex)->UnlockRect(0);
     
        return S_OK;
    }


    Here are a few screenshots





    Credits:
    UnlimitedCheating


    Thanks @Scynix for this awesome picture
     


  2. The Following 7 Users Say Thank You to [H]aaBX For This Useful Post:

    3D (12-22-2012),DarkPladin (12-23-2012),dreek1 (12-23-2012),FooChaos (01-22-2013),Intellectual (12-22-2012),Pronome191 (12-24-2012),Scynix (12-22-2012)

  3. #2
    3D's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    In The World :P
    Posts
    1,007
    Reputation
    134
    Thanks
    14,170
    My Mood
    Amazed
    Thanks & GoodJop

  4. #3
    Scynix's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    173
    Reputation
    37
    Thanks
    611
    My Mood
    Happy
    Good Job

  5. The Following User Says Thank You to Scynix For This Useful Post:

    [H]aaBX (12-22-2012)

  6. #4
    sobasoba13's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    So Far Away
    Posts
    1,145
    Reputation
    23
    Thanks
    1,607
    My Mood
    Relaxed
    Good Job
    Thx
    Crossfire Projects
    Made 21 Feature (Memory Hack)
    Respect List
    @ComboDance
    @mamo007
    @GaaD
    @Olwayy
    @Biesi
    @iSmexy
    @derh.acker
    @Brimir
    @steveroseik
    @Hero
    @Temperrr
    @Rullez
    PressIF I Helped

  7. #5
    tynab's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    382
    Reputation
    10
    Thanks
    1,168
    My Mood
    Blah
    Yo , how to use this xD ? just copy-paste ?

    New Windows 8 Injector!
    Newest Windows 8 Injector (Fast and very X-Mas) !
    My web browser for computer . Selling how to make that for 30 $ or less


  8. #6
    ~FALLEN~'s Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    devenv.exe
    Posts
    529
    Reputation
    23
    Thanks
    328
    My Mood
    Inspired
    Not a good job... you have memory leaks, fail job...

  9. The Following 4 Users Say Thank You to ~FALLEN~ For This Useful Post:

    3D (12-23-2012),Cory2512 (12-24-2012),Ende! (12-29-2012),lucifereviluser (12-23-2012)

  10. #7
    lucifereviluser's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    105
    Reputation
    19
    Thanks
    50
    Agree with fallen

  11. #8
    O conhecimento é o caminho para liberdade.
    MPGH Member
    dreek1's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    localhost
    Posts
    1,171
    Reputation
    74
    Thanks
    1,264
    My Mood
    In Love
    Nice!!!!!!
    Public Hack:
    Jun 2012 / Dec 2017

  12. #9
    ulti.koko's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    MPGH crossfire hacks section
    Posts
    558
    Reputation
    28
    Thanks
    1,133
    My Mood
    Aggressive
    Nice But I Feel That I Saw This Codes Before.........Never Mind Good JoB @[H]aaBX
    And Thanks For Sharing
    REP ME IF YOU LIKE MY WORK

    AND

    SAY THANKS IF I HELPED

    IF YOU WANT ANY GRAPHIC DESIGNS OR WANT A HELP PM ME


  13. #10
    [H]aaBX's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    277
    Reputation
    23
    Thanks
    1,085
    My Mood
    Asleep
    @ulti.koko are you kidding me ?
    I made them yesterday bcs I were bored

    Thanks @Scynix for this awesome picture
     


  14. #11
    Cory2512's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    23
    Quote Originally Posted by ~FALLEN~ View Post
    Not a good job... you have memory leaks, fail job...
    Agreed ^

    Also this shit has been posted many times before .... getting bored of this section now

  15. #12
    Tele1337's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    err0r lollll

  16. #13
    Intellectual's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    GDI
    Posts
    5,389
    Reputation
    785
    Thanks
    16,093
    My Mood
    Yeehaw
    Quote Originally Posted by Tele1337 View Post
    err0r lollll
    wtf are you talking about lol

  17. #14
    thryebac's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    many places
    Posts
    181
    Reputation
    10
    Thanks
    1,847
    do someone know how to make D3D hack work on WIN8 ??
    this is for wiin7
    Code:
     // Windows 7
                            DIPD3D9 = FindPattern( hD3D,
                                    0x128000,
                                    ( PBYTE )"\xC3\x90\x90\x90\x90\x90\x8B\xFF\x55\x8B\xEC\x5D\xEB\x05\x90\x90\x90\x90\x90\x8B\xFF\x55\x8B\xEC\x6A\xFF",
                                    "xxxxxxxxxxxxxxxxxxxxxxxxxx" );
    .
    .
    .
    so how i make this work on win8 ??
    tnx for help and sry for bad eng.

  18. #15
    MagicWar's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    In My Hack Base
    Posts
    151
    Reputation
    10
    Thanks
    2,041
    My Mood
    Asleep
    Good Jop @haabx

    Contact Me!
     
    abdo_zeyad20111@yahoo.com


     
    MagicarCrossFire

    My Project List

    Make Simble Hack()
    Make 3 Features Hack()
    Make Hack 10 Feat()
    Make Hack 15 Feat()
    Makeing Hot Keys()
    Makeing D3D Menu()
    Makeing VIP Hack()Done 70%

    -------------------------------------------------
    Leecher: 0 ()
    Choob: 25 ()
    Newbie: 50 ()
    Member: 100 ()
    Advanced Member: 150 ()
    Dual-Keyboard Member: 250 ()
    Expert Member: 500 ()
    Bobo's Trainer: 750 ()
    MPGH Expert: 1000 ()
    Synthetic Hacker: 1250 ()
    Blackhat Hacker: 1500 ()
    Whitehat Hacker: 2000 ()
    Bobo's Guardian: 2500 ()
    Upcoming MPGHiean: 3000 ()
    MPGH Addict: 3500 ()
    MPGHiean: 4000 ()
    MPGH Knight: 4500 ()
    MPGH Lord: 5000 ()
    MPGH Champion: 5500 ()
    MPGH King: 6000 ()
    MPGH Legend: 6500 ()
    MPGH God: 7000 ()

    MPGH God II: 7500 ()
    MPGH God III: 8000 ()
    MPGH God IV: 8500 ()
    MPGH God V: 9000 ()
    Arun's Slave: 9500 ()
    Dave's Slave: 10000 ()

Page 1 of 2 12 LastLast

Similar Threads

  1. [Source Code] Useful D3D9/C++ Info, Functions, Cham Alternations, and more!
    By CodeDemon in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 137
    Last Post: 10-15-2012, 04:48 PM
  2. [help]Highlighting by using a function?
    By nathanael890 in forum Visual Basic Programming
    Replies: 1
    Last Post: 10-26-2010, 12:15 AM
  3. Some Useful D3D Functions ( Must have someknowledge )
    By gcflames12 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 22
    Last Post: 08-19-2010, 08:28 AM
  4. Some Useful D3D Functions ( Must have someknowledge )
    By gcflames12 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 3
    Last Post: 08-19-2010, 07:22 AM
  5. Using GDI functions on hooked Direct3D applications?
    By ThePro in forum General Game Hacking
    Replies: 1
    Last Post: 07-22-2010, 04:46 PM