Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Saltine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    493
    Reputation
    104
    Thanks
    629

    Saltine's Hotkey Base

    Well, everyone else was releasing a hotkey base, so I figured I might as well do so too. I took the liberty of implementing the system using some slightly more advanced OOP concepts than I am used to seeing around here, so I hope I can teach somebody something. I also used the lambda functions introduced in C++11, so you need to build this using Visual Studio 2010 or newer. Now lets explain the usage:
    First you create an instance of cHackContainer, which contains all of the memory and pushToConsole hacks. You pass it the game status and console unwrapped addresses when calling the constructor. This must only be called one time.:
    Code:
    cHackContainer hacks(0x37838E54,0x48B680);
    Next, I have an init function which you call with a parameter of the lambda function you would like to execute upon initialization. You call this function in present or whatever hooked callback you personally choose, and it will only do whatever is inside of it one time. This is where you add hacks to the cHackContainer using its addConsole() and addMemory() functions:
    Code:
    Main.init([&](){
    		hacks.addConsole(VK_INSERT,FPS,1.0,0.0);
    		hacks.addConsole(VK_DELETE,CHAMS,1.0,0.0);
    		hacks.addMemory(VK_NUMPAD0,0x37511606,PBYTE("\x33\xC0\x90"),PBYTE("\x0F\x94\xC0"),3);
    	});
    The prototypes of the two functions are:
    Code:
    void addConsole(BYTE hotkey, std::string base, float fOn, float fOff);
    void addMemory(BYTE hotkey, DWORD address, PBYTE on, PBYTE off, size_t bytesToPatch);
    Next, you need to tell the cHackContainer class to iterate through all of the hacks and execute them each frame. You accomplish this by calling the executeAll() function:
    Code:
    hacks.ExecuteAll();
    Attached to this post is a fully working project with 3 example hacks (Show FPS, NX Chams, and Superbullets)
    Virus scans:
    VirusTotal
    Jotti
    <b>Downloadable Files</b> Downloadable Files

    Oh no! Vortex is gay!

  2. The Following 14 Users Say Thank You to Saltine For This Useful Post:

    Ch40zz-C0d3r (01-28-2013),[MPGH]Flengo (01-28-2013),Flengo Jr. (01-28-2013),GoldWhite (01-29-2013),Jason (01-29-2013),lion676 (02-27-2013),Megaloco (08-11-2013),MegaPixxx (05-11-2013),merp. (01-29-2013),N3OH4X (02-03-2013),notgonnawork (03-27-2013),Shadow` (01-28-2013),The Decoder (01-31-2013),ZysorceN (01-28-2013)

  3. #2
    coderstrikeagain's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    3
    Very nice.

  4. #3
    Margherita's Avatar
    Join Date
    Jan 2011
    Gender
    female
    Posts
    11,299
    Reputation
    783
    Thanks
    1,287
    My Mood
    Bashful
    Good job
    Leechers coming in
    PM Me | VM Me | Rules

    MARGHERITA

  5. #4
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,591
    Reputation
    5180
    Thanks
    14,177
    My Mood
    Inspired
    File is clean.

    Thanks for sharing and teaching with original techniques

    /Approved
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  6. #5
    Acea's Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Home of the elks
    Posts
    346
    Reputation
    80
    Thanks
    2,216
    My Mood
    Stressed
    Nice release, Now release a menu base with me :3, i plan on doing so tonight after work

  7. #6
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,591
    Reputation
    5180
    Thanks
    14,177
    My Mood
    Inspired
    Quote Originally Posted by Acea View Post
    Nice release, Now release a menu base with me :3, i plan on doing so tonight after work
    One step ahead

    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  8. The Following 2 Users Say Thank You to Flengo For This Useful Post:

    Acea (01-28-2013),The Decoder (01-31-2013)

  9. #7
    Saltine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    493
    Reputation
    104
    Thanks
    629
    Quote Originally Posted by Acea View Post
    Nice release, Now release a menu base with me :3, i plan on doing so tonight after work
    I have started on my own as flengo said, but sure, I'd be glad to work with you. Add me on MSN at fk127@live.com pls

    Oh no! Vortex is gay!

  10. #8
    Shadow`'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    MN
    Posts
    636
    Reputation
    74
    Thanks
    3,014
    My Mood
    Relaxed
    Nice to actually see a base using these concepts released here!
    Last edited by Shadow`; 01-28-2013 at 07:56 PM.
    Currently coding applications in Java and C++.

    "It is change, continuing change, inevitable change, that is the dominant factor in society today. No sensible decision can be made any longer without taking into account not only the world as it is, but the world as it will be." -Isaac Asimov

  11. #9
    N3OH4X's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    67
    Reputation
    10
    Thanks
    87
    My Mood
    Devilish
    Good job .

  12. #10
    MadDogz's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    Auckland, New Zealand
    Posts
    22
    Reputation
    10
    Thanks
    2
    Thankyou for this

  13. #11
    ZysorceN's Avatar
    Join Date
    Aug 2012
    Gender
    female
    Location
    California
    Posts
    68
    Reputation
    10
    Thanks
    916
    My Mood
    Aggressive
    How is this advanced. if you guys never heard of constructors or parameters or even inheritance or any type of OOP you sir haven't read a C++ book in your life which defines you are not a Programmer. lol anyhow Good job saltine for trying to get people to learn what i said above does not applies to you

  14. #12
    Saltine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    493
    Reputation
    104
    Thanks
    629
    Quote Originally Posted by ZysorceN View Post
    How is this advanced. if you guys never heard of constructors or parameters or even inheritance or any type of OOP you sir haven't read a C++ book in your life which defines you are not a Programmer. lol anyhow Good job saltine for trying to get people to learn what i said above does not applies to you
    Thanks. And yeah, its just more advanced than what is generally subject to release in this forum. I have never seen a base which uses anything more object oriented than wrapping everything in classes which serve no real purpose :P

    Oh no! Vortex is gay!

  15. #13
    Flengo Jr.'s Avatar
    Join Date
    Oct 2011
    Gender
    female
    Location
    anywhere
    Posts
    608
    Reputation
    113
    Thanks
    199
    My Mood
    Aggressive
    Quote Originally Posted by Saltine View Post

    Thanks. And yeah, its just more advanced than what is generally subject to release in this forum. I have never seen a base which uses anything more object oriented than wrapping everything in classes which serve no real purpose :P
    THANKS I'm GONNA LEECH THIS NOW KYLE


    https://www.mpgh.net/forum/207-combat...base-yolo.html

    Biggest Leecher in History



    Leeching Libary - NEOHACKS

    Is this so neo[/SPOILER]

  16. The Following User Says Thank You to Flengo Jr. For This Useful Post:

    Saltine (01-28-2013)

  17. #14
    Shadow`'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    MN
    Posts
    636
    Reputation
    74
    Thanks
    3,014
    My Mood
    Relaxed
    Quote Originally Posted by ZysorceN View Post
    How is this advanced. if you guys never heard of constructors or parameters or even inheritance or any type of OOP you sir haven't read a C++ book in your life which defines you are not a Programmer. lol anyhow Good job saltine for trying to get people to learn what i said above does not applies to you
    I learned all about those in some Java books I have , but by "advanced" I mean more advanced than most hotkeys released in this section before.
    Currently coding applications in Java and C++.

    "It is change, continuing change, inevitable change, that is the dominant factor in society today. No sensible decision can be made any longer without taking into account not only the world as it is, but the world as it will be." -Isaac Asimov

  18. #15
    GoldWhite's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    136
    Reputation
    10
    Thanks
    46
    How add nospread?

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] Flameswor10's Hotkey Base
    By flameswor10 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 88
    Last Post: 10-11-2010, 03:44 AM
  2. [Request] hotkeys base running CA
    By filecroc in forum Combat Arms Coding Help & Discussion
    Replies: 8
    Last Post: 10-08-2010, 11:06 PM
  3. [Release]wassup40 hotkey base
    By wassup40 in forum Combat Arms EU Hack Coding/Source Code
    Replies: 40
    Last Post: 08-15-2010, 10:57 PM
  4. [RELEASE]Mwb1234 Cumbat Arabs Hotkey Base
    By mwb1234 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 14
    Last Post: 06-17-2010, 02:27 AM
  5. New HotKey Base
    By powerfear in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 14
    Last Post: 04-25-2010, 11:55 PM