Flyer Domes (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
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Flyer Domes

Post by Caleb1117 »

Ok, I did it, not to hard to figure out actually, but it took me a bit.

Custom Flyer Domes


Ok, lets say you've got some cool space ship model, or maybe it's a giant UFO with a large flower sticking out of it, whatever, but you want it to zoom around your sky. What you need is to make a custom flyer dome, despite how it sounds, no new modeling is needed, if it's a mesh, you can make it fly.

In this example, the mesh we are trying to make fly is called: orep_fly_hammer_dome.msh though what it's called doesn't matter of course.

1. First, you need a custom side to put the flying thing in.
If you don't have one, you'll need to make one, it doesn't need it's own side, though, you can add it to any custom side you may have.

Do so, by adding the msh file of the model, and all it's tgas' to your side's Msh folder.
You may also, if you want, make a .msh.option file, with the line

Code: Select all

-nocollision
like if there are fighters in your map, and don't want them to run into the flyer dome models.



2. Then your dome model will need a .req, however it's slightly different then unit .reqs

Where unit reqs look like this:
ucft
{
REQN
{
"class"
"orep_inf_rifleman"
}
}
Yours will need to look like this:
ucft
{
REQN
{
"model"
"orep_fly_hammer_dome"
}
}
The req and the related text inside should bear the name of the msh of the model.



3. Next we have to load it into the Lua.

So in the ReadDataFile section of your lua, add in the Msh name into the line up:
ReadDataFile("dc:SIDE\\orep.lvl",
"orep_inf_rifleman",
"orep_inf_rocketeer",
"orep_inf_sniper",
"orep_inf_engineer",
"orep_inf_officer",
"orep_inf_merc",
"orep_knight_09",
"orep_fly_hammer_dome")

4. Finally the sky file.

Go to: Data_ABC/Worlds/ABC/World1 and locate your ABC.sky file, it is a notepad file.

Open it

You will need to add to it a flyer dome code, you can get this from any shipped world's sky file, that has flyer domes, like mygeeto, or kashyyyk.

Here is the one I used.
SkyObject()
{
Geometry("orep_fly_hammer_dome");
NumObjects(4);
Height(90, 140);
VelocityZ(-3, 3);
VelocityY(3, 3);
Distance(350);
InDirectionFactor(0.5);
}
Just ensure that the name in the Geometry section is the name of your flying msh.


With the code I used, they fly sideways, but I slowed it down, so it's barely noticeable, You can tweak the code you put in the sky file, however to change how they move and at what speed.

Note: Modelers, if you make something for the purpose of it being in a flyer dome, it May help if it faces the Z axis. I don't know for sure, but it might.
Last edited by Caleb1117 on Wed Apr 30, 2008 2:40 pm, edited 1 time in total.
wazmol
High General
High General
Posts: 892
Joined: Sat Sep 02, 2006 6:47 pm
Projects :: Thinking...
Games I'm Playing :: Black Ops
Location: London
Contact:

Re: Flyer Domes

Post by wazmol »

Great Work Caleb!!
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Re: Flyer Domes

Post by The_Emperor »

sideways lol



Man that is great :D looks so kotorish
Post Reply