Results 1 to 14 of 14
  1. #1
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy

    DirectX Overlay Menu (ComplX Multihack)

    Ok so i said that i was going to be releasing the source code to my menu in this thread. So here it is
    Image

    Requirements
    DirectX 9 SDK (June 2010) - check here
    Knowledge of c++
    C++ IDE
    Dank Memes
    Q&A
    Q: Why U Release This?
    A: @Hunter is my dad and he thinks my gui is sexy
    Q: How 2 Use?
    A: Learn C++

    Virus Scans
    https://www.virustotal.com/en/file/f...is/1464162115/
    https://virusscan.jotti.org/en-US/fi...job/1jvvpak6uv


    <b>Downloadable Files</b> Downloadable Files
    Last edited by Hunter; 05-25-2016 at 01:43 AM. Reason: Added the virus scans.


     

    Steam-TriggeredFemenazi
    CS:GO Rank-MG (but I'm a dirty cheater so who cares)
    Discord-ImWhacky#6260

    P.M. me if you have any questions.


  2. The Following 67 Users Say Thank You to ImWhacky For This Useful Post:

    A british taco (05-15-2018),askface (05-25-2016),awfully666 (06-04-2016),AzrahExternal (09-27-2023),Baza2k22 (09-26-2022),BestPasted (02-24-2020),Brian Amado (12-26-2019),Bude4545 (08-11-2019),bydesing (10-07-2016),CatInTh3Hat (07-11-2016),Chewy (01-07-2018),damianst2001 (05-27-2016),David95654 (06-28-2017),DjRussia (05-30-2016),Draig9 (09-19-2016),dwerk (03-02-2018),evans2517 (03-27-2017),F4DE (05-25-2016),fu4re (02-25-2019),fwsefwsgrgwhergr (06-28-2016),fyryNy (05-27-2016),gially96 (08-21-2018),Gmrookie (05-08-2022),godlvl (05-25-2016),HaXiNgRuLeZ (09-19-2016),HorseFighter (02-01-2018),ichkannesgut211 (11-14-2017),JamesBandera (08-01-2016),JURVET (07-06-2017),kamerondev (02-19-2018),kittichaisulapol_-*/ (01-26-2019),Leacher2019 (01-22-2019),LoonyRules1 (05-27-2016),mambobgt (07-19-2017),Mehdi-RaTo (01-17-2018),MGaming47 (01-12-2019),minershock (05-30-2016),miniLua (08-02-2017),Miserykk (05-20-2023),mitchwardle1997 (12-31-2017),natthanun (08-10-2016),noise9999 (02-26-2017),NoxAtra (06-08-2021),Nr0Pb (09-19-2017),nycrom (06-11-2016),obnoxiouscsgo (09-26-2016),panu14101 (05-08-2019),Paradise2509 (10-29-2016),Predator42 (06-07-2017),ras02 (12-15-2017),Rostu (09-29-2018),SADFI2259X (02-06-2023),saeedoooo (05-29-2019),savagEPlayer (05-28-2016),Slimig (03-28-2019),sobasoba13 (10-11-2016),sweatyshelf1 (05-27-2016),The4byssWacther (03-27-2019),TheWrecker (08-18-2018),Tiiiiimooo (03-10-2017),Tommex (07-11-2020),wknik (01-30-2018),xboxbro (05-25-2016),xiao135140 (05-28-2016),Xplorer86 (02-21-2017),yadob (03-30-2018),zafert (08-10-2019)

  3. #2
    diamondcoding's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    67
    Reputation
    14
    Thanks
    646
    My Mood
    Amused
    Very cool, hopefully not to many C&P.

  4. #3
    Hunter's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Depths Of My Mind.
    Posts
    17,468
    Reputation
    3771
    Thanks
    6,159
    My Mood
    Cheerful
    So I have a new son. Welcome to the family.

    /Approved. Post back results and as always, use at your own risk.

  5. #4
    iTzCode's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Location
    idk.dll
    Posts
    72
    Reputation
    10
    Thanks
    29
    My Mood
    Relaxed
    Good worke !

  6. The Following User Says Thank You to iTzCode For This Useful Post:

    ImWhacky (05-25-2016)

  7. #5
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by diamondcoding View Post
    Very cool, hopefully not to many C&P.
    This menu was made using grab's external base only. I made some custom directx drawings and every part of the menu is made 100% by me from scratch

    - - - Updated - - -

    Quote Originally Posted by Hunter View Post
    So I have a new son. Welcome to the family.

    /Approved. Post back results and as always, use at your own risk.
    Thanks dad //2short


     

    Steam-TriggeredFemenazi
    CS:GO Rank-MG (but I'm a dirty cheater so who cares)
    Discord-ImWhacky#6260

    P.M. me if you have any questions.


  8. The Following User Says Thank You to ImWhacky For This Useful Post:

    diamondcoding (05-25-2016)

  9. #6
    F4DE's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Location
    The Netherlands
    Posts
    158
    Reputation
    10
    Thanks
    973
    Thanks for sharing! Design looks awesome, clean / modern

  10. #7
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by F4DE View Post
    Thanks for sharing! Design looks awesome, clean / modern
    No problem


     

    Steam-TriggeredFemenazi
    CS:GO Rank-MG (but I'm a dirty cheater so who cares)
    Discord-ImWhacky#6260

    P.M. me if you have any questions.


  11. #8
    diamondcoding's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    67
    Reputation
    14
    Thanks
    646
    My Mood
    Amused
    Quote Originally Posted by ImWhacky View Post
    This menu was made using grab's external base only. I made some custom directx drawings and every part of the menu is made 100% by me from scratch

    - - - Updated - - -



    Thanks dad //2short
    Not C&P from you good sir. I mean people leeching your source. The menu is clean and sexy. The source is clean as well.

  12. #9
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by diamondcoding View Post
    Not C&P from you good sir. I mean people leeching your source. The menu is clean and sexy. The source is clean as well.
    Ah, well Idc if they copy pasta, that's what the source is for. Hopefully they credit me and grab tho if they do use it to make it public


     

    Steam-TriggeredFemenazi
    CS:GO Rank-MG (but I'm a dirty cheater so who cares)
    Discord-ImWhacky#6260

    P.M. me if you have any questions.


  13. #10
    Yemiez's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Sweden
    Posts
    2,566
    Reputation
    731
    Thanks
    16,279
    My Mood
    Devilish
    Some thoughts...

    First of all, I don't see you freeing/releasing your data, nor do you check for D3D device losses.

    The only part in this entire project that is C++ style is DirectX, which isn't even yours, really start using OOP (Your code looks like it was written in C...).

    Some improvements...
    You use GetAsyncKeyState/GetCursorPos when you could just grab the events that are sent to the WindowProc, you are wasting alot of resources and cpu loops doing this.

    Do you know why classes exist?
    So you dont have to write this youself for every single item or such, this just looks horrible and is close to unreadable..
     
    Code:
    if ((p.x > menux + 11 && p.x < menux + 80) && (p.y > menuy + 76 && p.y < menuy + 96))
    				{
    					TeamCRed = true;
    					TeamCGreen = false;
    					TeamCBlue = false;
    					TeamCYellow = false;
    					TeamCOrange = false;
    					TeamCPurple = false;
    					TeamCWhite = false;
    					TeamCMint = false;
    					TeamCSkyBlue = false;
    					TeamCHotPink = false;
    				}
    				if ((p.x > menux + 11 && p.x < menux + 80) && (p.y > menuy + 96 && p.y < menuy + 116))
    				{
    					TeamCGreen = true;
    					TeamCRed = false;
    					TeamCBlue = false;
    					TeamCYellow = false;
    					TeamCOrange = false;
    					TeamCPurple = false;
    					TeamCWhite = false;
    					TeamCMint = false;
    					TeamCSkyBlue = false;
    					TeamCHotPink = false;
    				}
    				if ((p.x > menux + 11 && p.x < menux + 80) && (p.y > menuy + 116 && p.y < menuy + 136))
    				{
    					TeamCRed = false;
    					TeamCGreen = false;
    					TeamCBlue = true;
    					TeamCYellow = false;
    					TeamCOrange = false;
    					TeamCPurple = false;
    					TeamCWhite = false;
    					TeamCMint = false;
    					TeamCSkyBlue = false;
    					TeamCHotPink = false;
    				}
    				if ((p.x > menux + 11 && p.x < menux + 80) && (p.y > menuy + 136 && p.y < menuy + 156))
    				{
    					TeamCRed = false;
    					TeamCGreen = false;
    					TeamCBlue = false;
    					TeamCYellow = true;
    					TeamCOrange = false;
    					TeamCPurple = false;
    					TeamCWhite = false;
    					TeamCMint = false;
    					TeamCSkyBlue = false;
    					TeamCHotPink = false;
    				}
    				if ((p.x > menux + 11 && p.x < menux + 80) && (p.y > menuy + 156 && p.y < menuy + 176))
    				{
    					TeamCRed = false;
    					TeamCGreen = false;
    					TeamCBlue = false;
    					TeamCYellow = false;
    					TeamCOrange = true;
    					TeamCPurple = false;
    					TeamCWhite = false;
    					TeamCMint = false;
    					TeamCSkyBlue = false;
    					TeamCHotPink = false;
    				}
    				if ((p.x > menux + 11 && p.x < menux + 80) && (p.y > menuy + 176 && p.y < menuy + 196))
    				{
    					TeamCRed = false;
    					TeamCGreen = false;
    					TeamCBlue = false;
    					TeamCYellow = false;
    					TeamCOrange = false;
    					TeamCPurple = true;
    					TeamCWhite = false;
    					TeamCMint = false;
    					TeamCSkyBlue = false;
    					TeamCHotPink = false;
    				}
    				if ((p.x > menux + 11 && p.x < menux + 80) && (p.y > menuy + 196 && p.y < menuy + 216))
    				{
    					TeamCRed = false;
    					TeamCGreen = false;
    					TeamCBlue = false;
    					TeamCYellow = false;
    					TeamCOrange = false;
    					TeamCPurple = false;
    					TeamCWhite = true;
    					TeamCMint = false;
    					TeamCSkyBlue = false;
    					TeamCHotPink = false;
    				}
    [...]


    Second of all, your use of rand concerns me.

    rand() is considered harmful, use the standards implementation which will actually distribute numbers correctly, using modulus for distribution is bad, it's extremely simple to use std's rand implementation:
    Code:
    std::random_device seedgen; // random_device is expensive to call, but it generates a random seed. (You dont nnecessarily need it)
    std::mt19937 engine{ /* Input the seed here, you can use random_device or a static seed */ seedgen() };
    std::uniform_int_distribution<short> distrib{ 1, 255 };
    
    // now just call the distrib function passing the engine when you wanna generate a number
    auto rand = distrib( engine );
    
    // ALSO VERY IMPORTANT:
    // random_device and mt19937 are COSTLY to construct, only construct them once.
    Offsets.h is bad, you do not want to create global variables like that, use extern and initialize them in a source file, otherwise if you include them in multiple source files there will be a collision in symbol names.
    Last edited by Yemiez; 05-25-2016 at 05:17 PM.

  14. The Following 4 Users Say Thank You to Yemiez For This Useful Post:

    [MPGH]Hova (05-25-2016),Hunter (05-25-2016),ImWhacky (05-25-2016),PhY'z (05-25-2016)

  15. #11
    SpyLegion's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    171
    Reputation
    10
    Thanks
    999
    My Mood
    Twisted
    Nice copy pasta

  16. #12
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by SpyLegion View Post
    Nice copy pasta
    lol, its not copy pasta i made it myself


     

    Steam-TriggeredFemenazi
    CS:GO Rank-MG (but I'm a dirty cheater so who cares)
    Discord-ImWhacky#6260

    P.M. me if you have any questions.


  17. #13
    SpyLegion's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    171
    Reputation
    10
    Thanks
    999
    My Mood
    Twisted
    jkjk, take it easy boy

  18. #14
    Napalony's Avatar
    Join Date
    Feb 2017
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    1
    Not working ;/

Similar Threads

  1. [Help Request] directx overlay in vb ?
    By mrlol45 in forum Suggestions, Requests & General Help
    Replies: 0
    Last Post: 08-04-2013, 01:49 PM
  2. [Help] Fullscreen DirectX overlay without hooking?
    By NTvalk in forum C++/C Programming
    Replies: 0
    Last Post: 07-07-2013, 03:45 AM
  3. [Source Code] Directx VB menu
    By demonbhd in forum Vindictus Hacks & Cheats
    Replies: 22
    Last Post: 01-11-2012, 04:05 AM
  4. [Help] DirectX Overlays
    By justiman in forum Visual Basic Programming
    Replies: 5
    Last Post: 03-29-2011, 11:07 PM
  5. [Help] DirectX Overlays
    By JoshA56 in forum Visual Basic Programming
    Replies: 0
    Last Post: 01-19-2009, 02:32 PM