MW2 - Code snippets, tutorials menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Ket's Avatar Legendary
    CoreCoins Purchaser Authenticator enabled
    Reputation
    861
    Join Date
    Feb 2008
    Posts
    3,337
    Thanks G/R
    600/313
    Trade Feedback
    29 (93%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    MW2 - Code snippets, tutorials

    I thought I'd make a thread where people can post snippets and/or tutorials for anyone who wants to develop a MW2 hack.

    Get current map name - by Chod
    Code:
    char * GetCurrentMap( )
    {
        char * stringData     = (char*)0xAC26D8;
        int  * stringOffsets = (int*) 0xABE62C;
        DWORD  dwInfo_ValueForKey =   0x449E90;
    
        char * mapIdent = (char *)(stringData + stringOffsets[0]);
        if( !*mapIdent )
            return "";
        char * mapName = "";
        char * mapCmd = "mapname";
        __asm {
            push mapCmd
            push mapIdent
            call dwInfo_ValueForKey
            mov mapName, eax
        }
        return mapName;
    }
    Working with 1.0.174

    MW2 - Code snippets, tutorials
  2. #2
    Serpious's Avatar Contributor CoreCoins Purchaser
    Reputation
    134
    Join Date
    Jul 2011
    Posts
    364
    Thanks G/R
    0/1
    Trade Feedback
    4 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you steal this from me, Ket?

Similar Threads

  1. [code snippet]Pass GUID to UnitXXXX functions as argument
    By demonguy in forum WoW Memory Editing
    Replies: 4
    Last Post: 05-09-2012, 06:58 PM
  2. [Trading] WTB Omegawow account or Mw2 for Retail Account whit vanilla and Tbc Auth Code (EU)
    By poikan996 in forum General MMO Buy Sell Trade
    Replies: 0
    Last Post: 11-27-2010, 01:29 PM
  3. Replies: 0
    Last Post: 07-13-2009, 05:07 AM
  4. [Code] Snippets from WoWBasic
    By bigtimt in forum WoW Memory Editing
    Replies: 5
    Last Post: 10-01-2008, 02:44 PM
  5. WPE tutorial/codes?
    By Dag001 in forum World of Warcraft General
    Replies: 6
    Last Post: 12-12-2006, 08:15 AM
All times are GMT -5. The time now is 07:35 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search