Page 1 of 1

Custom First Person Geometry? (FAQ)

Posted: Mon Dec 24, 2007 12:13 am
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?

Re: Custom First Person Geometry?

Posted: Mon Dec 24, 2007 8:02 am
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

Re: Custom First Person Geometry? (FAQ)

Posted: Thu Nov 03, 2011 12:55 am
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.