Results 1 to 11 of 11
  1. #1
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool

    Question Memory Hack base Using Classes Help I Don't Get It

    Hi dudes,
    I finished my first base but it is fuc**n long work to find all the addys so i need to use classes. I thonk that if I use classes i don't need addys right ?
    And i tried Brimir's tut but i don't get it. So what should i do?

    in the .h file
    Code:
    class _BasicPlayerInfo 
    {
    public:
    	float MovementDuckWalkRate; 	
    };


    and


    in the .cpp file
    Code:
    DWORD cshell = (DWORD)LoadLibraryA( "CShell.dll" );
    _BasicPlayerInfo  * BasicPlayerInfo = *(_BasicPlayerInfo ** )(cshell + 0xA021F8);
    if(BasicPlayerInfo) 
    {
    		BasicPlayerInfo->MovementDuckWalkRate = 1.0f; //crouch speed
    }


    BTW @Brimir in your tut for classes you have written "Door map buggen" what is this ?

  2. #2
    Swag's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Netherlands
    Posts
    1,619
    Reputation
    19
    Thanks
    1,865
    My Mood
    Amused
    Quote Originally Posted by kmanev073 View Post
    Hi dudes,
    I finished my first base but it is fuc**n long work to find all the addys so i need to use classes. I thonk that if I use classes i don't need addys right ?
    And i tried Brimir's tut but i don't get it. So what should i do?

    in the .h file
    Code:
    class _BasicPlayerInfo 
    {
    public:
    	float MovementDuckWalkRate; 	
    };


    and


    in the .cpp file
    Code:
    DWORD cshell = (DWORD)LoadLibraryA( "CShell.dll" );
    _BasicPlayerInfo  * BasicPlayerInfo = *(_BasicPlayerInfo ** )(cshell + 0xA021F8);
    if(BasicPlayerInfo) 
    {
    		BasicPlayerInfo->MovementDuckWalkRate = 1.0f; //crouch speed
    }


    BTW @Brimir in your tut for classes you have written "Door map buggen" what is this ?
    Whaha, door map buggen is netherlands xd

  3. #3
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool
    then what it means and tell me how to make the base with classes ?

  4. #4
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    281
    Quote Originally Posted by michielr View Post
    Whaha, door map buggen is netherlands xd
    haha (a)

    That was dutch :P

    Quote Originally Posted by kmanev073 View Post
    then what it means and tell me how to make the base with classes ?
    Make a class, point the class address from crossfire to that class. Done.
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

  5. #5
    _corn_'s Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    0x0C482BF2
    Posts
    673
    Reputation
    13
    Thanks
    294
    My Mood
    Brooding
    hey i might try this class idea... looks good.

    would this work:
    Code:
    class _WeaponClass
    {
        public:
            float ReloadAnimRatio;
    }
    
    void hack()
    {
        //All the loading CShell stuff here
        _BasicPlayerInfo  * BasicPlayerInfo = *(_BasicPlayerInfo ** )(cshell + 0xA68F80);
        _WeaponClass->ReloadAnimRatio = 100.0f;
    }

  6. #6
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    281
    Quote Originally Posted by _corn_ View Post
    hey i might try this class idea... looks good.

    would this work:
    Code:
    class _WeaponClass
    {
        public:
            float ReloadAnimRatio;
    }
    
    void hack()
    {
        //All the loading CShell stuff here
        _BasicPlayerInfo  * BasicPlayerInfo = *(_BasicPlayerInfo ** )(cshell + 0xA68F80);
        _WeaponClass->ReloadAnimRatio = 100.0f;
    }
    Read this:

    Quote Originally Posted by Brimir View Post
    haha (a)

    That was dutch :P



    Make a class, point the class address from crossfire to that class. Done.

    THe BasicPlayerInfo is correct, but you copyed that from my code :P haha.
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

  7. #7
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool
    @Brimir yes i copied it from your code but i cant understand where to do this in the cpp file or h ? the class is in the h . where should be the pointer ?
    BTW
    is Door map bugger something for the radar ? or idk google translate says that buggen is ... gay and map is map and door is door
    Last edited by kmanev073; 01-04-2012 at 04:53 AM.

  8. #8
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    281
    With that you can walk through some walls :P

    But, then you need to learn C++ or C# or any other language where they use this.
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

  9. #9
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool
    i know C# but i dont know c++ well ok thanks for the info

  10. #10
    _corn_'s Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    0x0C482BF2
    Posts
    673
    Reputation
    13
    Thanks
    294
    My Mood
    Brooding
    c++ and C# are similar..... shouldn't be too hard to learn c++ if you know c#

  11. #11
    kmanev073's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Bulgaria
    Posts
    2,400
    Reputation
    97
    Thanks
    2,537
    My Mood
    Cool
    acctually yes thier logic is very simmilar but the syntax is not. But everything like arrays, loops and functions are same

Similar Threads

  1. [Help Request] i need help with the hack im using
    By kingster626 in forum Combat Arms Help
    Replies: 12
    Last Post: 06-18-2011, 10:15 PM
  2. Working mhs MEMORY HACK need help
    By dinourx7 in forum Combat Arms Discussions
    Replies: 2
    Last Post: 12-27-2009, 11:10 PM
  3. Replies: 11
    Last Post: 04-15-2009, 03:38 PM
  4. MPGH Hack Help! **Read, Don't Flame*
    By monroer454 in forum Combat Arms Hacks & Cheats
    Replies: 16
    Last Post: 01-28-2009, 08:49 PM