SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF2 Modding => Topic started by: Ginev on April 22, 2017, 11:12:08 AM

Title: (SOLVED) Destroyable Capital Ship parts falling around forever in sky
Post by: Ginev on April 22, 2017, 11:12:08 AM
So this is my odf for my destroyable rep captail ship.Im using custom models:

---------------------------------------------------------------------------

[GameObjectClass]       

ClassLabel      =   "destructablebuilding"
GeometryName    =   "RepVenatorNoHangar_ZERO.msh"


[Properties]       

GeometryName    =   "RepVenatorNoHangar"

MaxHealth          = "5000.0"

ExplosionName           = "spa_prop_frigate_destruct_exp"


MapTexture              = "icon_rep_minirepassaultship"
MapScale                = 9
RemoveFromMapWhenDead = "1"

CHUNKSECTION        = "CHUNK1"
ChunkGeometryName   = "RepVenator_chunk1"
ChunkTrailEffect   = "spa_sfx_frigate_exp_5"
ChunkNodeName       = ""
ChunkTerrainCollisions  = "0"
ChunkTerrainEffect  = ""
ChunkPhysics        = "FULL"
ChunkOmega      = "0.03 0.01 0.01"
ChunkSpeed      = "2.05"
ChunkUpFactor       = "0.00"
ChunkGravity        = "0.0 0.0 0.0"
ChunkKeepSoldierCollision = 1

CHUNKSECTION        = "CHUNK2"
ChunkGeometryName   = "RepVenator_chunk2"
ChunkTrailEffect   = "spa_sfx_frigate_exp_1"
ChunkNodeName       = ""
ChunkTerrainCollisions  = "0"
ChunkTerrainEffect  = ""
ChunkPhysics        = "FULL"
ChunkOmega      = "0.01 0.01 -0.04"
ChunkSpeed      = "2.03"
ChunkUpFactor       = "0.05"
ChunkGravity        = "0.0 0.0 0.0"
ChunkKeepSoldierCollision = 1


FoleyFXGroup    = "metal_foley"
BuildingSound   = "sd_engine_amb"

---------------------------------------------------------------------------

So check this names:
RepVenator_chunk1
RepVenator_chunk2

This are the capital ship engines.When i destroy the ships they will spawn and will began falling in random directions slowly.Thats good,however the problem is that they won't dissapear after let say 5-6 seconds.They continue falling forever or if some AI on flyer or the player hit into them then they stop in one place and after 3 seconds they dissapear.How to make them dissapear even if no one crash into them.Is there a odf line that will do the trick?

EDIT:Maybe i have to make the TerrainCollision 255 and it will dissapera?I can see this value on other odf files.
Title: Re: Destroyable Capital Ship parts falling around forever in sky
Post by: Ascertes on April 22, 2017, 11:16:44 AM
I'd start by looking at the ODF files for the frigates in Battlefront 2. A lot of the destructible chunks for those aren't solid, meaning people will fly right through them as they blow up and disappear after a few seconds. How it gets to be like that, I have no idea, but that's where I would start.

Sorry I'm not more help  :confused:
Title: Re: Destroyable Capital Ship parts falling around forever in sky
Post by: Ginev on April 22, 2017, 01:01:59 PM
Never mind.I figure it out.This lines must be edited:

ChunkTerrainCollisions  = "0"

I made it 255 like is in most odfs and my destroyed chunks dissapeared after 4-5 seconds.
I am aiming for 7-8 seconds so maybe 400 or 500 will be enough.If you leave it on 0 this mean your chunks will fly around forever,like already happen on my map.Anyway soon i will show screenshots of my destroyed chunks.It look nice.
Also have in mind people that your chunks MUST NOT HAVE lowrez models because that crashes the game,atleast for me.I removed the lowrez for chunks and they worked.Im not sure but also i must say that your name inside XSI and after export must contain _chunk1 _chunk2 _chunk3 etc etc...Not sure about that but keep that in mind.Now everything works flawless.
About the collision part my chunks dont have collisions but ingame they have and its kinda accurate,kinda...Also i checked the BF2 space rep acclamator chunks and i found out inside XSI that the models using primitive collisions box or cylinders.Maybe handmade collision is also going to crash.Also keep that in mind people.If some of you dont know what is primitive collision search around to learn.

(SOLVED)
Title: Re: (SOLVED) Destroyable Capital Ship parts falling around forever in sky
Post by: jdee-barc on April 22, 2017, 04:04:32 PM
Would you mind sending this to me? I'd like to make some objective-based missions with that
EhPortal 1.34 © 2024, WebDev