[Question] how can I change a faction on a map?

General discussion of the Project Reality: BF2 modification.
Post Reply
orunes
Posts: 72
Joined: 2009-10-29 15:21

[Question] how can I change a faction on a map?

Post by orunes »

I asked myself how I could change a faction on a map. (in SP)
Maybe you can tell me how to change the map name an its discription either.
For example: Fushe pass: PLA vs USMC
How can I change this into PLA vs MEC?
I'm asking it here because I can't find it on google or other forums and because you have shown me great modding work.
I can't install BF2 map editor because of my vista computer,

Please help me.


(Sorry about my English) :wink:
Wakain
Posts: 1159
Joined: 2009-11-23 21:58

Re: [Question] how can I change a faction on a map?

Post by Wakain »

that's really quite simple, in the init.con located in the maps server.zip you can change factions
with fushe pass you'll see this:

gameLogic.setTeamName 1 "CH"
gameLogic.setTeamName 2 "US"

gameLogic.setTeamLanguage 1 "Chinese"
gameLogic.setTeamLanguage 2 "English"

gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_ch"
gameLogic.setTeamFlag 2 "flag_us"

gameLogic.setKit 1 0 "CH_Specops" "ch_light_soldier"
gameLogic.setKit 2 0 "US_Specops" "us_light_soldier"

gameLogic.setKit 1 1 "CH_Sniper" "ch_light_soldier"
gameLogic.setKit 2 1 "US_Sniper" "us_light_soldier"

gameLogic.setKit 1 2 "CH_Assault" "ch_heavy_soldier"
gameLogic.setKit 2 2 "US_Assault" "US_heavy_soldier"

gameLogic.setKit 1 3 "CH_Support" "ch_heavy_soldier"
gameLogic.setKit 2 3 "US_Support" "US_heavy_soldier"

gameLogic.setKit 1 4 "CH_Engineer" "ch_light_soldier"
gameLogic.setKit 2 4 "US_Engineer" "us_light_soldier"

gameLogic.setKit 1 5 "CH_Medic" "ch_light_soldier"
gameLogic.setKit 2 5 "US_Medic" "us_light_soldier"

gameLogic.setKit 1 6 "CH_AT" "ch_heavy_soldier"
gameLogic.setKit 2 6 "US_AT" "US_heavy_soldier"

now open up the init.con of a map in which the mec plays for reference and copy all mec related lines in the place of the US lines.

to change the init.con you have to extract it somewhere, open it with a program that can(I use BFEdit, just search it on the web)and after you're finished you put it into the server.zip it belonged, override the old version and you're done.
orunes
Posts: 72
Joined: 2009-10-29 15:21

Re: [Question] how can I change a faction on a map?

Post by orunes »

Both thank you for your help!
I´m sure this is enough for me for now!!!!
Thnx again!
Post Reply

Return to “PR:BF2 General Discussion”