Adding Foliage

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
YTGTangerine
Command Sergeant Major
Command Sergeant Major
Posts: 270
Joined: Sat Aug 16, 2008 7:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aw man I can't think of anything creative...

Adding Foliage

Post by YTGTangerine »

In ZE, how do you add foliage? The foliage never appears ingame when I put it in ZE.
Thanks.
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Adding Foliage

Post by ryukaji »

You have to use a .prp file to tell ZE what foliage to place. For example heres the Yavin 4 .prp
Hidden/Spoiler:
[code]Layer(0)
{
SpreadFactor(0.3);
Mesh()
{
GrassPatch("yav_prop_grass.odf", 60);
File("editor_grasspatch.msh", 50);
Frequency(100);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}
Mesh()
{
GrassPatch("yav_prop_grass.odf", 50);
File("editor_grasspatch.msh", 40);
Frequency(100);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}

}

Layer(1)
{
SpreadFactor(0.2);
Mesh()
{
File("yav_prop_shrub1.msh", 35);
Frequency(10);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}

}

Layer(2)
{
SpreadFactor(0.4);
Mesh()
{
LeafPatch("yav_prop_bush2.odf", 35);
File("editor_prop_bush.msh", 35);
Frequency(100);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}
}

Layer(3)
{
SpreadFactor(0.5);
Mesh()
{
LeafPatch("yav_prop_bush.odf", 40);
File("editor_prop_bush.msh", 40);
Frequency(100);
Scale(1);
Stiffness(0.0);
CollisionSound("foliage_collision");
}
}


TreeLine()
{
Path("jungle1")
{
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
Path("jungle2")
{
Flip();
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
Path("jungle3")
{
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
Path("jungle4")
{
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
Path("jungle5")
{
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
Path("jungle6")
{
Distance(28);
BorderOdf("yav_prop_treebillboard.odf");
}
}

[/code]
User avatar
YTGTangerine
Command Sergeant Major
Command Sergeant Major
Posts: 270
Joined: Sat Aug 16, 2008 7:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aw man I can't think of anything creative...

Re: Adding Foliage

Post by YTGTangerine »

So can I just automatically browse to that or do I have to copy that file somewhere?
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Adding Foliage

Post by ryukaji »

You could just copy one from the assets and edit it to use the foliage you want to use.
User avatar
YTGTangerine
Command Sergeant Major
Command Sergeant Major
Posts: 270
Joined: Sat Aug 16, 2008 7:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aw man I can't think of anything creative...

Re: Adding Foliage

Post by YTGTangerine »

Nuttin happened. Do you mind doing a more detailed tut?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Adding Foliage

Post by Teancum »

The docs cover this really well. Have you read up?
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Adding Foliage

Post by lucasfart »

just wondering which doc it is in
EDIT: nevermind. i just found it in the ZeroEditor_guide
Post Reply