Custom First Person Geometry? (FAQ)

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Custom First Person Geometry? (FAQ)

Post by authraw »

I'm having a little trouble figuring out how to get a custom 1st person geometry into the game... What exactly does the "all\allbothn" part of the following line represent?

Code: Select all

FirstPerson     = "all\allbothn;all_1st_bothanspy"
Also, why is it that much of the first person stuff is in a folder called "PC" in the assets' msh folder? What significance does that have?
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Custom First Person Geometry?

Post by Aman/Pinguin »

allbothn is the req file of the first person geometry of the bothan.
You can find it in

Code: Select all

data_modID/Sides/all/REQ/fpm

For new first persons you have to create a new req file there. allcustom.req for example.
Lets say the new First Person Geometry is named all_example_fp.msh

Then insert in the new req file this:

Code: Select all

 ucft
{    
    REQN
    {
        "model"
        "all_example_fp"
    }
}
In the odf of your unit write this:

Code: Select all

FirstPerson = "all\allcustom;all_example_fp"
Then munge your side.

Now go to

Code: Select all

data_modID/lvl_pc/fpm
There should be your new first person file.

Copy it to

Code: Select all

Lucas Arts/Star Wars Battlefront II/GameData/Data/lvl_pc/side/all/fpm --Not to addon!


That´s it :D I hope I could help
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3284
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Custom First Person Geometry? (FAQ)

Post by AceMastermind »

If you want to add a custom first person model to your map and not have to force people to move files around to install it, then the method described by psych0fred HERE (copied below) is preferred.

There is an easier way to put the first person model on your new units.
I created a bothan spy and had this as the FirstPerson line in the unit's ODF:
FirstPerson = "bothan\bothan;all_1st_bothans"
My sideID name is bothan.
The side req name is bothan.
The first person model file name is all_1st_bothans.msh but it is listed in the side req and the FirstPerson path without ".msh" appended.
The first person msh and texture file goes in your side's msh folder.

Then I added the following section to my side req:

Code: Select all

   REQN
    {
        "model"
        "all_1st_bothans"
    }
This tells the munge to also include the model in the sideID.lvl, where it will be found.
If you use the method above, the addon map itself will contain the necessary files for it to work which means you won't have to copy the new first person *.lvl files to the Gamedata\data\_lvl_pc\FPM folder.
Post Reply