Thread: Cham help!

Results 1 to 15 of 15
  1. #1
    surpresso34's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    5
    My Mood
    Inspired

    Cham help!

    Hi all,

    I'm new to the hacking scene and was wondering if I could get some help with the chams i'm coding in c++

    My dilemma is that I have to define the "teams" that combat arms uses.

    here is the code


    Code:
    void Hacks::ApplyWallHack(IDirect3DDevice9 *d3dDevice, D3DPRIMITIVETYPE device, INT baseVertexIndex, UINT MinVertexIndex, UINT Numvertices, UINT startIndex, UINT primCount);
    
    {
    	if(/*team*/)
    	{
    
    		d3dDevice->SetRenderState(D3DRS_ZENABLE, false);
    		d3dDevice->SetTexture(0, texGreen);
    		d3dDevice->DrawIndexedPrimitive(Device, baseVertexIndex, MinVertexIndex, Numvertices, startIndex, primCount);
    		d3dDevice->SetRenderState(D3DRS_ZENABLE, true);
    	}
    
    	if(/*team*/)
    	{
    		d3dDevice->SetRenderState(D3DRS_ZENABLE, false);
    		d3dDevice->SetTexture(0, texRed);
    		d3dDevice->DrawIndexedPrimitive(Device, baseVertexIndex, MinVertexIndex, Numvertices, startIndex, primCount);
    		d3dDevice->SetRenderState(D3DRS_ZENABLE, true);
    	}
    
    
    
    }
    If I can find out the code name or tag or whatever the game uses to define different teams then I will be able to hopefully finish the chams .



    Help is very much appreciated as I am extremely new to C++ and am following a tutorial. Any constructive criticism that help me is appreciated.


    Thanks

  2. #2
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    805
    Reputation
    125
    Thanks
    1,794
    My Mood
    Doh
    What if there is a member from each team in the scene that is getting drawn?

    you can use different strides to determine what type of player and change the chams colour based on that, but as for teams.....


    P.s
    I made a strides detector some time ago for combat arms, I think I posted it in the forum somewhere incase you need it
    Last edited by Departure; 12-06-2012 at 08:42 PM.
    DJector.Lite
    Get the advantages of new injection technology, with 1 click easy to use injector, work for all platforms x86/x64

    Download

    D-Jector
    Get the most advanced and full featured injector around, works for any game and any platform x86/x64, nothing comes even close.
    Download

  3. The Following User Says Thank You to Departure For This Useful Post:

    surpresso34 (12-07-2012)

  4. #3
    -Bl00d-'s Avatar
    Join Date
    Sep 2011
    Gender
    female
    Location
    Imma girl what about it?
    Posts
    481
    Reputation
    10
    Thanks
    53
    My Mood
    Twisted
    #define Team1 (Friend)
    #define Team2 (Enemy)

    how is the engine going to know which to color?
    from the code here both are labeled as "team"
    engine wont know which team your talking about,


    make sure your hook DIP.
    and add your code to check if their friendly or not.
    this isnt on point code just pseudo.
    but should work, idk if it still does i dont use colored chams


    #define Team1 (Friend)
    #define Team2 (Enemy)

    If (Team1)
    {

    d3dDevice->SetRenderState(D3DRS_ZENABLE, false);
    d3dDevice->SetTexture(0, texGreen);
    d3dDevice->DrawIndexedPrimitive(Device, baseVertexIndex, MinVertexIndex, Numvertices, startIndex, primCount);
    d3dDevice->SetRenderState(D3DRS_ZENABLE, true);
    }

    else //Team2
    {
    d3dDevice->SetRenderState(D3DRS_ZENABLE, false);
    d3dDevice->SetTexture(0, texRed);
    d3dDevice->DrawIndexedPrimitive(Device, baseVertexIndex, MinVertexIndex, Numvertices, startIndex, primCount);
    d3dDevice->SetRenderState(D3DRS_ZENABLE, true);
    }



    }




    Last edited by -Bl00d-; 12-07-2012 at 01:57 PM.
    Successful buys: 20
    Successful sells: 4
    Successful trades: 9
    Scammed: 4

     
    https://www.mpgh.net/forum/490-vouches/560562-vouches.html

    ^^^^^^^^^^^
    vouche for me?

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

    surpresso34 (12-07-2012)

  6. #4
    Acea's Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Home of the elks
    Posts
    346
    Reputation
    80
    Thanks
    2,216
    My Mood
    Stressed
    Teams are definitions, But first i'm guessing that code is from a COD dip or other game, because combat arms doesn't base there strides off teams, its based of character models. So let me offer some help in the code presented so you may learn. Before anything you have to understand there are 3 parts to a DIP: Strides, Primitive count and Number of vertices; together theses 3 create our model recognition system and defines what we will overlay. With that being said lets work with your code, Please follow the images below, if your still confused ask me via PM or MSN.

    [IMG]https://i1091.photobucke*****m/albums/i400/ghosthuner78/original.png[/IMG]
    [IMG]https://i1091.photobucke*****m/albums/i400/ghosthuner78/step1.png[/IMG]
    [IMG]https://i1091.photobucke*****m/albums/i400/ghosthuner78/2-1.png[/IMG]
    [IMG]https://i1091.photobucke*****m/albums/i400/ghosthuner78/3-1.png[/IMG]

  7. The Following User Says Thank You to Acea For This Useful Post:

    surpresso34 (12-07-2012)

  8. #5
    surpresso34's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    5
    My Mood
    Inspired
    Wow I didn't expect this kind of help . Thankyou all for helping me out, i'm only new to hacking but am understanding it now! Hopefully once I start to improve ill be releasing a few things. the only thing im really struggling with now is d3d bases d3d menus and adding the actual hook into them.

    Thankyou all

  9. #6
    Acea's Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Home of the elks
    Posts
    346
    Reputation
    80
    Thanks
    2,216
    My Mood
    Stressed
    Quote Originally Posted by surpresso34 View Post
    Wow I didn't expect this kind of help . Thankyou all for helping me out, i'm only new to hacking but am understanding it now! Hopefully once I start to improve ill be releasing a few things. the only thing im really struggling with now is d3d bases d3d menus and adding the actual hook into them.

    Thankyou all
    Although i am new to THIS forum i'm not a noob to hacking, If you ever need help or struggle send a PM my way and ill help you the best i can, I best with DirectX and memory but i can certainly do more than that

  10. #7
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    805
    Reputation
    125
    Thanks
    1,794
    My Mood
    Doh
    Good explanation Acea, This is exactly what I was trying to ask him, you can't define teams for chams, it has to be model based, both teams can have the same model/character, I did see a topic some where with all the character strides, verticals, primitives for each character which is handy but still not used to determine teams..
    DJector.Lite
    Get the advantages of new injection technology, with 1 click easy to use injector, work for all platforms x86/x64

    Download

    D-Jector
    Get the most advanced and full featured injector around, works for any game and any platform x86/x64, nothing comes even close.
    Download

  11. The Following User Says Thank You to Departure For This Useful Post:

    Acea (12-12-2012)

  12. #8
    -Bl00d-'s Avatar
    Join Date
    Sep 2011
    Gender
    female
    Location
    Imma girl what about it?
    Posts
    481
    Reputation
    10
    Thanks
    53
    My Mood
    Twisted
    Quote Originally Posted by Departure View Post
    Good explanation Acea, This is exactly what I was trying to ask him, you can't define teams for chams, it has to be model based, both teams can have the same model/character, I did see a topic some where with all the character strides, verticals, primitives for each character which is handy but still not used to determine teams..
    Mine work from teams.
    i use alpha/bravo
    to render different colors for teams
    Successful buys: 20
    Successful sells: 4
    Successful trades: 9
    Scammed: 4

     
    https://www.mpgh.net/forum/490-vouches/560562-vouches.html

    ^^^^^^^^^^^
    vouche for me?

  13. #9
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    805
    Reputation
    125
    Thanks
    1,794
    My Mood
    Doh
    but the either teams can have the same model, so how did you tell the differences?
    DJector.Lite
    Get the advantages of new injection technology, with 1 click easy to use injector, work for all platforms x86/x64

    Download

    D-Jector
    Get the most advanced and full featured injector around, works for any game and any platform x86/x64, nothing comes even close.
    Download

  14. #10
    -Bl00d-'s Avatar
    Join Date
    Sep 2011
    Gender
    female
    Location
    Imma girl what about it?
    Posts
    481
    Reputation
    10
    Thanks
    53
    My Mood
    Twisted
    Quote Originally Posted by Departure View Post
    but the either teams can have the same model, so how did you tell the differences?
    the same way
    as i do "enemy only" ESP
    first check what team your on.
    mark your team as 1
    other team as 2
    =
    different colors.
    Successful buys: 20
    Successful sells: 4
    Successful trades: 9
    Scammed: 4

     
    https://www.mpgh.net/forum/490-vouches/560562-vouches.html

    ^^^^^^^^^^^
    vouche for me?

  15. #11
    Acea's Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Home of the elks
    Posts
    346
    Reputation
    80
    Thanks
    2,216
    My Mood
    Stressed
    Quote Originally Posted by -Bl00d- View Post


    the same way
    as i do "enemy only" ESP
    first check what team your on.
    mark your team as 1
    other team as 2
    =
    different colors.
    Well that's not even the point of this thread, He was asking how to create chams, not how to definitively Identify teams. If we wanted to ID teams why even paint your own players? To ID teams just use esp... And Btw i don't think you understand how a DIP hook works.... You can't use ESP to mark players, it draws via Models, Models are ID'd based upon there Strides, Vertices, and primCount. Using ESP to tell it if a players one or two simply won't work as it coats anything with the Model definition regardless if you id it.

    To do what your talking about would require something other than a DIP(But its not impossible).

  16. #12
    -Bl00d-'s Avatar
    Join Date
    Sep 2011
    Gender
    female
    Location
    Imma girl what about it?
    Posts
    481
    Reputation
    10
    Thanks
    53
    My Mood
    Twisted
    Quote Originally Posted by Acea View Post
    Well that's not even the point of this thread, He was asking how to create chams, not how to definitively Identify teams. If we wanted to ID teams why even paint your own players? To ID teams just use esp... And Btw i don't think you understand how a DIP hook works.... You can't use ESP to mark players, it draws via Models, Models are ID'd based upon there Strides, Vertices, and primCount. Using ESP to tell it if a players one or two simply won't work as it coats anything with the Model definition regardless if you id it.

    To do what your talking about would require something other than a DIP(But its not impossible).
    you clearly have not understood anything.
    he was asking how i tell the difference.
    i just answered his questions,
    i define my teams with chams the same way i do with my ESP
    Successful buys: 20
    Successful sells: 4
    Successful trades: 9
    Scammed: 4

     
    https://www.mpgh.net/forum/490-vouches/560562-vouches.html

    ^^^^^^^^^^^
    vouche for me?

  17. #13
    supremejean's Avatar
    Join Date
    Jun 2012
    Gender
    female
    Posts
    32
    Reputation
    10
    Thanks
    8
    Quote Originally Posted by -Bl00d- View Post


    the same way
    as i do "enemy only" ESP
    first check what team your on.
    mark your team as 1
    other team as 2
    =
    different colors.

    Hes right though, doing what you said is impossible, you can define the teams like that yes, but you cant just apply a texture to that define. In the end you will always have to set it to the model recognition, and that will color every single item in that stride, num vertices, ect. regardless of that define.

  18. The Following User Says Thank You to supremejean For This Useful Post:

    Acea (12-12-2012)

  19. #14
    Acea's Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Home of the elks
    Posts
    346
    Reputation
    80
    Thanks
    2,216
    My Mood
    Stressed
    Quote Originally Posted by -Bl00d- View Post


    you clearly have not understood anything.
    he was asking how i tell the difference.
    i just answered his questions,
    i define my teams with chams the same way i do with my ESP
    I get what your saying and yes you can separate teams that way, but all that i'm saying is regardless of if you separate them it will still pain everything in the scope of the model regardless of definition.

    So yes your right, thats how you ID them, but no your wrong that's not how you paint independent colors.

  20. #15
    -Bl00d-'s Avatar
    Join Date
    Sep 2011
    Gender
    female
    Location
    Imma girl what about it?
    Posts
    481
    Reputation
    10
    Thanks
    53
    My Mood
    Twisted
    Quote Originally Posted by Acea View Post
    I get what your saying and yes you can separate teams that way, but all that i'm saying is regardless of if you separate them it will still pain everything in the scope of the model regardless of definition.

    So yes your right, thats how you ID them, but no your wrong that's not how you paint independent colors.
    oh yeah i knwo that lol
    he was just asking ow i defined teams
    Successful buys: 20
    Successful sells: 4
    Successful trades: 9
    Scammed: 4

     
    https://www.mpgh.net/forum/490-vouches/560562-vouches.html

    ^^^^^^^^^^^
    vouche for me?

Similar Threads

  1. Chamming help please!!
    By p8in in forum Combat Arms Hacks & Cheats
    Replies: 7
    Last Post: 01-25-2009, 04:10 AM
  2. cham help
    By braaaap in forum Combat Arms Hacks & Cheats
    Replies: 1
    Last Post: 10-27-2008, 02:43 PM
  3. Need Cham Help
    By mjq20 in forum Combat Arms Hacks & Cheats
    Replies: 4
    Last Post: 09-15-2008, 04:39 PM
  4. Chams Help
    By Humpjones in forum Combat Arms Hacks & Cheats
    Replies: 2
    Last Post: 08-07-2008, 05:46 PM
  5. CHAMS HELP!!
    By bigfoot in forum Combat Arms Hacks & Cheats
    Replies: 12
    Last Post: 08-07-2008, 10:29 AM