Battlefield 2 invades the high-tech frontlines of modern warfare. The game brings the intensity and excitement of Battlefield 1942 into the modern era with enhanced team play and the latest, most technologically advanced vehicles and weapons systems available to man.

Description

This is not a BF2.exe dump, but it contains most of the HUD vars and stuff. Usefull, if you work with the HUD and maybe other exe related things.

Preview
Exe variables and stuff
Post comment Comments
Mohammed_Furqon
Mohammed_Furqon - - 906 comments

Thanks a lot mate!
This is awesome!

Reply Good karma Bad karma+4 votes
BF2all Author
BF2all - - 1,145 comments

welcome

Reply Good karma+2 votes
facku.00.rosemary
facku.00.rosemary - - 60 comments

Can you explain??

Reply Good karma Bad karma+2 votes
Guest
Guest - - 690,864 comments

x2

Reply Good karma Bad karma+1 vote
Bluenix_indo
Bluenix_indo - - 194 comments

Just wait to finish my bf3hud more faster cause this, thx bf2all

Reply Good karma Bad karma+2 votes
S4NTRIyPdH@PR
S4NTRIyPdH@PR - - 62 comments

bruh can you share your bf3 hud if its already
completed? lol thx wkwkwk

Reply Good karma Bad karma+1 vote
Bluenix_indo
Bluenix_indo - - 194 comments

Well there's still lot that haven't i working like spawn kit, scoreboard, squad management, secondary weapon, player name but i will try to finish fastest as i can

Reply Good karma Bad karma+1 vote
BF2all Author
BF2all - - 1,145 comments

hope it helps, though work

Reply Good karma+1 vote
Brazil45
Brazil45 - - 11 comments

Somebody tell me how to use this ?

Reply Good karma Bad karma+1 vote
Brazil45
Brazil45 - - 11 comments

has some digitavel command where I can update of example Ranks Captain, Lieutenant Colonel, Colonel and etc by Singleplayer in Offline Rank ?

Reply Good karma Bad karma+1 vote
BF2all Author
BF2all - - 1,145 comments

how about, search for 'rank' inside the doc and mess around with the finds?

Reply Good karma+1 vote
Brazil45
Brazil45 - - 11 comments

already tried to do this more I did not find any command to type in the console that causes it to automatically drop to qa promotion of certain rank for example captain promotion

Reply Good karma Bad karma+1 vote
BF2all Author
BF2all - - 1,145 comments

sry bro, miscommunication. This for HUD makers. If you have questions for offline rank you better ask the guys who made the offline rankup.

Reply Good karma+1 vote
EUWINPRO
EUWINPRO - - 121 comments

Thank you very much!
I'm looking for a variable that shows the game tickets as a bar (no FriendlyTicketsString) but I think there's no

Reply Good karma Bad karma+1 vote
BF2all Author
BF2all - - 1,145 comments

Possibly, there are ways to work with vars in python and give them back to the hud. The hud makes bars out of vars. Me no pro, bro :(

Reply Good karma+1 vote
Pobblebonk
Pobblebonk - - 17 comments

Thanks for this list. It contains some really interesting variables!
Is it possible to use the selectunlock.aspx?pid= for making a better kit-selection system? As far as I understand this is used for selecting a certain Kit instead of selecting just the next one like selectNextUnlock does. If it does what I think it does, how do I use it? Would it be:
hudBuilder.setButtonNodeConCmd "spawnManager.selectunlock.aspx?pid" x ?

Reply Good karma Bad karma+1 vote
BF2all Author
BF2all - - 1,145 comments

By experience of others and own, i wouldn't recommend to work on the default select sys . Seems like a abandoned dead end. Just in case, here some other stuff:

objectTemplate.deleteComponent
objectTemplate.removeTemplate int -> void
objectTemplate.addTemplate std::string -> void
objectTemplate.replaceItem std::string -> void

objectTemplate.itemIndex int -> int
objectTemplate.itemType int -> int
objectTemplate.itemType int -> int

objectTemplate.setActiveTemplate int -> void
objectTemplate.setObjectTemplate int std::string -> void

objectTemplate.alternateTemplate0 std::string -> std::string
objectTemplate.alternateTemplate1 std::string -> std::string
objectTemplate.alternateTemplate2 std::string -> std::string
objectTemplate.alternateTemplate3 std::string -> std::string
objectTemplate.alternateTemplate4 std::string -> std::string
objectTemplate.objectTemplate std::string -> std::string

objectTemplate.unlockIndex int -> int
objectTemplate.unlockLevel int -> int

ObjectTemplate.listTemplateClasses -> std::string
objectTemplate.listTemplates -> std::string
objectTemplate.clearTemplateList -> void

Reply Good karma+1 vote
Pobblebonk
Pobblebonk - - 17 comments

Thanks for the anwser! Do you know, what the "alternateTemplate0-4" does? I've never seen this in any con/tweak file. Is there a way to take a look on bf2 source code?

Reply Good karma Bad karma+1 vote
BF2all Author
BF2all - - 1,145 comments

No, was playing around with this, like try and error, but not good outcome.
Would be nice to have a proper decompiler to look what it does exactly.

Therefor i made this article: Moddb.com

Have a look

Reply Good karma+1 vote
Pobblebonk
Pobblebonk - - 17 comments

Playing around with variables or functions seems to be a major part of battlefield 2 modding ;). I hope someone replies to your article! Even though I don't have experience with python I think my programming skills should be high enough to understand some parts of the source code.

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: