Destroyable Buildings?

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
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 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: Where I whant to be.

Destroyable Buildings?

Post by swado95 »

I know that you can set the health of an object but is it possible for it to have like rubble at the end? I was thinking setting it up like a ammo droid but i don't want to be able to repair it once its dead.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Destroyable Buildings?

Post by DarthD.U.C.K. »

you can define a destroyed geometry with the odfline:

Code: Select all

DestroyedGeometryName   = "com_item_healthrecharge_dst"
but im not shure if you can prevent a destructable building from being rebuild
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 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: Where I whant to be.

Re: Destroyable Buildings?

Post by swado95 »

Maybe ill just take repair tools out, But that bring up something can you make an object be able to repair things like an repair station?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Destroyable Buildings?

Post by DarthD.U.C.K. »

how about a fusioncutter? i think that would work pretty well :P
you can make the building neutral and a new fusioncutter with targetneutral = "0"
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Destroyable Buildings?

Post by SAMofBIA »

im pretty sure that you could change the health and ammo droid odf files to have the geometry of your said repair station. and then give them some sort of obscene ammount of health with a health build in self health recharge rate.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Destroyable Buildings?

Post by DarthD.U.C.K. »

what are you talking about?
you should probably read the first post more carefull
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 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: Where I whant to be.

Re: Destroyable Buildings?

Post by swado95 »

No he talking it about the repair station
But that bring up something can you make an object be able to repair things like an repair station?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Destroyable Buildings?

Post by DarthD.U.C.K. »

why wouldnt you use a fusioncutter?

are you talking about a vehclerepairstation here?

@quote: yeah, but what would be an obscene amount of health and a self repair good for?
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 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: Where I whant to be.

Re: Destroyable Buildings?

Post by swado95 »

Well a vehicle repair station so i can take out the fusion cutter (even though im having second though on that now.) Idk what he was talking about self repair seems a little excessive with me.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Destroyable Buildings?

Post by DarthD.U.C.K. »

you want to repair the repairstation with a vehiclerepairstation? :shock:
User avatar
swado95
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 304
Joined: Wed Apr 08, 2009 7:36 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: Where I whant to be.

Re: Destroyable Buildings?

Post by swado95 »

No all i want its a box or something so when u go near it it repairs ur tank.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Destroyable Buildings?

Post by DarthD.U.C.K. »

ah! now i got it
there is already such a "vehiclerepairstation" in the common odfs, an astromechdroid, the odf is called "com_item_vehiclerecharge" in dataXXX\Common\odf's\
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Destroyable Buildings?

Post by SAMofBIA »

hmm are you sure that works? ive put in my map in zero editor before and not had it there in the game.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Destroyable Buildings?

Post by DarthD.U.C.K. »

here's a working odf, credits to pinguin:
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "powerupstation"
GeometryName = "com_item_vehicalrecharge.msh"

[Properties]
Lighting = "Dynamic"

MapTexture = "rechargedroid_icon"
MapScale = "0.75"

HealthType = "animal"

GeometryName = "com_item_vehicalrecharge"

DestroyedGeometryName = "com_item_vehicalrecharge_dst"
ExplosionName = "com_inf_rechargedroid_exp"
MaxHealth = 80


PowerupDelay = "1.0"
VehicleHealth = "500.0"
VehicleAmmo = "1"
Powerupsound = "vehicle_recharge defer"
AmbientSound = ""
BuiltSound = ""

IdleRotateSpeed = "1.5"
IdleWaitTime = "2.0"

BuildingCollisionPrim = "BldgCylinder aacylinder NULL 0.0 0.75 0.0 0.5 1.5 0.0"
TerrainCollisionPrim = "TerrCylinder aacylinder NULL 0.0 0.75 0.0 0.5 1.5 0.0"
SoldierCollisionPrim = "SoldCylinder aacylinder NULL 0.0 0.75 0.0 0.5 1.5 0.0"
VehicleCollisionPrim = "VehcCylinder aacylinder NULL 0.0 0.75 0.0 0.5 1.5 0.0"
OrdnanceCollisionPrim = "OrdnCylinder aacylinder NULL 0.0 0.75 0.0 0.5 1.5 0.0"

[InstanceProperties]
EffectRegion = ""
Radius = 15.0
User avatar
Marvel4
Rebel Colonel
Rebel Colonel
Posts: 556
Joined: Mon Jun 21, 2010 12:57 pm
Projects :: Marvel4s BF1 Conversion Pack + Era Mod

Re: Destroyable Buildings?

Post by Marvel4 »

SAMofBIA wrote:hmm are you sure that works? ive put in my map in zero editor before and not had it there in the game.
Yes, me too. It worked after I put the odfs into my worlds\***\odf folder.
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Destroyable Buildings?

Post by SAMofBIA »

ahhh, that explains things a little.
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: Destroyable Buildings?

Post by Teancum »

Marvel4 wrote:
SAMofBIA wrote:hmm are you sure that works? ive put in my map in zero editor before and not had it there in the game.
Yes, me too. It worked after I put the odfs into my worlds\***\odf folder.
It was never munged in the common lvl files that came with SWBF2, which is why it doesn't appear. It does work though.
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Destroyable Buildings?

Post by SAMofBIA »

ahhh, that explains things a LOT more.
Post Reply