Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > First-Person Shooters > Battlefield Series > Battlefield 2

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Battlefield 2
hacks cheats tutorials source code
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

Current Map / CGame
Old 02-14-2010, 07:53 PM   #1
n00bie

r00tay's Avatar

Join Date: Jan 2010
Posts: 3
Reputation: 100
Rep Power: 27
r00tay is officially drafted by UCr00tay is officially drafted by UC
Points: 1,595, Level: 3
Points: 1,595, Level: 3 Points: 1,595, Level: 3 Points: 1,595, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Current Map / CGame

Hey there,

I'm currently coding a BF2 radar hack (with separate radar window for dual screen users).
I already got lots of information from the BF2 D3D Radar Function-thread, but something's still missing: i was not able to find a way to get the name (or any identifier) for the current map (to display the correct map as a background).
In the BF2 SDK i saw that CGame would provide a string mapName
Code:
class CGame
{
public:
    virtual int addRef(); //
    virtual int getRef(); //
    virtual int release(); //
    virtual void* queryInterface(int id); //
        char unknown4[56]; //0x0004
    string mapName; //0x003C  
};
however, i was not able to find an address for it. Is CGame obtainable via ClassManager or do i have to find it myself?

Have you got any information or ideas on how to identify the map currently played?
Any help would be very appreciated.
r00tay is online now

Reply With Quote


Old 02-14-2010, 08:03 PM   #2
UC Contributor

Freaky123's Avatar

Join Date: Sep 2009
Location: Netherlands
Posts: 730
Reputation: 18059
Rep Power: 223
Freaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UCFreaky123 Will always be a legend at UC
It changes every game, but you can get it in classmanager by the string "Game"
Code:
pGame = (CGame*) pClassManager->GetClassPointerByName(&string("Game"));
So you got to check this like every frame or work out something yourself...
Btw. you also have a virtual function for getting the map name in BFHeroes, its numer 61. And number 62 is for GameMode
__________________
Proud to be a hacker!
Programming languages I know: PHP, Javascript, XHTML, Flash Actionscript, c++
Also good at: MYSQL/Oracle databases, ERD, SQL-injection and XSS
Games I hack: Battlefield Heroes, Face of Mankind and Call of Duty MW2

Last edited by Freaky123; 02-14-2010 at 08:06 PM.
Freaky123 is offline

Reply With Quote

Old 02-14-2010, 08:25 PM   #3
n00bie

r00tay's Avatar

Threadstarter
Join Date: Jan 2010
Posts: 3
Reputation: 100
Rep Power: 27
r00tay is officially drafted by UCr00tay is officially drafted by UC
Points: 1,595, Level: 3
Points: 1,595, Level: 3 Points: 1,595, Level: 3 Points: 1,595, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Works just fine, thanks a lot!
r00tay is online now

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
cgame, current, map
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 06:01 AM.